about summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-08T20·38+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-08T20·38+0200
commite761b2d295c920da153ac673892cfd9616e6a2b7 (patch)
treed170810aefa8a0f881e0d0dd02bbd384c0b8539f /templates
parent1c4d436eae0d5c05c0cee2d7587f97486442a991 (diff)
feat(templates): Display author information in templates
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html2
-rw-r--r--templates/thread.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/index.html b/templates/index.html
index d1b744e943..fe35eb7bc0 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -7,7 +7,7 @@
     <h1>Welcome to Converse</h1>
     <ul>
       {% for thread in threads -%}
-        <li><a href="/thread/{{ thread.id }}">{{ thread.title }}</a> (posted at {{ thread.posted }})</li>
+        <li><a href="/thread/{{ thread.id }}">{{ thread.title }}</a> (posted at {{ thread.posted }} by {{ thread.author_name }})</li>
       {%- endfor %}
     </ul>
     <hr>
diff --git a/templates/thread.html b/templates/thread.html
index e26d4bcc61..83007d6ac1 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -6,9 +6,9 @@
   <body>
     <h1>{{ thread.title }}</h1>
 
-    <p>{{ thread.body }}<br><i>Posted at {{ thread.posted }}</i></p>
+    <p>{{ thread.body }}<br><i>Posted at {{ thread.posted }} by {{ thread.author_name }}</i></p>
     {% for post in posts -%}
-    <li>{{ post.body }}<br><i>Posted at {{ post.posted }}</i></li>
+    <li>{{ post.body }}<br><i>Posted at {{ post.posted }} by {{ post.author_name }}</i></li>
     {%- endfor %}
 
     <hr>