Skip to content
Snippets Groups Projects
Verified Commit 8149e672 authored by Lukas Weichelt's avatar Lukas Weichelt
Browse files

Show also group ownerships on person detail page

parent 0a025d1b
No related branches found
No related tags found
1 merge request!1094Resolve "Show also group ownerships on person detail page"
......@@ -255,5 +255,21 @@
</div>
</div>
{% endif %}
{% 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 %}Group ownership{% endblocktrans %}</h2>
<div class="card-panel">
<div class="collection">
{% for group in person.owner_of_recursive %}
<a href="{{ group.get_absolute_url }}" class="collection-item">
{{ group.name }} ({{ group.school_term }})
</a>
{% endfor %}
</div>
</div>
</div>
{% 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