From b2e4b732a4d5d0b6da99e99536913ff4273d9df6 Mon Sep 17 00:00:00 2001 From: kek7198 Date: Wed, 1 Dec 2021 17:28:11 -0600 Subject: [PATCH] fix --- files/static/src/main.css | 6 ++++ files/templates/search_users.html | 2 +- files/templates/user_listing.html | 50 +++++++++++++++++++------------ 3 files changed, 38 insertions(+), 20 deletions(-) diff --git a/files/static/src/main.css b/files/static/src/main.css index 0bae5dfa2..c7d07f475 100644 --- a/files/static/src/main.css +++ b/files/static/src/main.css @@ -95,6 +95,12 @@ .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; } +.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 ----------------------- */ .badge { diff --git a/files/templates/search_users.html b/files/templates/search_users.html index 4c45eafd6..86a599244 100644 --- a/files/templates/search_users.html +++ b/files/templates/search_users.html @@ -1,7 +1,7 @@ {% extends "search.html" %} {% block listing_template %} -
+
{% include "user_listing.html" %}
{% endblock %} diff --git a/files/templates/user_listing.html b/files/templates/user_listing.html index cd53223ac..9794bf09c 100644 --- a/files/templates/user_listing.html +++ b/files/templates/user_listing.html @@ -1,31 +1,43 @@ - {% for u in users %} - -
+
-
@{{u.username}} user banner +
+ @{{u.username}} user banner -
-
-
+ +
- @{{u.username}} +
+
- {% if v %} - {% if v.id!=u.id and not u.is_private and not u.is_nofollow %} - + @{{u.username}} - {% if u.id != 995 %}{% endif %} - {% endif %} - {% else %} - - {% endif %} + {% if v %} + {% if v.id!=u.id and not u.is_private and not u.is_nofollow %} +
+
- {% if not hide_bios and u.bio_html %} -
{{u.bio_html | safe}}
+ {% if u.id != 995 %} +
+ + {% endif %} + {% endif %} + {% else %} + {% endif %}
+ + {% if not hide_bios and u.bio_html %} +
{{u.bio_html | safe}}
+ {% endif %}
- {% endfor %} +
+{% endfor %}