Skip to content
Snippets Groups Projects
Commit ccfa8bdd authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '694-show-also-group-ownerships-on-person-detail-page' into 'master'

Resolve "Show also group ownerships on person detail page"

Closes #694

See merge request !1094
parents 591544c7 ec36c8f5
No related branches found
No related tags found
1 merge request!1094Resolve "Show also group ownerships on person detail page"
Pipeline #93251 canceled
......@@ -14,6 +14,7 @@ Added
* Notification drawer in top nav bar
* GraphQL queries and mutations for core data management
* Show also group ownerships on person detail page
Changed
~~~~~~~
......
......@@ -241,18 +241,36 @@
{% endif %}
{% has_perm 'core.view_person_groups_rule' user person as can_view_groups %}
{% if can_view_groups and groups %}
{% if can_view_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>
<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>
{% endif %}
{% if person.owner_of_recursive.count %}
<div>
<h2>{% blocktrans %}Group ownership{% endblocktrans %}</h2>
<div class="card-panel">
<div class="collection">
{% for group in person.owner_of_recursive.all %}
<a href="{{ group.get_absolute_url }}" class="collection-item">
{{ group.name }} ({{ group.school_term }})
</a>
{% endfor %}
</div>
</div>
</div>
{% endif %}
</div>
{% endif %}
</div>
......
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