diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2013-04-11 01:14:49 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2013-04-11 01:14:49 +0200 |
commit | 0567318344330295512176569a84afc9748d79c5 (patch) | |
tree | b2ccd2e5ba3e254a945143060f31bdd4d42c921c /templates/root.jinja | |
parent | 5bf8a03dae494f1625d3d5eeee5ffd6396b730fa (diff) | |
download | kosten-0567318344330295512176569a84afc9748d79c5.tar.gz kosten-0567318344330295512176569a84afc9748d79c5.tar.bz2 kosten-0567318344330295512176569a84afc9748d79c5.zip |
First part of the transition to flask
Diffstat (limited to 'templates/root.jinja')
-rw-r--r-- | templates/root.jinja | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/templates/root.jinja b/templates/root.jinja new file mode 100644 index 0000000..7debb6a --- /dev/null +++ b/templates/root.jinja @@ -0,0 +1,56 @@ +<!doctype html> +<html> + <head> + <meta charset=utf-8" > + {% if not g.is_mobile %} + {% block js %} + <script type="text/javascript" src="{{ "js/jquery-1.4.2.js" | static_url }}"></script> + <script type="text/javascript" src="{{ "js/lib.js" | static_url }}"></script> + {% endblock %} + {% endif %} + <link rel="shortcut icon" href="{{ "images/currency.png" | static_url }}" type="image/icon"> + <title>{% block title -%}Kostenverwaltung{%- endblock %}</title> + {% block style %} + <link href="{{ "css/style.css" | static_url }}" rel="stylesheet" type="text/css"> + {% endblock %} + </head> + + <body> + <div id="wrapper"> + <div id="logo"> + <img src="{{ "images/currency.png" | static_url }}"> + <h1><a href="{{ url_for("index") }}">Kosten</a></h1> + <h2>» vom Nec</h2> + </div> + + <div id="header"> + <div id="menu"> + {% block menu %} + {% import "menu.jinja" as m %} + <ul> + {% for uri, page in m.menu %} + <li><a href="{{ url_for(uri) }}">{{page}}</a></li> + {% endfor %} + </ul> + {% endblock %} + </div> + </div> + </div> + + <div id="page"> + <div class="content"> + {% block content %}{% endblock %} + </div> + <div style="clear: both;"></div> + </div> + <div id="footer"> + {% block footer %} + <p id="legal"> + powered by <a href="http://flask.pocoo.org">Flask</a> | + © 2010-2013. All Rights Reserved. René Neumann | + with the help of <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>. + </p> + {% endblock %} + </div> + </body> +</html> |