]> git.gir.st - subscriptionfeed.git/blob - app/templates/macros.imp.j2
initial commit
[subscriptionfeed.git] / app / templates / macros.imp.j2
1 {% macro card(video_id, title='') -%}{#
2 #}<div class=card>
3 <a class=thumb href="/watch?v={{ video_id }}">
4 <img src="https://i.ytimg.com/vi/{{ video_id }}/mqdefault.jpg">
5 </a>
6 <div class="title">
7 <a href="/watch?v={{ video_id }}" title="{{ title | e }}">{{ title | e }}</a>
8 </div>
9 <div class="infobar">
10 {{ caller() }}
11 </div>
12 </div>{#
13 #}{%- endmacro %}
14
15 {% macro infobar_subscriptions(video_id, channel_id, author, published, pinned="undefined") -%}
16 <a href="/channel/{{ channel_id }}">{{ author | e }}</a>
17 <details class=advanced><summary>{{ published }}</summary>
18 {% if pinned != "undefined" %}
19 <form method=post>
20 <input type="hidden" name="{{ 'un' if pinned }}pin" value="{{ video_id }}">
21 <input class="emoji" type=submit value="&#x1f4cc;{{ '&#8416;' if pinned }}" title="{{ 'unpin' if pinned else 'pin to top' }}">
22 </form>
23 <form method=post>
24 <input type="hidden" name="hide" value="{{ video_id }}">
25 <input class="emoji" type=submit value="&#x1f4a8;" title="hide video">
26 </form>
27 {%endif%}
28 <a href="/watch?v={{ video_id }}&show=metadata" class="emoji" title="video info">&#x1f4a1;</a>
29 </details>
30 {%- endmacro %}
31 {% macro infobar_reddit(comments, karma) -%}
32 {%- endmacro %}
Imprint / Impressum