]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - templates/article.html
Update policies.md
[irc/freenode/web-7.0.git] / templates / article.html
index e9675638ff2cd02e35308bc511e95756fd4a6d4d..eddabe452fc0bd4468c53140c5a73e52e2d6fc08 100644 (file)
@@ -1,15 +1,22 @@
 {% extends "base.html" %}
+{% import "artinfo.html" as artinfo with context %}
+{% set title=article.title %}
 {% block content %}
 <div class="main">
-    <p><b class="art">{{ article.title }}</b>&nbsp;
-    <span class="art-date">{{ article.datetime }} by {{ article.author }}</span></p>
-    <p class="art-ingress">{{ article.content }}</p>
-    <p class="art-links">
-    {#
-        <a href="{{ next }}">Next</a>&nbsp;
-        <a href="{{ previous }}">Previous</a>&nbsp;
-        #}
-        <a href="{{ url_for("archive") }}">Archive</a>&nbsp;
-        </p>
+    {%- if article.source.meta.imported is defined %}
+    <div class="art-warning">
+        This article was imported from freenode's wordpress blog, and is
+        likely out of date. It's preserved here in the interest of
+        history, but please don't treat it as an authoritative source in
+        any context. Links on this page may be out of date and broken.
+    </div>
+    {%- endif %}
+    <div class="art-info">
+        {{ artinfo.info(article) }}
+    </div>
+    <div class="art-body">
+    {{ article.render() }}
+    </div>
+    {{ artinfo.nav(article) }}
 </div>
 {% endblock content %}