From 20e63023bb0d3c7e4cb36b91b73e79f51889cc90 Mon Sep 17 00:00:00 2001
From: Andrew Godwin
Date: Tue, 15 Nov 2022 18:30:30 -0700
Subject: Get outbound likes/boosts and their undos working
---
templates/activities/_boost.html | 35 ++++++++---------------------------
templates/activities/_like.html | 9 +++++++++
templates/activities/_post.html | 7 +++++++
templates/activities/post.html | 17 +++++++++++++++++
templates/base.html | 3 ++-
5 files changed, 43 insertions(+), 28 deletions(-)
create mode 100644 templates/activities/_like.html
create mode 100644 templates/activities/post.html
(limited to 'templates')
diff --git a/templates/activities/_boost.html b/templates/activities/_boost.html
index 601466e..8e90045 100644
--- a/templates/activities/_boost.html
+++ b/templates/activities/_boost.html
@@ -1,28 +1,9 @@
-{% load static %}
-{% load activity_tags %}
-
+{% else %}
+
+
+
+{% endif %}
diff --git a/templates/activities/_like.html b/templates/activities/_like.html
new file mode 100644
index 0000000..8eec8cd
--- /dev/null
+++ b/templates/activities/_like.html
@@ -0,0 +1,9 @@
+{% if post.pk in interactions.like %}
+
+
+
+{% else %}
+
+
+
+{% endif %}
diff --git a/templates/activities/_post.html b/templates/activities/_post.html
index bf4b189..ac21c42 100644
--- a/templates/activities/_post.html
+++ b/templates/activities/_post.html
@@ -25,4 +25,11 @@
{{ post.safe_content }}
+
+ {% if request.identity %}
+
+ {% include "activities/_like.html" %}
+ {% include "activities/_boost.html" %}
+
+ {% endif %}
diff --git a/templates/activities/post.html b/templates/activities/post.html
new file mode 100644
index 0000000..b44df40
--- /dev/null
+++ b/templates/activities/post.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+
+{% block title %}Post by {{ post.author.name_or_handle }}{% endblock %}
+
+{% block content %}
+
+
+
+
+
+ {% include "activities/_post.html" %}
+
+
+
+{% endblock %}
diff --git a/templates/base.html b/templates/base.html
index d50fdcf..e465f05 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -9,9 +9,10 @@
+
{% block extra_head %}{% endblock %}
-
+