summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/identity/view.html17
1 files changed, 15 insertions, 2 deletions
diff --git a/templates/identity/view.html b/templates/identity/view.html
index ffb76db..d82543e 100644
--- a/templates/identity/view.html
+++ b/templates/identity/view.html
@@ -10,11 +10,11 @@
{% else %}
<img src="{% static "img/unknown-icon-128.png" %}" class="icon">
{% endif %}
- {{ identity }} <small>@{{ identity.handle }}</small>
+ {{ identity.name_or_handle }} <small>@{{ identity.handle }}</small>
</h1>
{% if not identity.local %}
- {% if not identity.actor_uri %}
+ {% if identity.outdated and not identity.name %}
<p class="system-note">
The system is still fetching this profile. Refresh to see updates.
</p>
@@ -26,6 +26,19 @@
{% endif %}
{% endif %}
+ {% if request.identity %}
+ <form action="{{ identity.urls.action }}" method="POST">
+ {% 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>
+ {% endif %}
+
{% for status in statuses %}
{% include "statuses/_status.html" %}
{% empty %}