add "owner" icon to ping groups member list

master
Aevann 2023-02-26 12:35:50 +02:00
parent fe0b8887bc
commit 1115877725
3 changed files with 14 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -27,10 +27,14 @@
{% for membership in memberships %}
<tr id="{{membership.user_id}}">
<td id="counter-{{membership.user_id}}">{{loop.index}}</td>
<td>
{% set owner = name == 'members' and loop.index == 1 %}
<td {% if owner %}class="unbreakable"{% endif %}>
{% with user=membership.user %}
{% include "user_in_table.html" %}
{% endwith %}
{% if owner %}
<img class="mx-2 group-owner" data-bs-toggle="tooltip" alt="Owner" title="Owner" src="/e/marseykingretard.webp">
{% endif %}
</td>
{% if name == 'members' %}

View File

@ -1,7 +1,7 @@
{%- include 'admin/shadowbanned_tooltip.html' -%}
{% if user %}
<a data-sort-key="{{user.username.lower()}}" style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper mb-2 {% if request.path != '/ping_groups' %}mr-1 float-left{% endif %}">
<div class="profile-pic-20-wrapper mb-2">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active(v)[0] -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="{{user.hat_active(v)[0]}}?h=7" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_active(v)[1]}}">