comparison sat_templates/templates/bulma/base/base.html @ 312:6411615771b6

bulma (base): menu can now be fixed on top with `menu_fixed_top` bool variable
author Goffi <goffi@goffi.org>
date Fri, 19 Mar 2021 15:51:26 +0100
parents c9396c3711e4
children 34b8de7be336
comparison
equal deleted inserted replaced
311:c9396c3711e4 312:6411615771b6
1 {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #} 1 {# base template managing common layout, blocks, links or scripts
2
3 except for special pages, this template should always be extended.
4
5 @variable menu_fixed_top(bool): if true, the menu will always stay on top, and padding will be added to body accordingly.
6 #}
7
8
9 {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #}
2 {% set embedded = True %} 10 {% set embedded = True %}
3 {% import 'components/common.html' as component with context %} 11 {% import 'components/common.html' as component with context %}
4 {{ script.include('common', '') }} {# common.js is, as its name states, a common script, so it's useful to import it here #} 12 {{ script.include('common', '') }} {# common.js is, as its name states, a common script, so it's useful to import it here #}
5 <!DOCTYPE html> 13 <!DOCTYPE html>
6 <html> 14 <html>
70 78
71 {% block favicon %} 79 {% block favicon %}
72 <link rel="icon" href="{{media_path}}icons/apps/64/sat.png"> 80 <link rel="icon" href="{{media_path}}icons/apps/64/sat.png">
73 {% endblock favicon %} 81 {% endblock favicon %}
74 </head> 82 </head>
75 <body{{ {'onload': body_onload} | xmlattr }}{{ ' class="body--fullscreen"'|safe if full_screen_body }}> 83 <body{{ {'onload': body_onload} | xmlattr }} class="{{' body--fullscreen' if full_screen_body}}{{' has-navbar-fixed-top' if menu_fixed_top}}">
76 {% if atom_url is defined %} 84 {% if atom_url is defined %}
77 {{ icon_defs('feed') }} 85 {{ icon_defs('feed') }}
78 {% endif %} 86 {% endif %}
79 {% if loading_screen %} 87 {% if loading_screen %}
80 <div id="loading_screen" class="modal is-active"> 88 <div id="loading_screen" class="modal is-active">
89 </div> 97 </div>
90 </div> 98 </div>
91 {% endif %} 99 {% endif %}
92 {% if main_menu %} 100 {% if main_menu %}
93 {% block main_menu %} 101 {% block main_menu %}
94 {{ component.menu(main_menu, class="main_menu") }} 102 {{ component.menu(main_menu) }}
95 {% endblock main_menu %} 103 {% endblock main_menu %}
96 {% endif %} 104 {% endif %}
97 {% block body_wrapper %} 105 {% block body_wrapper %}
98 <div id="body" class="container"> 106 <div id="body" class="container">
99 {% if confirm %} 107 {% if confirm %}