Mercurial > libervia-templates
view default/base/base.html @ 21:24af9089aacd
default(event): added event_counter, which number of days left before event
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 21 May 2017 16:11:58 +0200 |
parents | 8fa2fd2e928e |
children | b046a7835374 |
line wrap: on
line source
{% set embedded = True %} {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #} <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>{% block title %}{{C.APP_NAME}}{% endblock %}</title> {% if css_content is defined %} <style type="text/css"> {{css_content}} </style> {% else %} {% for css_file in css_files %} <link rel='stylesheet' type="text/css" href='{{root_path}}{{css_file}}'> {% endfor %} {% endif %} {% if background_image is defined %} {# Q&D workaround to implement dynamic background-image it should be replaced by a better mechanism in the future, avoid using it #} <style type="text/css"> html { background-image: url('{{background_image}}'); background-size: 15em; } </style> {% endif %} </head> <body> <div id="body"> {% block body %} {% endblock body %} </div> <footer>{% block footer %}{% trans app_name=C.APP_NAME %}Powered by {{app_name}}{% endtrans %}{% endblock %}</footer> </body> </html>