]> git.gir.st - subscriptionfeed.git/blob - app/reddit/templates/reddit.html.j2
de-hardcode subreddit footer
[subscriptionfeed.git] / app / reddit / templates / reddit.html.j2
1 <!DOCTYPE html>
2 <title>{{ title | e }}</title>
3 <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>'>
4 <link rel="stylesheet" href="/static/style.css">
5 <style>
6 .bad { opacity: 50% }
7 .bad img { filter: grayscale(100%) }
8 </style>
9
10 {% import 'macros.imp.j2' as macros %}
11 {% include 'messages.inc.j2' %}
12
13 <b style=font-size:large>{{ title | e }}</b><hr>
14
15 <article>
16 {% for row in rows %}{#
17 #}{{ '<span class=bad>' if 1 >= row.n_karma }}{#
18 #}{% call macros.card(row.video_id, row.title, row.n_karma~' karma') %}
19 <a href="https://old.reddit.com{{ row.url }}">{{ row.n_comments }} comment{{ 's' if row.n_comments != 1 }}</a>
20 {% endcall %}{{ '</span>' if 1>=row.n_karma }}{#
21 #}{% endfor %}
22 </article>
23
24 {% if before %}
25 <a href="?count={{ count-25 }}&before={{ before }}">prev</a> |
26 {% endif %}
27 {% if after %}
28 <a href="?count={{ count+25 }}&after={{ after }}">next</a>
29 {% endif %}
30
31 <hr>
32 <a href="/manage/subreddits?{{ request.query_string.decode() | e }}">Manage Subreddits</a>
33 {% for subreddit in subreddits %}
34 {{ "||" if loop.first else "|"}}
35 <a href="/r/{{ subreddit }}">/r/{{ subreddit }}</a>
36 {% endfor %}
Imprint / Impressum