diff --git a/app/templates/macros/topics.html b/app/templates/macros/topics.html
index 66d11b4..5ef224a 100644
--- a/app/templates/macros/topics.html
+++ b/app/templates/macros/topics.html
@@ -5,7 +5,7 @@
Title |
{% if show_author %}Author | {% endif %}
Name |
- Link |
+ Date |
Actions |
{% for topic in topics %}
@@ -21,7 +21,7 @@
{{ topic.author.display_name}} |
{% endif %}
{{ topic.name or ""}} |
- {% if topic.link %}{{ topic.link | domain }}{% endif %} |
+ {{ topic.created_at | date }} |
@@ -36,6 +36,9 @@
{% endif %}
{% endif %}
+ {% if topic.link %}
+ {{ topic.link | domain }}
+ {% endif %}
|
{% endfor %}
diff --git a/app/views/__init__.py b/app/views/__init__.py
index 4f45909..7ca7620 100644
--- a/app/views/__init__.py
+++ b/app/views/__init__.py
@@ -32,6 +32,10 @@ def throw(err):
def domain(url):
return urlparse(url).netloc
+@app.template_filter()
+def date(value):
+ return value.strftime("%Y-%m-%d")
+
@app.template_filter()
def datetime(value):
return value.strftime("%Y-%m-%d %H:%M") + " UTC"