Archived
1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
SOD/views/layout.pug

78 lines
2.2 KiB
Text
Raw Normal View History

2020-08-20 22:46:46 +02:00
include mixin
2020-06-26 16:59:54 +02:00
doctype html
html
head
title= title
link(rel="stylesheet", href="/stylesheets/style.css")
body
block content
div#user
2020-08-18 16:34:10 +02:00
a(href="/")=__("layout.home")
2020-08-17 19:08:35 +02:00
if user
if user.permissions >= 1
p -
2020-08-18 17:10:45 +02:00
a(href="/sandwiches")=__("sandwiches")
2020-08-17 19:08:35 +02:00
if user.permissions >= 2
p -
2020-08-18 17:54:00 +02:00
a(href="/orders")=__("orders")
2020-08-17 19:08:35 +02:00
if user.permissions >= 3
p -
2020-08-18 17:18:17 +02:00
a(href="/admin")=__("admin.title")
2020-08-17 18:03:25 +02:00
p |
if user
2020-08-17 17:58:55 +02:00
a(href="/profile")=user.username
2020-08-18 16:34:10 +02:00
a(href="/logout")=__("layout.logout")
else
2020-08-18 16:34:10 +02:00
a(href="/login")=__("layout.login")
a(href="/register")=__("layout.register")
div#more
2020-08-18 16:34:10 +02:00
a=__("layout.about")
a=__("layout.contact")
div#dark.hide
div#about.popup.card.hide
2020-08-18 16:34:10 +02:00
h1=__("layout.about")
p=__("layout.aboutDescription")
div.images
div
2020-08-17 19:19:13 +02:00
img(src="/images/logoBio.png")
2020-08-18 16:34:10 +02:00
p=__("layout.bio")
div
2020-08-17 19:19:13 +02:00
img(src="/images/logoChimie.png")
2020-08-18 16:34:10 +02:00
p=__("layout.chemistry")
div
2020-08-17 19:19:13 +02:00
img(src="/images/logoGC.png")
2020-08-18 16:34:10 +02:00
p=__("layout.GC")
div
2020-08-17 19:19:13 +02:00
img(src="/images/logoGCGP.png")
2020-08-18 16:34:10 +02:00
p=__("layout.GCPD")
div
2020-08-17 19:19:13 +02:00
img(src="/images/logoGEA.png")
2020-08-18 16:34:10 +02:00
p=__("layout.GEA")
div
2020-08-17 19:19:13 +02:00
img(src="/images/logoInfo.png")
2020-08-18 16:34:10 +02:00
p=__("layout.IT")
p.before-link=__("layout.made")
a(href="https://www.linkedin.com/in/florian-charlaix" target="_blank") Florian Charlaix
div#contact.popup.card.hide
2020-08-18 16:34:10 +02:00
h1=__("layout.contact")
2020-08-20 22:46:46 +02:00
p.before-link=__("layout.orderIssue") + ":"
a(href="mailto: ") test@test.fr
2020-08-20 22:46:46 +02:00
p.before-link=__("layout.bio") + ":"
a(href="mailto: ")
2020-08-20 22:46:46 +02:00
p.before-link=__("layout.chemistry") + ":"
a(href="mailto: ")
2020-08-20 22:46:46 +02:00
p.before-link=__("layout.GC") + ":"
a(href="mailto: ")
2020-08-20 22:46:46 +02:00
p.before-link=__("layout.GCPD") + ":"
a(href="mailto: bde.gcgp.lyon1@gmail.com") bde.gcgp.lyon1@gmail.com
2020-08-20 22:46:46 +02:00
p.before-link=__("layout.GEA") + ":"
a(href="mailto: ")
2020-08-20 22:46:46 +02:00
p.before-link=__("layout.IT") + ":"
a(href="mailto: contact@bde-info.org") contact@bde-info.org
2020-08-17 19:19:13 +02:00
script(src="/javascripts/layout.js")