diff options
author | Marian Sigler <m@qjym.de> | 2012-09-26 06:13:26 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-09-26 06:13:26 +0200 |
commit | b914225af239041c77bc4557a12e259a78d6025a (patch) | |
tree | 919b0ccdd251d8742e7a3db82e9c5c84552d2597 /templates/base.html | |
parent | bf5d684c05a26787de0de80b0894b9d2d031c6ad (diff) | |
download | web-b914225af239041c77bc4557a12e259a78d6025a.tar.gz web-b914225af239041c77bc4557a12e259a78d6025a.tar.bz2 web-b914225af239041c77bc4557a12e259a78d6025a.zip |
add accounts logo, style header
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 58 |
1 files changed, 39 insertions, 19 deletions
diff --git a/templates/base.html b/templates/base.html index 425ea34..381fd0f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,6 +3,7 @@ <!doctype html> <html> <head> + <meta charset="utf-8" /> <title>{% if title %}{{ title }} – {% endif %}spline accounts</title> {%- for script in scripts %} <script type="text/javascript" src="{{ url_for('static', filename=script) }}"></script> @@ -13,30 +14,49 @@ </head> <body> - <h1 id="header"><img src="{{url_for('static', filename='logo.png')}}" alt="Spline" /></h1> + <div id="header-background"> </div> + <header> + <h1><img src="{{url_for('static', filename='logo.png')}}" alt="spline accounts" /></h1> + <span id="roundcornerb"> </span> + <span id="roundcornerw"> </span> - {%- if not no_login_message %} - {%- if g.user %} - <p>Angemeldet als <strong>{{ g.user.uid }}</strong> | <a href="{{ url_for('logout') }}">Abmelden</a></p> - {%- else %} - <p>Nicht angemeldet | <a href="{{ url_for('index') }}">Login</a></p> - {%- endif %} - {%- endif %} + <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> + </ul> + </nav> + + {%- if not no_login_message %} + <nav id="usermenu"> + <ul> + {%- if g.user %} + <li>Angemeldet als <strong>{{ g.user.uid }}</strong></li> + <li><a href="{{ url_for('logout') }}">Abmelden</a></li> + {%- else %} + <li>Nicht angemeldet</li> + <li><a href="{{ url_for('index') }}">Login</a></li> + {%- endif %} + </ul> + </nav> + {%- endif %} + </header> - {% with messages = get_flashed_messages(with_categories=true) %} + <section id="content"> + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} - <ul class="flashes"> - {% for category, message in messages %} + <ul class="flashes"> + {% for category, message in messages %} <li class="{{ category }}">{{ message }}</li> - {% endfor %} - </ul> + {% endfor %} + </ul> {% endif %} - {% endwith %} - - {% if title %} - <h2>{{ title }}</h2> - {% endif %} + {% endwith %} - {% block content %}{% endblock %} + {% if title %} + <h1>{{ title }}</h1> + {% endif %} + {% block content %}{% endblock %} + </section> </body> </html> |