]> jfr.im git - irc/freenode/web-7.0.git/blame - templates/artinfo.html
unify article info display and styling
[irc/freenode/web-7.0.git] / templates / artinfo.html
CommitLineData
b9f1cb69
EK
1{% macro info(article) %}
2<div class="art-info">
3 <a href="{{ article.url }}"><b class="art">{{ article.title }}</b></a>&nbsp;
4 <span class="art-date">{{ article.author }} on {{ article.datetime.astimezone().date() }}</span>
5</div>
6{% endmacro %}
7
8{% macro nav(article) %}
9<div class="art-nav">
10 {% if article.older -%}
11 <a href="{{ article.older.url }}">older</a>
12 {%- else -%}
13 <span></span>
14 {%- endif -%}
15 <a href="{{ url_for("archive") }}">all</a>
16 {%- if article.newer %}
17 <a href="{{ article.newer.url }}">newer</a>
18 {%- else %}
19 <span></span>
20 {%- endif %}
21</div>
22{% endmacro %}