fix prev commit + consistency

pull/221/head
Aevann 2024-01-12 07:39:05 +02:00
parent 7c9de9f78a
commit db004cae10
1 changed files with 6 additions and 4 deletions

View File

@ -170,8 +170,9 @@
<div class="text-white rounded p-2 mb-3" id="profile--groups" style="background-color: rgba(50, 50, 50, 0.6); width: 30%">
<p class="text-uppercase my-0 pb-1" style="font-weight: bold; font-size: 12px">Member of</p>
{% for i in u.group_memberships %}
<span class="d-inline-block mx-1 {% if u.id == i[1].owner.id %}font-weight-bolder{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Owner">
<a href="/!{{i[0]}}" {% if u.id == i[1].owner.id %}style="color: #bbb !important"{% endif %}>!{{i[0]}}</a>
{% set is_owner = (u.id == i[1].owner.id) %}
<span class="d-inline-block mx-1 {% if u.id == i[1].owner.id %}font-weight-bolder{% endif %}" {% if is_owner %}data-bs-toggle="tooltip" data-bs-placement="bottom" title="Owner"{% endif %}>
<a href="/!{{i[0]}}" {% if is_owner %}style="color: #bbb !important"{% endif %}>!{{i[0]}}</a>
</span>
{% endfor %}
</div>
@ -471,8 +472,9 @@
<div class="text-white rounded p-2 mt-3 mb-3" id="profile-mobile--groups" style="background-color: rgba(50, 50, 50, 0.6)">
<p class="text-uppercase my-0 pb-1" style="font-weight: bold; font-size: 12px">Member of</p>
{% for i in u.group_memberships %}
<span class="d-inline-block mx-1 {% if u.id == i[1].owner.id %}font-weight-bolder{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Owner">
<a href="/!{{i[0]}}">!{{i[0]}}</a>
{% set is_owner = (u.id == i[1].owner.id) %}
<span class="d-inline-block mx-1 {% if is_owner %}font-weight-bolder{% endif %}" {% if is_owner %}data-bs-toggle="tooltip" data-bs-placement="bottom" title="Owner"{% endif %}>
<a href="/!{{i[0]}}" {% if is_owner %}style="color: #bbb !important"{% endif %}>!{{i[0]}}</a>
</span>
{% endfor %}
</div>