summaryrefslogtreecommitdiffstats
path: root/templates/activities
diff options
context:
space:
mode:
authorTyler Kennedy2022-12-04 11:41:41 -0500
committerGitHub2022-12-04 09:41:41 -0700
commit6ce05296b01b1bd177e93b5ea3745fba5a5ff8f2 (patch)
treed589df378639dc8605a9f58b431ed37e0bc67b49 /templates/activities
parent45b91e1a0ec3eea6305b7164057ed82845b5a8bb (diff)
downloadtakahe-6ce05296b01b1bd177e93b5ea3745fba5a5ff8f2.tar.gz
takahe-6ce05296b01b1bd177e93b5ea3745fba5a5ff8f2.tar.bz2
takahe-6ce05296b01b1bd177e93b5ea3745fba5a5ff8f2.zip
Make follows a top-level activity. (#94)
Diffstat (limited to 'templates/activities')
-rw-r--r--templates/activities/_menu.html3
-rw-r--r--templates/activities/follows.html25
2 files changed, 28 insertions, 0 deletions
diff --git a/templates/activities/_menu.html b/templates/activities/_menu.html
index a912090..4676831 100644
--- a/templates/activities/_menu.html
+++ b/templates/activities/_menu.html
@@ -18,6 +18,9 @@
<a href="{% url "federated" %}" {% if current_page == "federated" %}class="selected"{% endif %} title="Federated">
<i class="fa-solid fa-globe"></i> Federated
</a>
+ <a href="{% url "follows" %}" {% if section == "follows" %}class="selected"{% endif %} title="Follows">
+ <i class="fa-solid fa-arrow-right-arrow-left"></i> Follows
+ </a>
<h3></h3>
<a href="{% url "compose" %}" {% if top_section == "compose" %}class="selected"{% endif %} title="Compose">
<i class="fa-solid fa-feather"></i> Compose
diff --git a/templates/activities/follows.html b/templates/activities/follows.html
new file mode 100644
index 0000000..6116dd6
--- /dev/null
+++ b/templates/activities/follows.html
@@ -0,0 +1,25 @@
+{% extends "base.html" %}
+
+{% block subtitle %}Follows{% endblock %}
+
+{% block content %}
+ <section class="icon-menu">
+ {% for identity, details in identities %}
+ <a class="option" href="{{ identity.urls.view }}">
+ <img src="{{ identity.local_icon_url }}">
+ <span class="handle">
+ {{ identity.name_or_handle }}
+ <small>@{{ identity.handle }}</small>
+ </span>
+ {% if details.outbound %}
+ <span class="pill">Following</span>
+ {% endif %}
+ {% if details.inbound %}
+ <span class="pill">Follows You</span>
+ {% endif %}
+ </a>
+ {% empty %}
+ <p class="option empty">You have no follows.</p>
+ {% endfor %}
+ </section>
+{% endblock %}