Mercurial > libervia-templates
annotate default/base/base.html @ 10:8b5615a1bf3d
articles, input: use new embedding mechanism in articles + new macros to build forms and inputs
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 27 Apr 2017 01:07:28 +0200 |
parents | 7a1626e78d53 |
children | 422c54e0204a |
rev | line source |
---|---|
9
7a1626e78d53
base: an embedded variable is set when base is used, this way we can have include templates without including the whole page with base
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
1 {% set embedded = True %} {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #} |
0 | 2 <!DOCTYPE html> |
3 <html> | |
4 <head> | |
5 <meta charset="utf-8" /> | |
6 <title>{% block title %}{{C.APP_NAME}}{% endblock %}</title> | |
1
b13a26d55c64
base: updated CSS handling to follow changes in backend, moved CSS file to /static with splitted files
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
7 {% if css_content is defined %} |
0 | 8 <style type="text/css"> |
9 {{css_content}} | |
10 </style> | |
11 {% else %} | |
1
b13a26d55c64
base: updated CSS handling to follow changes in backend, moved CSS file to /static with splitted files
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
12 {% for css_file in css_files %} |
b13a26d55c64
base: updated CSS handling to follow changes in backend, moved CSS file to /static with splitted files
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
13 <link rel='stylesheet' type="text/css" href='{{root_path}}{{css_file}}'> |
b13a26d55c64
base: updated CSS handling to follow changes in backend, moved CSS file to /static with splitted files
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
14 {% endfor %} |
0 | 15 {% endif %} |
16 </head> | |
17 <body> | |
18 <div id="body"> | |
19 {% block body %} | |
20 {% endblock body %} | |
21 </div> | |
22 <footer>{% block footer %}Powered by {{C.APP_NAME}}{% endblock %}</footer> | |
23 </body> | |
24 </html> |