From 8a4bf3b0597b2489c66c8c9ff41c39f46d17dc3b Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 27 Dec 2017 22:31:12 +0000 Subject: [PATCH] index.html now uses jinja2 master.html. git-svn-id: http://www.winterrodeln.org/svn/wradmin/trunk@2756 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- wradmin/templates/index.html | 15 ++++-------- wradmin/templates/master.html | 44 ++++++++++++++++++----------------- 2 files changed, 27 insertions(+), 32 deletions(-) diff --git a/wradmin/templates/index.html b/wradmin/templates/index.html index 8182ff6..5a449fb 100644 --- a/wradmin/templates/index.html +++ b/wradmin/templates/index.html @@ -1,11 +1,7 @@ - - +{% extends "master.html" %} +{% block title %}Hauptmenü{% endblock %} - - Hauptmenü - - - +{% block content %}

Hauptmenü

Willkommen auf den Administrationsseiten von Winterrodeln.

@@ -15,13 +11,10 @@
  • Rodelbahnberichte
  • Gasthäuser
  • Koordinaten-Rechner
  • - - - - +{% endblock %} diff --git a/wradmin/templates/master.html b/wradmin/templates/master.html index 98a82aa..a64cd9e 100644 --- a/wradmin/templates/master.html +++ b/wradmin/templates/master.html @@ -1,37 +1,39 @@ - - - - - + + + + + {% block head %} + {% block title %}{% endblock %} - - - + + + {% endblock %} - -

    Winterrodeln Administration

    + +

    Winterrodeln Administration

    -
    $message
    +{% with messages = get_flashed_messages() %} +{% for message in messages %} +
    {{message}}
    +{% endfor %} +{% endwith %}
    -${select('*|text()')} +{% block content %} +{% endblock %}
    - + -- 2.39.5