custom code, fix thread and comment deletions
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
<p>Are you sure you want to delete this comment on "{{ thread_title }}"?</p>
|
||||
<div class=comment>{{ minimd(text) | safe }}</div>
|
||||
<p>
|
||||
<form method="post" action="../delete" style=inline>
|
||||
<form method="post" action="{{ url_for('delete_comment', comment_id = comment_id) }}" style=inline>
|
||||
<input type="submit" value="Yes">
|
||||
</form>
|
||||
<form method="get" action=".." style=inline>
|
||||
<form method="get" action="{{ url_for('comment', comment_id = comment_id) }}" style=inline>
|
||||
<input type="submit" value="No">
|
||||
</form>
|
||||
</p>
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
{% block content %}
|
||||
<p>Are you sure you want to delete "{{ thread_title }}"?</p>
|
||||
<p>
|
||||
<form method="post" action="../delete" style=inline>
|
||||
<form method="post" action="{{ url_for('delete_thread', thread_id = thread_id) }}" style=inline>
|
||||
<input type="submit" value="Yes">
|
||||
</form>
|
||||
<form method="get" action=".." style=inline>
|
||||
<form method="get" action="{{ url_for('thread', thread_id = thread_id) }}" style=inline>
|
||||
<input type="submit" value="No">
|
||||
</form>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user