]> git.gir.st - subscriptionfeed.git/blob - app/templates/base.html.j2
move search bar out of header, implement way to include links in headerbar
[subscriptionfeed.git] / app / templates / base.html.j2
1 <!DOCTYPE html>
2 <title>{% block title %}{% endblock %}</title>
3 {% block favicon %}
4 <link rel="shortcut icon" href='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300" fill="%23fff"><circle r="150" cx="150" cy="150" fill="%23f00"/><path d="m120 97v106l93-53"/></svg>'>
5 {% endblock %}
6 <link rel="stylesheet" href="/static/style.css">
7 <meta name=viewport content="width=device-width, initial-scale=1">
8
9 {% import 'macros.imp.j2' as macros %}
10
11 {% block header %}
12 <span>
13 {% set tag = 'b' if request.blueprint in ["youtube", "usermgmt"] else 'span' %}
14 <a href="/">
15 <{{tag}} class="header-left large">
16 <span style=font-family:serif>&Delta;</span>{{ request.host }}
17 </{{tag}}>
18 </a>
19 {% for x in g.header_items|sort(attribute="priority", reverse=true) %}
20 <a href="{{ x.url }}" class="header-left {{ 'bold' if request.blueprint == x.parent }}">
21 {{ x.name }}
22 </a>
23 {% endfor %}
24 </span>
25 {% if current_user.is_anonymous %}
26 <a href="/login?next={{ request.url | urlencode }}" style=float:right>log in or sign up</a>
27 {% else %}
28 <span style=float:right>{{ current_user.name }} (<a href="/login">log out</a>)</span>
29 {% endif %}
30 <hr style=clear:both>
31 {% endblock %}
32
33 {% with messages = get_flashed_messages(with_categories=true) %}
34 {% if messages %}
35 <ul class=flashes>
36 {% for (type, message) in messages %}
37 <input type=radio hidden id="flash-{{ loop.index }}" class="flash-radio">
38 <li class="{{ type }}"><label for="flash-{{ loop.index }}" class="flash-close" title="dismiss"></label><div class="flash-msg">{{ message }}</div></li>
39 {% endfor %}
40 </ul>
41 {% endif %}
42 {% endwith %}
43
44 <article>
45 {% block content %}
46 <h1>{{ self.title() }}</h1>
47 {% endblock %}
48 </article>
49
50 {% block footer %}{% endblock %}
Imprint / Impressum