summaryrefslogtreecommitdiffstats
path: root/templates/identity
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-17 20:04:01 -0700
committerAndrew Godwin2022-11-17 20:04:01 -0700
commitb3072c81ba73a16381366960841b6c294cc1fa6e (patch)
tree707cf2f966dd030fc2a5e866f50711ab87a40870 /templates/identity
parentadf2449d373bcd07e2b0ce557beeb1f49d1894e4 (diff)
downloadtakahe-b3072c81ba73a16381366960841b6c294cc1fa6e.tar.gz
takahe-b3072c81ba73a16381366960841b6c294cc1fa6e.tar.bz2
takahe-b3072c81ba73a16381366960841b6c294cc1fa6e.zip
Follows page
Diffstat (limited to 'templates/identity')
-rw-r--r--templates/identity/view.html29
1 files changed, 19 insertions, 10 deletions
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 @@
<img src="{{ identity.local_icon_url }}" class="icon">
{% if request.identity %}
- <form action="{{ identity.urls.action }}" method="POST" class="inline follow">
- {% csrf_token %}
- {% if follow %}
- <input type="hidden" name="action" value="unfollow">
- <button>Unfollow</button>
- {% else %}
- <input type="hidden" name="action" value="follow">
- <button>Follow</button>
- {% endif %}
- </form>
+ {% if identity == request.identity %}
+ <form class="inline follow">
+ <a class="button" href="{% url "settings_profile" %}">Edit Profile</a>
+ </form>
+ {% else %}
+ <form action="{{ identity.urls.action }}" method="POST" class="inline follow {% if reverse_follow %}has-reverse{% endif %}">
+ {% csrf_token %}
+ {% if reverse_follow %}
+ <span class="reverse-follow">Follows You</span>
+ {% endif %}
+ {% if follow %}
+ <input type="hidden" name="action" value="unfollow">
+ <button>Unfollow</button>
+ {% else %}
+ <input type="hidden" name="action" value="follow">
+ <button>Follow</button>
+ {% endif %}
+ </form>
+ {% endif %}
{% endif %}
{{ identity.name_or_handle }} <small>@{{ identity.handle }}</small>