Usernames above posts on profiles are actual links now

This commit is contained in:
Socks 2018-03-23 13:16:49 +00:00
parent 739a2ece6c
commit 45f635fd8b

View file

@ -39,7 +39,7 @@
{% for post in posts if not post.hidden %}
<div class="card" style="word-wrap: break-word; margin-bottom: 16px; width: 100%;">
<div class="card-header">
<b>{{ post.poster }}</b> at {{ post.timePosted.strftime('%Y-%m-%d %-H:%M') }} {% if post.edited %}<i>(Edited)</i>{% endif %}
<b><a href="/profile/{{ post.poster }}">{{ post.poster }}</a></b> at {{ post.timePosted.strftime('%Y-%m-%d %-H:%M') }} {% if post.edited %}<i>(Edited)</i>{% endif %}
<span style="float: right">
{% if logged_in|lower in post.likes %}
<form style="display: inline;" method="POST" action="/unlike/{{ post._id }}"><button type="submit" class="btn btn-danger btn-sm"><i class="fas fa-heart"></i> {{ post.likes|count }}</button></form>