2018-06-26 21:48:25 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="card my-6" id="incoming_txs">
|
2018-07-02 21:14:10 +00:00
|
|
|
<h5 id="comments" class="card-header">Comments</h5>
|
2018-06-26 21:48:25 +00:00
|
|
|
<div class="card-body">
|
2018-07-01 00:14:41 +00:00
|
|
|
{% if logged_in %}
|
|
|
|
<form method="post" action="comment">
|
2018-07-02 21:14:10 +00:00
|
|
|
<input type="hidden" name="pid" value="{{proposal.id}}">
|
2018-07-01 00:14:41 +00:00
|
|
|
<textarea class="comment" name="text" rows="6" cols="60"></textarea>
|
|
|
|
<br><br><input type="submit" value="add comment">
|
|
|
|
</form>
|
|
|
|
{% else %}
|
2018-07-02 21:14:10 +00:00
|
|
|
You need to be logged in to comment.
|
|
|
|
<br>
|
2018-07-01 00:14:41 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<br>
|
2018-06-26 21:48:25 +00:00
|
|
|
|
2018-07-02 21:14:10 +00:00
|
|
|
{% for c in proposal._comments %}
|
2018-07-01 00:14:41 +00:00
|
|
|
<!-- Single Comment -->
|
2018-07-02 21:14:10 +00:00
|
|
|
<div class="media mb-4 comment-container" id="comment-{{c.id}}">
|
|
|
|
<div class="votearrow" title="upvote"></div>
|
2018-07-01 00:14:41 +00:00
|
|
|
<div class="media-body">
|
2018-07-02 21:14:10 +00:00
|
|
|
<span class="username">
|
2018-07-04 18:37:32 +00:00
|
|
|
<a href="/user/{{ c.user.username }}">
|
2018-07-02 21:14:10 +00:00
|
|
|
{{c.user.username}}
|
2018-07-04 18:37:32 +00:00
|
|
|
{% if c.user.username == proposal.user.username %}
|
|
|
|
<small>[op]</small>
|
|
|
|
{% endif %}
|
|
|
|
{% if c.user.admin %}
|
|
|
|
<small>[admin]</small>
|
|
|
|
{% endif %}
|
2018-07-02 21:14:10 +00:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span class="date_posted">
|
|
|
|
<a href="/proposal/{{proposal.id}}#comment-{{c.id}}">
|
|
|
|
{{c.date_added.strftime('%Y-%m-%d %H:%M')}}
|
|
|
|
</a>
|
|
|
|
</span><br>
|
2018-07-12 01:03:05 +00:00
|
|
|
<span style="{% if c.automated %}color:blue;{% endif %};word-break: break-all;">{{c.message}}</span>
|
2018-07-02 21:14:10 +00:00
|
|
|
<br>
|
2018-07-04 18:37:32 +00:00
|
|
|
{% if not c.automated %}
|
2018-07-02 21:14:10 +00:00
|
|
|
<a class="reply" href="{{url_for('propsal_comment_reply', cid=c.id, pid=proposal.id)}}">reply</a>
|
2018-07-04 18:37:32 +00:00
|
|
|
{% endif %}
|
2018-06-26 21:48:25 +00:00
|
|
|
|
2018-07-02 21:14:10 +00:00
|
|
|
{% for _c in c.comments %}
|
|
|
|
<div class="media mt-4 comment-container" id="comment-{{_c.id}}">
|
|
|
|
<div class="votearrow" title="upvote"></div>
|
2018-07-12 01:03:05 +00:00
|
|
|
<div class="media-body" id="comment">
|
2018-07-02 21:14:10 +00:00
|
|
|
<span class="username">
|
2018-07-04 20:31:35 +00:00
|
|
|
<a href="/user/{{ _c.user.username }}">
|
2018-07-02 21:14:10 +00:00
|
|
|
{{_c.user.username}}
|
2018-07-04 18:37:32 +00:00
|
|
|
{% if _c.user.username == proposal.user.username %}
|
|
|
|
<small>[op]</small>
|
|
|
|
{% endif %}
|
|
|
|
{% if _c.user.admin %}
|
|
|
|
<small>[admin]</small>
|
|
|
|
{% endif %}
|
|
|
|
|
2018-07-02 21:14:10 +00:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span class="date_posted">
|
|
|
|
<a href="/proposal/{{proposal.id}}#comment-{{_c.id}}">
|
2018-07-03 23:22:09 +00:00
|
|
|
{{_c.date_added.strftime('%Y-%m-%d %H:%M')}}
|
2018-07-02 21:14:10 +00:00
|
|
|
</a>
|
2018-07-12 01:03:05 +00:00
|
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<span style="word-break: break-all;">
|
2018-07-02 21:14:10 +00:00
|
|
|
{{_c.message}}
|
2018-07-12 01:03:05 +00:00
|
|
|
</span>
|
2018-07-01 00:14:41 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-02 21:14:10 +00:00
|
|
|
{% endfor %}
|
2018-07-01 00:14:41 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-02 21:14:10 +00:00
|
|
|
{% endfor %}
|
2018-07-01 00:14:41 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|