83 lines
2.6 KiB
Plaintext
83 lines
2.6 KiB
Plaintext
-set default_open = 'open'
|
|
-set cookie = get.token(request.cookies.token)
|
|
-set user = get.user(cookie.userid)
|
|
-set config = get.config('all')
|
|
!!!
|
|
%html
|
|
%head
|
|
%title
|
|
{{config.name}}: {{title}}
|
|
|
|
%link{'rel': 'stylesheet', 'media': 'screen', 'href': '/style-{{cssts()}}.css'}
|
|
%link{'rel': 'manifest', 'href': 'manifest.json'}
|
|
%meta{'name': 'mobile-web-app-capable', 'content': 'yes'}
|
|
%meta{'name': 'apple-mobile-web-app-capable', 'content': 'yes'}
|
|
%meta{'name': 'application-name', 'content': '{{config.name}}'}
|
|
%meta{'name': 'apple-mobile-web-app-title', 'content': '{{config.name}}'}
|
|
%meta{'name': 'theme-color', 'content': '#AA44AA'}
|
|
%meta{'name': 'msapplication-navbutton-color', 'content': '#AA44AA'}
|
|
%meta{'name': 'apple-mobile-web-app-status-bar-style', 'content': 'black-translucent'}
|
|
%meta{'name': 'msapplication-starturl', 'content': '/'}
|
|
%meta{'name': 'viewport', 'content': 'width=device-width, initial-scale=1, shrink-to-fit=no'}
|
|
%link{'rel': 'icon', 'type': 'png', 'sizes': '64x64', 'href': '/favicon.ico'}
|
|
%link{'rel': 'apple-touch-icon', 'type': 'png', 'sizes': '64x64', 'href': '/favicon.ico'}
|
|
|
|
%body
|
|
%div{'class': 'menu menu-right'}
|
|
%details
|
|
%summary{'class': "title"}
|
|
%a
|
|
Menu
|
|
|
|
.item
|
|
%a{'href': 'https://{{config.host}}/', 'target': '_self'} Home
|
|
.item
|
|
%a{'href': 'https://{{config.host}}/faq', 'target': '_self'} Faq
|
|
-if user
|
|
.item
|
|
%a{'href': 'https://{{config.host}}/admin', 'target': '_self'} Admin
|
|
.item
|
|
%a{'href': 'https://{{config.host}}/account', 'target': '_self'} Account
|
|
.item
|
|
%a{'href': 'https://{{config.host}}/logout', 'target': '_self'} Logout
|
|
-else
|
|
.item
|
|
%a{'href': 'https://{{config.host}}/login', 'target': '_self'} Login
|
|
|
|
%div{'id': 'content'}
|
|
%div{'id': 'header'}
|
|
%h1{'id': 'name'}
|
|
{{config.name}}
|
|
|
|
-if msg
|
|
%div{'id': 'message', 'class': 'section error'}
|
|
{{msg}}
|
|
|
|
-block content
|
|
|
|
%div{'class': 'section grid-container', 'id': 'footer'}
|
|
%div{'class': 'grid-item col1'}
|
|
-if config.admin
|
|
-set admin = config.admin.split('@')
|
|
|
|
%p
|
|
Run by
|
|
%a{'href': 'https://{{admin[1]}}/@{{admin[0]}}', 'target': '_new'}
|
|
@{{config.admin}}
|
|
|
|
%div{'class': 'grid-item acct', 'style': 'display: inline'}
|
|
-if config.setup
|
|
-if user != None
|
|
{{user.username}} [<a href='/logout'>logout</a>]
|
|
|
|
-else
|
|
Guest [<a href='/login'>login</a>]
|
|
|
|
-else
|
|
%p UvU
|
|
|
|
%div{'class': 'grid-item col2'}
|
|
%p
|
|
%a{'href': 'https://git.barkshark.xyz/izaliamae/uncia', 'target': '_new'}
|
|
Uncia Relay/{{version}}
|