Files: 2e24f63f3e975823d94bc8e83243dd998d9caa5f / layout.js
1209 bytesRaw
1 | module.exports = function (opts, content, apply, req) { |
2 | var tr = require('./translations')(req.cookies.lang) |
3 | return ['html', |
4 | ['head', {profile: "http://www.w3.org/2005/10/profile"}, |
5 | ['meta', {charset: 'UTF-8'}], |
6 | ['link', {href: '/static/style.css', rel: 'stylesheet'}], |
7 | ['script', {src: apply.scriptUrl}], |
8 | ['link', {rel: 'icon', type: 'image/png', href: '/favicon.ico'}], |
9 | ], |
10 | ['body', |
11 | ['div#AppHeader', |
12 | ['nav', |
13 | ['div', {style: 'display:flex;flex-direction:row'}, |
14 | ['h2', tr('AppName')], |
15 | ['img', {src: '/favicon.ico'}] |
16 | ], |
17 | ['div.Menu', apply('menu')], |
18 | // ['a', {href: '/public'}, tr('Public')], |
19 | // ['a', {href: '/private'}, tr('Private')], |
20 | // ['a', {href: '/gatherings'}, 'Gatherings'], |
21 | ['form', {method: 'GET', action: '/search'}, |
22 | ['input', {type: 'text', name: 'query', placeholder: tr('Search')}], |
23 | ['input', {type: 'hidden', name: 'limit', value: 20}], |
24 | ['button', {}, tr('Go')] |
25 | ], |
26 | apply('identitySelect', {main: true}) |
27 | ], |
28 | apply('progress', {}) |
29 | ], |
30 | ['div.main', content] |
31 | ] |
32 | ] |
33 | } |
34 |
Built with git-ssb-web