summaryrefslogtreecommitdiffstats
path: root/templates/identity/view.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/identity/view.html')
-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>