diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-08T20·38+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-04-08T20·38+0200 |
commit | e761b2d295c920da153ac673892cfd9616e6a2b7 (patch) | |
tree | d170810aefa8a0f881e0d0dd02bbd384c0b8539f | |
parent | 1c4d436eae0d5c05c0cee2d7587f97486442a991 (diff) |
feat(templates): Display author information in templates
-rw-r--r-- | templates/index.html | 2 | ||||
-rw-r--r-- | templates/thread.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/index.html b/templates/index.html index d1b744e943c1..fe35eb7bc03d 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 e26d4bcc613e..83007d6ac1b8 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> |