summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/activities/_post.html2
-rw-r--r--templates/activities/post_delete.html14
2 files changed, 15 insertions, 1 deletions
diff --git a/templates/activities/_post.html b/templates/activities/_post.html
index e109e9c..06aa3f7 100644
--- a/templates/activities/_post.html
+++ b/templates/activities/_post.html
@@ -34,7 +34,7 @@
<i class="fa-solid fa-caret-down"></i>
</a>
<menu>
- <a>
+ <a href="{{ post.urls.action_delete }}">
<i class="fa-solid fa-trash"></i> Delete
</a>
</menu>
diff --git a/templates/activities/post_delete.html b/templates/activities/post_delete.html
new file mode 100644
index 0000000..1566399
--- /dev/null
+++ b/templates/activities/post_delete.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+
+{% block title %}Delete Post{% endblock %}
+
+{% block content %}
+ <h1>Delete this post?</h1>
+ <form action="." method="POST">
+ {% csrf_token %}
+ <a class="button" onclick="history.back()">Cancel</a>
+ <button class="delete">Delete</button>
+ </form>
+
+ {% include "activities/_post.html" %}
+{% endblock %}