MarseyWorld/files/templates/user_listing.html

32 lines
1.7 KiB
HTML
Raw Normal View History

2021-07-21 01:12:26 +00:00
{% for u in users %}
<div class="col-12 col-sm-6 col-md-6 col-lg-4 col-xl-3 mb-4">
2021-07-30 05:31:38 +00:00
<div id="user-{{u.id}}" class="card h-100">
2021-09-09 04:39:54 +00:00
<div style="position: relative;"><img loading="lazy" src="{{u.banner_url}}" class="card-img-top" alt="@{{u.username}} user banner" style="height: 175px; object-fit: cover">
2021-07-21 01:12:26 +00:00
2021-09-03 14:08:32 +00:00
<img loading="lazy" src="{{u.profile_url}}" class="profile-pic-50 border-3 border-white" style="position: absolute; left: 15px; bottom: 15px; box-sizing: content-box;"></div>
2021-07-21 01:12:26 +00:00
<div class="card-body" style="word-wrap: break-word;">
<div class="d-flex flex-wrap justify-content-between align-items-center mb-3">
<a class="card-title text-break stretched-link h5 mb-0" href="{{u.url}}">@{{u.username}}</a>
2021-07-21 01:12:26 +00:00
{% if v %}
{% if v.id!=u.id and not u.is_private and not u.is_nofollow %}
2021-09-12 02:51:20 +00:00
<div id="button-sub-{{u.id}}" style="z-index: 2" class="{% if u.has_follower(v) %}d-none{% endif %}"><a class="btn btn-primary " href="javascript:void(0)" onclick="post_toast2('/follow/{{u.username}}','button-sub-{{u.id}}','button-unsub-{{u.id}}')">Follow</a></div>
2021-09-10 04:40:24 +00:00
2021-09-24 03:04:54 +00:00
{% if u.id != 995 %}<div id="button-unsub-{{u.id}}" style="z-index: 2" class="{% if not u.has_follower(v) %} d-none{% endif %}"><a class="btn btn-secondary " href="javascript:void(0)" onclick="post_toast2('/unfollow/{{u.username}}','button-sub-{{u.id}}','button-unsub-{{u.id}}')">Unfollow</a></div>{% endif %}
2021-07-21 01:12:26 +00:00
{% endif %}
{% else %}
2021-09-11 03:49:59 +00:00
<div id="button-sub-{{u.id}}" style="z-index: 2" "><a class="btn btn-primary " href="/signup?redirect={{request.path}}">Follow</a></div>
2021-07-21 01:12:26 +00:00
{% endif %}
</div>
2021-08-21 12:44:02 +00:00
{% if not hide_bios and u.bio_html %}
<div class="card-text">{{u.bio_html | safe}}</div>
2021-07-21 01:12:26 +00:00
{% endif %}
</div>
</div>
</div>
{% endfor %}