diff options
author | Andrew Godwin | 2022-11-17 20:04:01 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-17 20:04:01 -0700 |
commit | b3072c81ba73a16381366960841b6c294cc1fa6e (patch) | |
tree | 707cf2f966dd030fc2a5e866f50711ab87a40870 /templates/identity | |
parent | adf2449d373bcd07e2b0ce557beeb1f49d1894e4 (diff) | |
download | takahe-b3072c81ba73a16381366960841b6c294cc1fa6e.tar.gz takahe-b3072c81ba73a16381366960841b6c294cc1fa6e.tar.bz2 takahe-b3072c81ba73a16381366960841b6c294cc1fa6e.zip |
Follows page
Diffstat (limited to 'templates/identity')
-rw-r--r-- | templates/identity/view.html | 29 |
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> |