summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-24 22:31:45 -0700
committerAndrew Godwin2022-11-24 22:31:57 -0700
commit79002e1eaf96e9cfcd2993715b67cf3a61e02fb3 (patch)
tree10d3f3c7cd7709cdab5259c5e74066df6e175e74 /templates
parentdf5493dd2a9a884660ee2a491377237071493c76 (diff)
downloadtakahe-79002e1eaf96e9cfcd2993715b67cf3a61e02fb3.tar.gz
takahe-79002e1eaf96e9cfcd2993715b67cf3a61e02fb3.tar.bz2
takahe-79002e1eaf96e9cfcd2993715b67cf3a61e02fb3.zip
Add initial delete UI
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 %}