forked from rDrama/rDrama
1
0
Fork 0
master
kek7198 2021-12-01 17:30:17 -06:00
parent c434de0992
commit 4c80f031f4
1 changed files with 15 additions and 17 deletions

View File

@ -13,24 +13,22 @@
<a class="card-title text-break stretched-link h5 mb-0" href="{{u.url}}">@{{u.username}}</a>
{% if v %}
{% if v.id!=u.id and not u.is_private and not u.is_nofollow %}
<div id="button-sub-{{u.id}}" style="z-index: 2" class="{% if u.has_follower(v) %}d-none{% endif %}">
<button class="btn btn-green" onclick="post_toast2('/follow/{{u.username}}','button-sub-{{u.id}}','button-unsub-{{u.id}}')">Follow
</button>
</div>
{% if u.id != 995 %}
<div id="button-unsub-{{u.id}}" style="z-index: 2" class="{% if not u.has_follower(v) %} d-none{% endif %}">
<button class="btn btn-gray" onclick="post_toast2('/unfollow/{{u.username}}','button-sub-{{u.id}}','button-unsub-{{u.id}}')">Unfollow
</button
</div>
{% endif %}
{% endif %}
{% if v.id!=u.id and not u.is_private and not u.is_nofollow %}
<div id="button-sub-{{u.id}}" style="z-index: 2" class="{% if u.has_follower(v) %}d-none{% endif %}">
<button class="btn btn-green" onclick="post_toast2('/follow/{{u.username}}','button-sub-{{u.id}}','button-unsub-{{u.id}}')">Follow
</button>
</div>
{% if u.id != 995 %}
<div id="button-unsub-{{u.id}}" style="z-index: 2" class="{% if not u.has_follower(v) %} d-none{% endif %}">
<button class="btn btn-gray" onclick="post_toast2('/unfollow/{{u.username}}','button-sub-{{u.id}}','button-unsub-{{u.id}}')">Unfollow
</button>
</div>
{% endif %}
{% endif %}
{% else %}
<div id="button-sub-{{u.id}}" style="z-index: 2">
<a class="btn btn-primary " href="/signup?redirect={{request.path}}">Follow
</a>
</div>
<div id="button-sub-{{u.id}}" style="z-index: 2">
<a class="btn btn-green " href="/signup?redirect={{request.path}}">Follow</a>
</div>
{% endif %}
</div>