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
05815d84
Verified
Commit
05815d84
authored
2 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Restructure full group page
parent
5b721aaf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1049
Resolve "Show more detailed member tables on group detail pages"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/core/templates/core/group/full.html
+36
-16
36 additions, 16 deletions
aleksis/core/templates/core/group/full.html
with
36 additions
and
16 deletions
aleksis/core/templates/core/group/full.html
+
36
−
16
View file @
05815d84
...
...
@@ -9,7 +9,9 @@
{% block browser_title %}{{ group.name }}{% endblock %}
{% block content %}
<h1>
{{ group.name }}
<small
class=
"grey-text"
>
{{ group.short_name }}
</small></h1>
<h1>
{{ group.name }}
<small
class=
"grey-text"
>
{{ group.short_name }}
</small>
</h1>
{% has_perm 'core.edit_group_rule' user group as can_change_group %}
{% has_perm 'core.change_group_preferences_rule' user group as can_change_group_preferences %}
...
...
@@ -44,39 +46,57 @@
<table>
<tr>
<th>
<i
class=
"material-icons iconify center"
data-icon=
"mdi:shape-outline"
title=
"{% trans "
Group
type
"
%}"
></i>
<i
class=
"material-icons iconify left"
data-icon=
"mdi:shape-outline"
></i>
{% trans "Group type" %}
</th>
<td>
{{ group.group_type }}
{{ group.group_type
|default:"–"
}}
</td>
</tr>
<tr>
<th>
<i
class=
"material-icons iconify center"
data-icon=
"mdi:format-vertical-align-top"
title=
"{% trans "
Parent
groups
"
%}"
></i>
<i
class=
"material-icons iconify left"
data-icon=
"mdi:format-vertical-align-top"
></i>
{% trans "Parent groups" %}
</th>
<td>
{{ group.parent_groups.all|join:", " }}
{{ group.parent_groups.all|join:", "
|default:"–"
}}
</td>
</tr>
</table>
{% if can_view_group_stats %}
<h2>
{% blocktrans %}Statistics{% endblocktrans %}
</h2>
<ul>
<li>
{% trans "Count of members" %}: {{ stats.members }}
</li>
<table>
<tr>
<th>
<i
class=
"material-icons iconify left"
data-icon=
"mdi:account-group-outline"
></i>
{% trans "Count of members" %}
</th>
<td>
{{ stats.members }}
</td>
</tr>
{% if stats.age_avg %}
<li>
{% trans "Average age" %}: {{ stats.age_avg|floatformat }}
</li>
<tr>
<th>
<i
class=
"material-icons iconify left"
data-icon=
"mdi:cake-variant-outline"
></i>
{% trans "Average age" %}
</th>
<td>
{{ stats.age_avg|floatformat }}
</td>
</tr>
{% endif %}
{% if stats.age_range_min %}
<li>
{% trans "Age range" %}: {{ stats.age_range_min }} {% trans "years to" %} {{ stats.age_range_max }} {% trans "years "%}
</li>
<tr>
<th>
<i
class=
"material-icons iconify left"
data-icon=
"mdi:calendar-range-outline"
></i>
{% trans "Age range" %}
</th>
<td>
{% blocktrans with min=stats.age_range_min max=stats.age_range_max %}
{{ min }} years to {{ max }} years
{% endblocktrans %}
</td>
</tr>
{% endif %}
</
ul
>
</
table
>
{% endif %}
<h2>
{% blocktrans %}Owners{% endblocktrans %}
</h2>
...
...
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