-<!doctype html>
-<html>
+{% extends "master.html" %}
+{% block title %}Hauptmenü{% endblock %}
-<head>
- <title>Hauptmenü</title>
-</head>
-
-<body>
+{% block content %}
<h2>Hauptmenü</h2>
<p>Willkommen auf den Administrationsseiten von Winterrodeln.</p>
<li><a href="{{url_for('bericht_list')}}">Rodelbahnberichte</a></li>
<li><a href="{{url_for('gasthaus_list')}}">Gasthäuser</a></li>
<li><a href="{{url_for('coordtool_index')}}">Koordinaten-Rechner</a></li>
- <!-- <li><a href="url_for('wrgpxtool')">Winterrodeln-GPX Datei Werkzeuge</a></li> -->
</ul>
<ul>
<li><a href="{{h.wiki()}}">Winterrodeln-Hauptseite</a></li>
<li><a href="{{h.forum()}}">Forum</a></li>
</ul>
-
-</body>
-</html>
+{% endblock %}
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:py="http://genshi.edgewall.org/"
- xmlns:xi="http://www.w3.org/2001/XInclude"
- py:strip="True">
-
-<head py:match="head" py:attrs="select('@*')">
+<!doctype html>
+<html>
+
+<head>
+ {% block head %}
+ <title>{% block title %}{% endblock %}</title>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<meta name="robots" content="noindex, nofollow" />
- <link rel="stylesheet" type="text/css" media="screen" href="${h.url('/style.css')}" />
- <link rel="shortcut icon" href="${h.url('/favicon.png')}" />
- <meta py:replace="select('*|text()')" />
+ <link rel="stylesheet" type="text/css" media="screen" href="{{url_for('static', filename='style.css')}}" />
+ <link rel="shortcut icon" href="{{url_for('static', filename='favicon.png')}}" />
+ {% endblock %}
</head>
-<body py:match="body" py:attrs="select('@*')">
-<h1 id="header"><img src="${h.url('/titlebanner.png')}" alt="Winterrodeln Administration"/></h1>
+<body>
+<h1 id="header"><img src="{{url_for('static', filename='titlebanner.png')}}" alt="Winterrodeln Administration"/></h1>
<ul id="mainmenu">
- <li><a href="${h.url(controller='rodelbahn', action='index')}">Übersicht</a></li>
- <li><a href="${h.url(controller='rodelbahn', action='list')}">Rodelbahnen</a></li>
- <li><a href="${h.url(controller='bericht', action='list')}">Rodelbahnberichte</a></li>
- <li><a href="${h.url(controller='gasthaus', action='list')}">Gasthäuser</a></li>
+ <li><a href="{{url_for('index')}}">Übersicht</a></li>
+ <li><a href="{{url_for('rodelbahn_list')}}">Rodelbahnen</a></li>
+ <li><a href="{{url_for('bericht_list')}}">Rodelbahnberichte</a></li>
+ <li><a href="{{url_for('gasthaus_list')}}">Gasthäuser</a></li>
</ul>
-<div py:for="message in get_flashed_messages()" class="flash">$message</div>
+{% with messages = get_flashed_messages() %}
+{% for message in messages %}
+<div class="flash">{{message}}</div>
+{% endfor %}
+{% endwith %}
<div id="content">
-${select('*|text()')}
+{% block content %}
+{% endblock %}
</div>
-<div id="footer"><img src="${h.url('/philipp_spitzer.png')}" alt="Philipp Spitzer"/></div>
+<div id="footer"><img src="{{url_for('static', filename='philipp_spitzer.png')}}" alt="Philipp Spitzer"/></div>
</body>
</html>