2021-12-14 22:48:37 +00:00
2021-10-15 14:08:27 +00:00
{% for u in users %}
2021-12-14 22:48:37 +00:00
< div class = "col-12 col-sm-6 col-md-6 col-lg-4 col-xl-3 mb-4" >
< div id = "user-{{u.id}}" class = "card h-100" >
< div style = "position: relative;" > < img loading = "lazy" src = "{{u.banner_url}}" class = "card-img-top" alt = "@{{u.username}} user banner" height = 175 style = "object-fit: cover" >
2021-10-15 14:08:27 +00:00
2022-02-23 05:19:57 +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-12-14 22:48:37 +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" >
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
< 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 %}
2022-03-17 18:24: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" role = "button" onclick = "post_toast2(this,'/follow/{{u.username}}','button-sub-{{u.id}}','button-unsub-{{u.id}}')" > Follow< / a > < / div >
2021-12-14 22:48:37 +00:00
2022-03-17 18:24:20 +00:00
{% if not u.fish %}< 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" role = "button" onclick = "post_toast2(this,'/unfollow/{{u.username}}','button-sub-{{u.id}}','button-unsub-{{u.id}}')" > Unfollow< / a > < / div > {% endif %}
2021-12-14 22:48:37 +00:00
{% endif %}
{% else %}
2022-03-17 18:24:20 +00:00
< div id = "button-sub-{{u.id}}" style = "z-index: 2" > < a class = "btn btn-primary" href = "/signup" > Follow< / a > < / div >
2021-12-01 23:30:17 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
< / div >
{% if not hide_bios and u.bio_html %}
< div class = "card-text" > {{u.bio_html | safe}}< / div >
2021-10-15 14:08:27 +00:00
{% endif %}
< / div >
< / div >
< / div >
2021-12-14 22:48:37 +00:00
{% endfor %}