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

Show also group ownerships on person detail page

(cherry picked from commit 8149e672)
parent b4b137ed
No related branches found
No related tags found
No related merge requests found
...@@ -255,5 +255,21 @@ ...@@ -255,5 +255,21 @@
</div> </div>
</div> </div>
{% endif %} {% 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> </div>
{% endblock %} {% 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