2022-05-04 23:09:46 +00:00
{% for u in users %}
2022-09-06 03:51:55 +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" >
< div class = "profile-pic-50-wrapper" style = "position: absolute; left: 15px; bottom: 15px; box-sizing: content-box;" >
2022-09-06 07:09:02 +00:00
< img loading = "lazy" src = "{{u.profile_url}}" class = "profile-pic-50" >
2022-09-06 03:51:55 +00:00
{% if u.hat_active -%}
2022-09-10 09:34:48 +00:00
< img id = "profile-pic-50-hat" class = "profile-pic-50-hat hat" loading = "lazy" src = "{{u.hat_active}}?h=5" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "{{u.hat_tooltip(v)}}" >
2022-09-06 03:51:55 +00:00
{%- endif %}
< / div >
< / div >
2022-05-04 23:09:46 +00:00
< div class = "card-body" style = "word-wrap: break-word;" >
2022-07-14 17:21:27 +00:00
< div class = "d-flex flex-wrap justify-content-between align-items-center mb-1" >
2022-05-04 23:09:46 +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-06-23 23:07:47 +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_toast(this,'/follow/{{u.username}}','button-sub-{{u.id}}','button-unsub-{{u.id}}','d-none')" > Follow< / a > < / div >
2022-05-04 23:09:46 +00:00
2022-06-23 23:07:47 +00:00
< 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_toast(this,'/unfollow/{{u.username}}','button-sub-{{u.id}}','button-unsub-{{u.id}}','d-none')" > Unfollow< / a > < / div >
2022-05-04 23:09:46 +00:00
{% endif %}
{% else %}
2022-09-06 03:51:55 +00:00
< div id = "button-sub-{{u.id}}" style = "z-index: 2" > < a class = "btn btn-primary" href = "/signup" > Follow< / a > < / div >
2022-05-04 23:09:46 +00:00
{% endif %}
< / div >
2022-07-14 17:21:27 +00:00
< span id = "profile--joined" > joined < span id = "profile--joined--time" data-bs-toggle = "tooltip" data-bs-placement = "bottom" onmouseover = "timestamp('profile--joined--time','{{u.created_utc}}')" > {{u.created_date}}< / span > < / span >
{% if v.admin_level >= 2 -%}
< span id = "profile--lastactive" class = "ml-2" > last active < span id = "profile--lastactive--time" data-bs-toggle = "tooltip" data-bs-placement = "bottom" onmouseover = "timestamp('profile--lastactive--time','{{u.last_active}}')" > {{u.last_active_date}}< / span > < / span >
{%- endif %}
2022-07-20 01:50:08 +00:00
{% if FEATURES['USERS_PROFILE_BODYTEXT'] and not hide_bios and u.bio_html %}
2022-07-14 17:21:27 +00:00
< div class = "card-text mt-3" > {{u.bio_html | safe}}< / div >
2022-05-04 23:09:46 +00:00
{% endif %}
< / div >
< / div >
< / div >
2022-09-06 03:51:55 +00:00
{% endfor %}