From b3072c81ba73a16381366960841b6c294cc1fa6e Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 17 Nov 2022 20:04:01 -0700 Subject: Follows page --- templates/identity/view.html | 29 +++++++++++++++++++---------- templates/settings/_menu.html | 3 +++ templates/settings/follows.html | 25 +++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 10 deletions(-) create mode 100644 templates/settings/follows.html (limited to 'templates') diff --git a/templates/identity/view.html b/templates/identity/view.html index f877f59..d584022 100644 --- a/templates/identity/view.html +++ b/templates/identity/view.html @@ -13,16 +13,25 @@ {% if request.identity %} -
- {% csrf_token %} - {% if follow %} - - - {% else %} - - - {% endif %} -
+ {% if identity == request.identity %} +
+ Edit Profile +
+ {% else %} +
+ {% csrf_token %} + {% if reverse_follow %} + Follows You + {% endif %} + {% if follow %} + + + {% else %} + + + {% endif %} +
+ {% endif %} {% endif %} {{ identity.name_or_handle }} @{{ identity.handle }} diff --git a/templates/settings/_menu.html b/templates/settings/_menu.html index cc87941..dd43912 100644 --- a/templates/settings/_menu.html +++ b/templates/settings/_menu.html @@ -6,6 +6,9 @@ Interface + + Follows + {% if request.user.admin %}

Account

diff --git a/templates/settings/follows.html b/templates/settings/follows.html new file mode 100644 index 0000000..5f43d05 --- /dev/null +++ b/templates/settings/follows.html @@ -0,0 +1,25 @@ +{% extends "settings/base.html" %} + +{% block subtitle %}Follows{% endblock %} + +{% block content %} +
+ {% for identity, details in identities %} + + + + {{ identity.name_or_handle }} + @{{ identity.handle }} + + {% if details.outbound %} + Following + {% endif %} + {% if details.inbound %} + Follows You + {% endif %} + + {% empty %} +

You have no follows.

+ {% endfor %} +
+{% endblock %} -- cgit v1.2.3