]> git.gir.st - subscriptionfeed.git/blob - app/templates/base.html.j2
add method to allow downloading though yt-dlp
[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 {%block more_head %}{% endblock %}
9
10 {% import 'macros.imp.j2' as macros %}
11
12 {% block header %}
13 <span>
14 {% set do_bold = request.blueprint not in g.header_items|map(attribute='parent') %}
15 <a href="/" class="header-left large {{ 'bold' if do_bold }}">
16 <span style=font-family:serif>&Delta;</span>{{ request.host }}
17 </a>
18 {% for x in g.header_items|sort(attribute="priority", reverse=true) %}
19 <a href="{{ x.url }}" class="header-left {{ 'bold' if request.blueprint == x.parent }}">
20 {{ x.name }}
21 </a>
22 {% endfor %}
23 </span>
24 {% if current_user.is_anonymous %}
25 <a href="/login?next={{ request.url | urlencode }}" style=float:right>log in or sign up</a>
26 {% else %}
27 <span style=float:right><a href="{{ url_for('usermgmt.account_manager') }}">{{ current_user.name }}</a> (<a href="/login">log out</a>)</span>
28 {% endif %}
29 <hr style=clear:both>
30 {% endblock %}
31
32 {% with messages = get_flashed_messages(with_categories=true) %}
33 {% if messages %}
34 <ul class=flashes>
35 {% for (type, message) in messages %}
36 <input type=radio hidden id="flash-{{ loop.index }}" class="flash-radio">
37 <li class="{{ type }}"><label for="flash-{{ loop.index }}" class="flash-close" title="dismiss"></label><div class="flash-msg">{{ message }}</div></li>
38 {% endfor %}
39 </ul>
40 {% endif %}
41 {% endwith %}
42
43 <article>
44 {% block content %}
45 <h1>{{ self.title() }}</h1>
46 {% endblock %}
47 </article>
48
49 {% block footer %}{% endblock %}
Imprint / Impressum