]> git.gir.st - subscriptionfeed.git/blob - app/reddit/templates/subreddit_manager.html.j2
let all templates inherit from a base template
[subscriptionfeed.git] / app / reddit / templates / subreddit_manager.html.j2
1 {% extends "base.html.j2" %}
2 {% import 'macros.imp.j2' as macros %}
3
4 {% block title %}Subreddit Manager{% endblock %}
5 {% block favicon %}
6 <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="%23f40"/><path d="m150 80l80 80h-40v40h-80v-40h-40l80-80"/></svg>'>
7 {% endblock %}
8
9 {% block content %}
10 {{ super() }}
11 <ul id=submgr>
12 <form method=post>
13 <input class="emoji" type=submit value="&#128221;&#xFE0F;" title="subscribe">
14 <input name=subscribe placeholder="/r/...">
15 </form>
16 {% for subreddit in subreddits %}
17 <li><form method=post>
18 <input class=emoji type=submit value="&#128465;&#xFE0F;" title="unsubscribe">
19 <input type="hidden" name="unsubscribe" value="{{ subreddit }}">
20 </form>
21 <a href="/r/{{ subreddit }}">{{ subreddit | capitalize | e }}</a>
22 {% endfor %}
23 </ul>
24 {% endblock %}
Imprint / Impressum