better logic for identifying group manager

This commit is contained in:
Hugh Rundle
2021-09-25 20:23:59 +10:00
parent 62a5ed7a9e
commit 035fc5209d
2 changed files with 5 additions and 14 deletions

View File

@ -38,6 +38,11 @@
<span title="{{ member.display_name }}" class="is-block is-6 has-text-weight-bold">{{ member.display_name|truncatechars:10 }}</span>
<span title="@{{ member|username }}" class="is-block pb-3">@{{ member|username|truncatechars:8 }}</span>
</a>
{% if group.manager == member %}
<span class="icon icon-star-full" title="Manager">
<span class="is-sr-only">Manager</span>
</span>
{% endif %}
{% include 'snippets/add_to_group_button.html' with user=member minimal=True %}
{% if member.mutuals %}
<p class="help">
@ -59,7 +64,6 @@
{% trans "Follows you" %}
</p>
{% endif %}
{% identify_manager %}
</div>
{% endfor %}
</div>