diff options
author | Andrew Godwin | 2022-11-06 21:30:07 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-06 21:30:07 -0700 |
commit | fb6c409a9af5b8a686e977ee2251c359071e0ec3 (patch) | |
tree | 322469694585b766eb623b47955623b3e43c89b1 /templates/identity/view.html | |
parent | 0d5f7e7a891bec4b8af26c2d86d8be0209a3202d (diff) | |
download | takahe-fb6c409a9af5b8a686e977ee2251c359071e0ec3.tar.gz takahe-fb6c409a9af5b8a686e977ee2251c359071e0ec3.tar.bz2 takahe-fb6c409a9af5b8a686e977ee2251c359071e0ec3.zip |
Rework task system and fetching.
I can taste how close follow is to working.
Diffstat (limited to 'templates/identity/view.html')
-rw-r--r-- | templates/identity/view.html | 17 |
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 %} |