Add reply to this thread link to the bottom of the post view

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-07-18 22:09:11 -07:00
parent 1173cc16cb
commit d15816fdc4

View File

@@ -24,7 +24,7 @@
<div class="column">&nbsp;</div> <div class="column">&nbsp;</div>
<div class="column" style="text-align: center;"> <div class="column" style="text-align: center;">
<h2> <h2>
<a id="create_reply" href="{% url 'board:reply_create' url=board.url id=post.id %}">{% translate "Reply to this thread" %}</a> <a class="create_reply" href="{% url 'board:reply_create' url=board.url id=post.id %}">{% translate "Reply to this thread" %}</a>
</h2> </h2>
</div> </div>
<div class="column">&nbsp;</div> <div class="column">&nbsp;</div>
@@ -51,10 +51,18 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="row">
<div class="column">&nbsp;</div>
<div class="column" style="text-align: center;">
[ <a class="create_reply" href="{% url 'board:reply_create' url=board.url id=post.id %}">{% translate "Reply to this thread" %}</a> ]
</div>
<div class="column">&nbsp;</div>
</div>
<script> <script>
const REPLY_URL = "{% url 'board:reply_create' url=board.url id=post.id %}"; const REPLY_URL = "{% url 'board:reply_create' url=board.url id=post.id %}";
$("#create_reply").on("click", (e) => { $(".create_reply").on("click", (e) => {
e.preventDefault(); e.preventDefault();
openReplyWindow(REPLY_URL); openReplyWindow(REPLY_URL);
}); });