Save current state (unmerged, broken, not working...)
[vchess.git] / views / layout.pug
1 doctype html
2 html
3
4 head
5 meta(charset="UTF-8")
6 title vchess - #{title}
7 meta(name="viewport" content="width=device-width, initial-scale=1")
8 meta(name="msapplication-config" content="/images/favicon/browserconfig.xml")
9 meta(name="theme-color" content="#ffffff")
10 link(rel="stylesheet"
11 href="//cdnjs.cloudflare.com/ajax/libs/mini.css/3.0.0/mini-default.min.css")
12 link(rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400,700")
13 link(rel="apple-touch-icon" sizes="180x180"
14 href="/images/favicon/apple-touch-icon.png")
15 link(rel="icon" type="image/png" sizes="32x32"
16 href="/images/favicon/favicon-32x32.png")
17 link(rel="icon" type="image/png" sizes="16x16"
18 href="/images/favicon/favicon-16x16.png")
19 link(rel="manifest" href="/images/favicon/manifest.json")
20 link(rel="mask-icon" href="/images/favicon/safari-pinned-tab.svg" color="#5bbad5")
21 link(rel="shortcut icon" href="/images/favicon/favicon.ico")
22 link(rel="stylesheet" href="/stylesheets/layout.css")
23 link(rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons")
24 block css
25
26 body
27
28 include langNames
29 case lang
30 when "en"
31 include translations/en
32 when "es"
33 include translations/es
34 when "fr"
35 include translations/fr
36 if !user
37 include login_register
38 else
39 include logout_update
40 include contactForm
41 include settings
42 main
43 block content
44 footer.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2.text-center
45 div
46 a(href="https://github.com/yagu0/vchess") Source code
47 p.clickable(onClick="document.getElementById('modalContact').checked=true")
48 =translations["Contact"]
49
50 script(src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js")
51 script(src="/javascripts/utils/ajax.js")
52 script(src="/javascripts/layout.js")
53 script(src="/javascripts/settings.js")
54 script(src="/javascripts/contactForm.js")
55 if development
56 script(src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js")
57 else
58 script(src="https://cdn.jsdelivr.net/npm/vue")
59 script.
60 const translations = !{JSON.stringify(translations)};
61 const user = !{JSON.stringify(user)};
62 block javascripts