From 11158777253ac466f8c596cb9ba4535f504bb729 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 26 Feb 2023 12:35:50 +0200 Subject: [PATCH] add "owner" icon to ping groups member list --- files/assets/css/main.css | 8 ++++++++ files/templates/group_memberships.html | 6 +++++- files/templates/user_in_table.html | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/files/assets/css/main.css b/files/assets/css/main.css index cd2fda9b3..c839e3507 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -7181,6 +7181,10 @@ input[type=number] { white-space: nowrap; } +.group-owner { + height: 50px; +} + @media (max-width: 768px) { .award-tab { font-size: 10px !important; @@ -7199,4 +7203,8 @@ input[type=number] { #ping-groups .members { padding-right: 3.7rem !important; } + + .group-owner { + height: 30px; + } } diff --git a/files/templates/group_memberships.html b/files/templates/group_memberships.html index f060be7be..a2370f3f5 100644 --- a/files/templates/group_memberships.html +++ b/files/templates/group_memberships.html @@ -27,10 +27,14 @@ {% for membership in memberships %} {{loop.index}} - + {% set owner = name == 'members' and loop.index == 1 %} + {% with user=membership.user %} {% include "user_in_table.html" %} {% endwith %} + {% if owner %} + Owner + {% endif %} {% if name == 'members' %} diff --git a/files/templates/user_in_table.html b/files/templates/user_in_table.html index b09e21b2e..ee3623b3d 100644 --- a/files/templates/user_in_table.html +++ b/files/templates/user_in_table.html @@ -1,7 +1,7 @@ {%- include 'admin/shadowbanned_tooltip.html' -%} {% if user %} -
+
{% if user.hat_active(v)[0] -%}