diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2013-04-11 21:47:56 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2013-04-11 21:47:56 +0200 |
commit | 978f1a4999937a56bd3861a219bb2d9082ba5de6 (patch) | |
tree | 69a55977f09000e1c867a2c253c7018050951e72 /templates/page.jinja | |
parent | 0567318344330295512176569a84afc9748d79c5 (diff) | |
download | kosten-978f1a4999937a56bd3861a219bb2d9082ba5de6.tar.gz kosten-978f1a4999937a56bd3861a219bb2d9082ba5de6.tar.bz2 kosten-978f1a4999937a56bd3861a219bb2d9082ba5de6.zip |
404 page in jinja
Diffstat (limited to '')
-rw-r--r-- | templates/page.jinja | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/page.jinja b/templates/page.jinja new file mode 100644 index 0000000..e1f8af7 --- /dev/null +++ b/templates/page.jinja @@ -0,0 +1,27 @@ +{% extends "root.jinja" %} + +{# functions #} +{% macro left_arrow(target,label) -%} + <a id="left" href="{{ url_for(target) }}"> + <img src="{{ "images/arrow_left.png" | static_url }}"> + <span class="navdate">{{label}}</span> + </a> +{%- endmacro %} + +{% macro right_arrow(target,label) -%} + <a id="right" href="{{ url_for(target) }}"> + <img src="{{ "images/arrow_right.png" | static_url }}"> + <span class="navdate">{{label}}</span> + </a> +{%- endmacro %} + +{% macro colorize(fgcolor=None, bgcolor=None, tag='span') -%} + {% if not fgcolor and not bgcolor %} + {{ caller() }} + {% else %} + {% set style = "" %} + {% if fgcolor: %}{% set style = style + " color: " + fgcolor %}{% endif %} + {% if bgcolor: %}{% set style = style + " background: " + bgcolor %}{% endif %} + <{{tag}} style="{{style}}">{{caller()}}</{{tag}}> + {% endif %} +{% endmacro %} |