52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
<!DOCTYPE html>
|
|
%html
|
|
%head
|
|
%title << {{cfg.title}}: {{page}}
|
|
%link(rel='shortcut icon', type='image/png', href='{{cfg.tpl_favicon_path}}')
|
|
%link(rel='stylesheet' type='text/css' href='/framework/style.css')
|
|
%link(rel='manifest' href='/framework/manifest.json')
|
|
%meta(charset='UTF-8')
|
|
%meta(name='viewport' content='width=device-width, initial-scale=1')
|
|
-block head
|
|
|
|
%body
|
|
#body
|
|
#header.flex-container
|
|
-if menu_left
|
|
#btn.section
|
|
.page-title.section -> %a.title(href='/') << {{cfg.title}}
|
|
|
|
-else
|
|
.page-title.section -> %a.title(href='/') << {{cfg.title}}
|
|
#btn.section
|
|
|
|
-if message
|
|
#message.section << {{message}}
|
|
|
|
-if error
|
|
#error.secion << {{error}}
|
|
|
|
#menu.section
|
|
.title-item.item << Menu
|
|
#items
|
|
-if not len(cfg.menu):
|
|
-include 'menu.haml'
|
|
|
|
-else:
|
|
-for label, path_data in cfg.menu.items()
|
|
-if path_data[1] == 1000 and request.user_level == 0:
|
|
.item -> %a(href='{{path_data[0]}}') << {{label}}
|
|
-elif request.user_level >= path_data[1]
|
|
.item -> %a(href='{{path_data[0]}}') << {{label}}
|
|
|
|
#content-body.section
|
|
-block content
|
|
|
|
#footer.grid-container.section
|
|
.avatar
|
|
.user
|
|
.source
|
|
%a(href='{{cfg.git_repo}}' target='_new') << {{cfg.name}}/{{cfg.version}}
|
|
|
|
%script(type='application/javascript' src='/framework/static/menu.js')
|