Files: 8c686fb2b73c28246604759c61d6636e2812d871 / layout.js
1166 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 | ['a', {href: '/public'}, tr('Public')], |
18 | ['a', {href: '/private'}, tr('Private')], |
19 | // ['a', {href: '/gatherings'}, 'Gatherings'], |
20 | ['form', {method: 'GET', action: '/search'}, |
21 | ['input', {type: 'text', name: 'query', placeholder: tr('Search')}], |
22 | ['input', {type: 'hidden', name: 'limit', value: 20}], |
23 | ['button', {}, tr('Go')] |
24 | ], |
25 | apply('identitySelect', {main: true}) |
26 | ], |
27 | apply('progress', {}) |
28 | ], |
29 | ['div.main', content] |
30 | ] |
31 | ] |
32 | } |
33 |
Built with git-ssb-web