forked from MarseyWorld/MarseyWorld
fix
parent
97bee5df80
commit
b2e4b732a4
|
@ -95,6 +95,12 @@
|
||||||
.btn-red {
|
.btn-red {
|
||||||
@apply bg-gradient-to-t from-red-700 to-red-600 hover:from-red-600 hover:to-red-700 border-red-900 text-gray-100 focus:text-gray-200;
|
@apply bg-gradient-to-t from-red-700 to-red-600 hover:from-red-600 hover:to-red-700 border-red-900 text-gray-100 focus:text-gray-200;
|
||||||
}
|
}
|
||||||
|
.btn-green {
|
||||||
|
@apply bg-gradient-to-t from-green-700 to-green-600 hover:from-green-600 hover:to-green-700 border-green-900 text-gray-100 focus:text-gray-200;
|
||||||
|
}
|
||||||
|
.btn-gray {
|
||||||
|
@apply bg-gradient-to-t from-gray-200 to-gray-100 hover:from-gray-100 hover:to-gray-200 border-gray-300 text-gray-700 focus:text-gray-900;
|
||||||
|
}
|
||||||
|
|
||||||
/* ----------------------- BADGES ----------------------- */
|
/* ----------------------- BADGES ----------------------- */
|
||||||
.badge {
|
.badge {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "search.html" %}
|
{% extends "search.html" %}
|
||||||
|
|
||||||
{% block listing_template %}
|
{% block listing_template %}
|
||||||
<div class="row row-cols-1 row-cols-md-3 mt-3">
|
<div class="flex flex-wrap -mx-2 overflow-hidden">
|
||||||
{% include "user_listing.html" %}
|
{% include "user_listing.html" %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
|
|
||||||
{% for u in users %}
|
{% for u in users %}
|
||||||
|
<div class="my-2 px-2 w-1/2 overflow-hidden lg:w-1/3 xl:w-1/4">
|
||||||
<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 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="relative">
|
||||||
|
<img loading="lazy" src="{{u.banner_url}}" class="object-cover" alt="@{{u.username}} user banner" height=175>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
<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>
|
|
||||||
<div class="card-body" style="word-wrap: break-word;">
|
<div class="card-body" style="word-wrap: break-word;">
|
||||||
<div class="d-flex flex-wrap justify-content-between align-items-center mb-3">
|
<div class="d-flex flex-wrap justify-content-between align-items-center mb-3">
|
||||||
|
|
||||||
|
@ -13,12 +14,23 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
{% if v.id!=u.id and not u.is_private and not u.is_nofollow %}
|
{% 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 %}"><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>
|
<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 %}"><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 %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% else %}
|
{% 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-primary " href="/signup?redirect={{request.path}}">Follow
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue