Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
3fdb8a22
Verified
Commit
3fdb8a22
authored
2 years ago
by
Lukas Weichelt
Committed by
Jonathan Weth
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix group ownership on detail page
(cherry picked from commit
70af2427
)
parent
76cdfbe6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/core/templates/core/person/full.html
+26
-24
26 additions, 24 deletions
aleksis/core/templates/core/person/full.html
with
26 additions
and
24 deletions
aleksis/core/templates/core/person/full.html
+
26
−
24
View file @
3fdb8a22
...
...
@@ -241,35 +241,37 @@
{% endif %}
{% has_perm 'core.view_person_groups_rule' user person as can_view_groups %}
{% if can_view_groups and groups %}
{% 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 %}
{% if can_view_groups and groups.count or can_view_groups and person.owner_of_recursive.count or can_view_groups and person.owner_of_recursive.count and groups.count %}
<div
class=
"col s12 m6 l4"
>
{% 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
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.all %}
<a
href=
"{{ group.get_absolute_url }}"
class=
"collection-item"
>
{{ group.name }} ({{ group.school_term }}) {{ person.owner_of_recursive.count}}
{% 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 %}
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
{% endif %}
</div>
{% endif %}
</div>
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment