]> jfr.im git - irc/freenode/web-7.0.git/blame - templates/artinfo.html
Fix invalid HTML.
[irc/freenode/web-7.0.git] / templates / artinfo.html
CommitLineData
512215ac 1{% macro info(article, what="h1") %}
5a791e57
EK
2<a href="{{ article.url }}"><{{what}} class="art">{{ article.title }}</{{what}}></a>
3<span class="art-date">{{ article.author }} on {{ article.datetime.astimezone().date() }}</span>
b9f1cb69
EK
4{% endmacro %}
5
6{% macro nav(article) %}
7<div class="art-nav">
8 {% if article.older -%}
f9525a7b 9 <a href="{{ article.older.url }}">previous article</a>
b9f1cb69
EK
10 {%- else -%}
11 <span></span>
12 {%- endif -%}
f9525a7b 13 <a href="{{ url_for("archive") }}">view archive</a>
b9f1cb69 14 {%- if article.newer %}
f9525a7b 15 <a href="{{ article.newer.url }}">next article</a>
b9f1cb69
EK
16 {%- else %}
17 <span></span>
18 {%- endif %}
19</div>
20{% endmacro %}