]> git.gir.st - subscriptionfeed.git/blob - app/reddit/templates/reddit.html.j2
finish reddit blueprint
[subscriptionfeed.git] / app / reddit / templates / reddit.html.j2
1 <!DOCTYPE html>
2 <title>{{ subreddit | 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
12 <b style=font-size:large>{{ subreddit | e }}</b><hr>
13
14 <article>
15 {% for row in rows %}{#
16 #}{{ '<span class=bad>' if 1 >= row.n_karma }}{#
17 #}{% call macros.card(row.video_id, row.title, row.n_karma~' karma') %}
18 <a href="https://old.reddit.com{{ row.url }}">{{ row.n_comments }} comment{{ 's' if row.n_comments != 1 }}</a>
19 {% endcall %}{{ '</span>' if 1>=row.n_karma }}{#
20 #}{% endfor %}
21 </article>
22
23
24 {% if before %}
25 <a href="?count={{ count-25 }}&before={{ before }}">prev</a> |
26 {% endif %}
27 <a href="?count={{ count+25 }}&after={{ after }}">next</a>
28
29
30 <hr><a href="/r/videos">/r/videos</a> | <a href="/r/mealtimevideos">/r/mealtimevideos</a> | <a href="/r/Documentaries">/r/documentaries</a> | <a href="/r/curiousvideos">/r/curiousvideos</a>
Imprint / Impressum