parent
863e91e3f2
commit
40b95ad57d
After Width: | Height: | Size: 7.7 KiB |
After Width: | Height: | Size: 111 B |
@ -0,0 +1,40 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
{% block content %}
|
||||||
|
<!-- Page Content -->
|
||||||
|
|
||||||
|
<div class="container" style="margin-bottom:140px;">
|
||||||
|
{% include 'messages.html' %}
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<!-- Post Content Column -->
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="proposal_content">
|
||||||
|
<!-- Post Content -->
|
||||||
|
<div class="media mb-4">
|
||||||
|
<div class="votearrow" title="upvote"></div>
|
||||||
|
<div class="media-body">
|
||||||
|
<span class="username"><a href="/user/{{ c.user.username }}">{{c.user.username}}</a></span>
|
||||||
|
<span class="date_posted">{{c.date_added.strftime('%Y-%m-%d %H:%M')}}</span><br>
|
||||||
|
{{c.message}}
|
||||||
|
<br><br>
|
||||||
|
{% if logged_in %}
|
||||||
|
<form method="post" action="{{url_for('proposal_comment')}}">
|
||||||
|
<input type="hidden" name="pid" value="{{pid}}">
|
||||||
|
<input type="hidden" name="cid" value="{{cid}}">
|
||||||
|
<textarea class="comment" name="text" rows="6" cols="60"></textarea>
|
||||||
|
<br><br><input type="submit" value="add comment">
|
||||||
|
</form>
|
||||||
|
{% else %}
|
||||||
|
You need to be logged in to comment.
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- /.container -->
|
||||||
|
{% endblock %}
|
@ -1,63 +1,61 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="card my-6" id="incoming_txs">
|
<div class="card my-6" id="incoming_txs">
|
||||||
<h5 class="card-header">Comments</h5>
|
<h5 id="comments" class="card-header">Comments</h5>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
{% if logged_in %}
|
{% if logged_in %}
|
||||||
<form method="post" action="comment">
|
<form method="post" action="comment">
|
||||||
<input type="hidden" name="proposal_id" value="{{proposal.id}}">
|
<input type="hidden" name="pid" value="{{proposal.id}}">
|
||||||
<textarea class="comment" name="text" rows="6" cols="60"></textarea>
|
<textarea class="comment" name="text" rows="6" cols="60"></textarea>
|
||||||
<br><br><input type="submit" value="add comment">
|
<br><br><input type="submit" value="add comment">
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
You need to be logged in to comment.<br>
|
You need to be logged in to comment.
|
||||||
Press <b>F</b> to pay respects.
|
<br>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
{% for c in proposal._comments %}
|
||||||
<!-- Single Comment -->
|
<!-- Single Comment -->
|
||||||
<div class="media mb-4">
|
<div class="media mb-4 comment-container" id="comment-{{c.id}}">
|
||||||
<img class="d-flex mr-3 rounded-circle" src="http://placehold.it/50x50" alt="">
|
<div class="votearrow" title="upvote"></div>
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<h5 class="mt-0">Commenter Name</h5>
|
<span class="username">
|
||||||
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras
|
<a class="{% if c.user.username == proposal.user.username %}author{% endif %}" href="/user/{{ c.user.username }}">
|
||||||
purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi
|
{{c.user.username}}
|
||||||
vulputate fringilla. Donec lacinia congue felis in faucibus.
|
</a>
|
||||||
</div>
|
</span>
|
||||||
</div>
|
<span class="date_posted">
|
||||||
|
<a href="/proposal/{{proposal.id}}#comment-{{c.id}}">
|
||||||
|
{{c.date_added.strftime('%Y-%m-%d %H:%M')}}
|
||||||
|
</a>
|
||||||
|
</span><br>
|
||||||
|
{{c.message}}
|
||||||
|
<br>
|
||||||
|
<a class="reply" href="{{url_for('propsal_comment_reply', cid=c.id, pid=proposal.id)}}">reply</a>
|
||||||
|
|
||||||
<!-- Comment with nested comments -->
|
{% for _c in c.comments %}
|
||||||
<div class="media mb-4">
|
<div class="media mt-4 comment-container" id="comment-{{_c.id}}">
|
||||||
<img class="d-flex mr-3 rounded-circle" src="http://placehold.it/50x50" alt="">
|
<div class="votearrow" title="upvote"></div>
|
||||||
<div class="media-body">
|
|
||||||
<h5 class="mt-0">Commenter Name</h5>
|
|
||||||
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras
|
|
||||||
purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi
|
|
||||||
vulputate fringilla. Donec lacinia congue felis in faucibus.
|
|
||||||
|
|
||||||
<div class="media mt-4">
|
|
||||||
<img class="d-flex mr-3 rounded-circle" src="http://placehold.it/50x50" alt="">
|
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<h5 class="mt-0">Commenter Name</h5>
|
<span class="username">
|
||||||
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin.
|
<a class="{% if c.user.username == proposal.user.username %}author{% endif %}" href="/user/{{ c.user.username }}">
|
||||||
Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc
|
{{_c.user.username}}
|
||||||
ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
|
</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>
|
||||||
|
{{_c.message}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endfor %}
|
||||||
<div class="media mt-4">
|
|
||||||
<img class="d-flex mr-3 rounded-circle" src="http://placehold.it/50x50" alt="">
|
|
||||||
<div class="media-body">
|
|
||||||
<h5 class="mt-0">Commenter Name</h5>
|
|
||||||
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin.
|
|
||||||
Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc
|
|
||||||
ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in new issue