Added reply button on timeline page

This commit is contained in:
Socks 2018-02-19 11:25:22 +00:00
parent b74be3332b
commit bf4fa6536d

View file

@ -6,7 +6,7 @@
<div class="row"> <div class="row">
{% for post in posts if not post.hidden %} {% for post in posts if not post.hidden %}
<div class="card" style="word-wrap: break-word; margin-bottom: 16px; width: 100%;"> <div class="card" style="word-wrap: break-word; margin-bottom: 16px; width: 100%;">
<div class="card-header"><b><a href="/profile/{{ post.poster }}">{{ post.poster }}</a></b> at {{ post.timePosted.strftime('%Y-%m-%d %-H:%M') }} {% if logged_in == post.poster %} <span style="float: right"><a href="/delete/{{ post._id }}" class="btn btn-danger btn-sm"><i class="far fa-trash-alt"></i></a></span>{% endif %}</div> <div class="card-header"><b>{{ post.poster }}</b> at {{ post.timePosted.strftime('%Y-%m-%d %-H:%M') }} <span style="float: right"><a href="/reply/{{ post._id }}" class="btn btn-primary btn-sm"><i class="far fa-reply"></i></a> {% if logged_in == post.poster %} <a href="/delete/{{ post._id }}" class="btn btn-danger btn-sm"><i class="far fa-trash-alt"></i></a>{% endif %}</span></div>
<div class="card-body"> <div class="card-body">
{{ post.content }} {{ post.content }}
</div> </div>