Make the follow button a bit smarter

This commit is contained in:
Bat
2018-06-13 19:06:14 +01:00
parent 7b61da9c7f
commit a4a8446d45
4 changed files with 24 additions and 4 deletions
+6 -2
View File
@@ -32,8 +32,12 @@
<a class="inline-block button" href="{{ user.ap_url }}">Open on {{ instance_url }}</a>
{% endif %}
{% if not is_self %}
<a href="follow/" class="inline-block button">Follow</a>
{% if not is_self and account %}
{% if follows %}
<a href="follow/" class="inline-block button">Follow</a>
{% else %}
<a href="follow/" class="inline-block button">Unfollow</a>
{% endif %}
{% endif %}
</div>
+6 -2
View File
@@ -27,8 +27,12 @@
<a class="inline-block button" href="{{ user.ap_url }}">Open on {{ instance_url }}</a>
{% endif %}
{% if not is_self %}
<a href="follow/" class="inline-block button">Follow</a>
{% if not is_self and account %}
{% if follows %}
<a href="../follow/" class="inline-block button">Follow</a>
{% else %}
<a href="../follow/" class="inline-block button">Unfollow</a>
{% endif %}
{% endif %}
</div>