Skip to content
Snippets Groups Projects
Verified Commit 7e32d881 authored by Lukas Weichelt's avatar Lukas Weichelt Committed by Jonathan Weth
Browse files

Fix group ownership only showing when being member of a group

(cherry picked from commit 1ebbb071)
parent 53c28832
No related branches found
No related tags found
No related merge requests found
......@@ -242,19 +242,21 @@
{% has_perm 'core.view_person_groups_rule' user person as can_view_groups %}
{% if can_view_groups and groups %}
<div class="col s12 m6 l4">
<h2>{% blocktrans %}Groups{% endblocktrans %}</h2>
<div class="card-panel">
<div class="collection">
{% for group in groups %}
<a href="{{ group.get_absolute_url }}" class="collection-item">
{{ group.name }} ({{ group.school_term }})
</a>
{% endfor %}
{% if groups.count %}
<div class="col s12 m6 l4">
<h2>{% blocktrans %}Groups{% endblocktrans %}</h2>
<div class="card-panel">
<div class="collection">
{% for group in groups %}
<a href="{{ group.get_absolute_url }}" class="collection-item">
{{ group.name }} ({{ group.school_term }})
</a>
{% endfor %}
</div>
</div>
</div>
</div>
{% if person.owner_of_recursive.count %}
{% endif %}
{% elif person.owner_of_recursive.count %}
<div class="col s12 m6 l4">
<h2>{% blocktrans %}Group ownership{% endblocktrans %}</h2>
<div class="card-panel">
......@@ -268,6 +270,5 @@
</div>
</div>
{% endif %}
{% endif %}
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment