diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-11T14·35+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-04-11T14·35+0200 |
commit | 918c2726b409b6820f66d9138cda5cf1c2307dd4 (patch) | |
tree | d5a1f86c86ec9d4c701d7b46b1e33c164a968bfb /templates | |
parent | b781a1fe57f7b589b97703ce08758991b39cb067 (diff) |
fix(templates/handlers): Fix post anchors
- ensure users are correctly linked to a post actor after replying - ensure timestamps are clickable to get post IDs
Diffstat (limited to 'templates')
-rw-r--r-- | templates/thread.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/thread.html b/templates/thread.html index bbe288e92f13..1b484637331c 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -32,7 +32,10 @@ </div> {% for post in posts -%} - <div class="list-group-item flex-column align-items-start"> + <div id="post-{{ post.id}}" class="list-group-item flex-column align-items-start"> + <a href="/thread/{{ id }}#post-{{ post.id }}"> + <small class="text-muted float-right">{{ post.posted }}</small> + </a> <div class="row"> <div class="col-2 border-right"> <div class="row"> @@ -49,7 +52,6 @@ <div class="col-10"> {{ post.body }} </div> - <small class="text-muted">{{ post.posted }}</small> </div> </div> {%- endfor %} |