From ddb3436275d3f02183f515c38cd3193cd1dfe2f4 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 13 Nov 2022 18:42:47 -0700 Subject: Boosting! Incoming, anyway. --- templates/activities/_boost.html | 28 ++++++++++++++++++++++++++++ templates/activities/_event.html | 20 ++++++++++++++++++++ templates/activities/_home_menu.html | 4 ++-- templates/activities/_post.html | 4 ++-- templates/activities/federated.html | 2 +- templates/activities/home.html | 15 ++++++++++++--- templates/activities/local.html | 21 +++++++++++++++++++++ templates/activities/notifications.html | 22 ++++++++++++++++++++++ 8 files changed, 108 insertions(+), 8 deletions(-) create mode 100644 templates/activities/_boost.html create mode 100644 templates/activities/_event.html create mode 100644 templates/activities/local.html create mode 100644 templates/activities/notifications.html (limited to 'templates') diff --git a/templates/activities/_boost.html b/templates/activities/_boost.html new file mode 100644 index 0000000..601466e --- /dev/null +++ b/templates/activities/_boost.html @@ -0,0 +1,28 @@ +{% load static %} +{% load activity_tags %} +
+ + {% if post.author.icon_uri %} + + {% else %} + + {% endif %} + + + + + {{ post.author.name_or_handle }} @{{ post.author.handle }} + + +
+ {{ post.safe_content }} +
+
diff --git a/templates/activities/_event.html b/templates/activities/_event.html new file mode 100644 index 0000000..bbe0ae5 --- /dev/null +++ b/templates/activities/_event.html @@ -0,0 +1,20 @@ +{% load static %} +{% load activity_tags %} +
+ + + + {% if event.type == "follow" %} + {{ event.subject_identity.name_or_handle }} followed you + {% elif event.type == "like" %} + {{ event.subject_identity.name_or_handle }} liked {{ event.subject_post }} + {% else %} + Unknown event type {{event.type}} + {% endif %} +
diff --git a/templates/activities/_home_menu.html b/templates/activities/_home_menu.html index 29d19e9..c88a1d7 100644 --- a/templates/activities/_home_menu.html +++ b/templates/activities/_home_menu.html @@ -1,6 +1,6 @@ diff --git a/templates/activities/_post.html b/templates/activities/_post.html index 38022a7..601466e 100644 --- a/templates/activities/_post.html +++ b/templates/activities/_post.html @@ -10,8 +10,8 @@