diff options
author | Marian Sigler <m@qjym.de> | 2012-09-27 18:34:57 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-09-27 18:34:57 +0200 |
commit | da2882e6cbfb0e267475a4440a8efb486ff0f1b6 (patch) | |
tree | da93fdbde1ca74eef007c747ef5a3c981c72d351 | |
parent | 69f7c2e49fd9247111bee70b7afd56c104b1c984 (diff) | |
download | web-da2882e6cbfb0e267475a4440a8efb486ff0f1b6.tar.gz web-da2882e6cbfb0e267475a4440a8efb486ff0f1b6.tar.bz2 web-da2882e6cbfb0e267475a4440a8efb486ff0f1b6.zip |
add list of sites to /about
-rw-r--r-- | templates/about.html | 6 | ||||
-rw-r--r-- | templates/base.html | 2 | ||||
-rw-r--r-- | utils.py | 6 |
3 files changed, 12 insertions, 2 deletions
diff --git a/templates/about.html b/templates/about.html index c65d93b..03d56e4 100644 --- a/templates/about.html +++ b/templates/about.html @@ -28,4 +28,10 @@ du uns Bescheid sagen, dann erstellen wir dir von Hand einen Account. {# TODO: kontaktmöglichkeit #} </p> +<h2>Welche Dienste sind bisher dabei?</h2> +<ul> +{%- for service in app.all_services %} + <li><a href="{{ service.url}}">{{ service.name }}</a></li> +{%- endfor %} +</ul> {%- endblock %} diff --git a/templates/base.html b/templates/base.html index 762411d..aa7ff36 100644 --- a/templates/base.html +++ b/templates/base.html @@ -25,7 +25,7 @@ <nav id="mainnav"> <ul> <li><a href="http://spline.de">spline.de</a></li> - <li><a href="{#{ url_for('about') }#}">Über spline accounts</a></li> + <li><a href="{{ url_for('about') }}">Über spline accounts</a></li> </ul> </nav> @@ -28,7 +28,11 @@ def templated(template=None): if template_name is None: template_name = request.endpoint \ .replace('.', '/') + '.html' - ctx = f(*args, **kwargs) + + ctx = { + 'app': current_app, + } + ctx.update(f(*args, **kwargs)) if ctx is None: ctx = {} elif not isinstance(ctx, dict): |