Usernames above posts on profiles are actual links now
This commit is contained in:
parent
739a2ece6c
commit
45f635fd8b
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue