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
415bb542
Unverified
Commit
415bb542
authored
5 years ago
by
Tom Teichler
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into issue43
parents
8ab91e44
656c3526
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!21
Add menu to footer. Closes #43.
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
apps/official/BiscuIT-App-Alsijil
+1
-1
1 addition, 1 deletion
apps/official/BiscuIT-App-Alsijil
biscuit/core/templates/core/group_full.html
+6
-3
6 additions, 3 deletions
biscuit/core/templates/core/group_full.html
biscuit/core/views.py
+12
-4
12 additions, 4 deletions
biscuit/core/views.py
with
19 additions
and
8 deletions
BiscuIT-App-Alsijil
@
b9a8c04e
Compare
a0c50e18
...
b9a8c04e
Subproject commit
a0c50e1881df1c19cbbccc472f24b0012b2fa482
Subproject commit
b9a8c04ec8cc5527ccf18f8f37c7ee0f9e7d8088
This diff is collapsed.
Click to expand it.
biscuit/core/templates/core/group_full.html
+
6
−
3
View file @
415bb542
...
...
@@ -20,11 +20,14 @@
</tr>
</table>
<h3>
Members
</h3>
{% render_table persons_table %}
<h3>
{% blocktrans %}Owners{% endblocktrans %}
</h3>
{% render_table owners_table %}
<h3>
{% blocktrans %}Members{% endblocktrans %}
</h3>
{% render_table members_table %}
{% else %}
<h2>
{% blocktrans %}
Person
not found{% endblocktrans %}
</h2>
<h2>
{% blocktrans %}
Group
not found{% endblocktrans %}
</h2>
<p>
{% blocktrans %}
...
...
This diff is collapsed.
Click to expand it.
biscuit/core/views.py
+
12
−
4
View file @
415bb542
...
...
@@ -89,12 +89,20 @@ def group(request: HttpRequest, id_: int, template: str) -> HttpResponse:
group
=
Group
.
objects
.
get
(
pk
=
id_
)
# Get members
person
s
=
group
.
members
.
all
()
member
s
=
group
.
members
.
all
()
# Build table
persons_table
=
PersonsTable
(
persons
)
RequestConfig
(
request
).
configure
(
persons_table
)
context
[
'
persons_table
'
]
=
persons_table
members_table
=
PersonsTable
(
members
)
RequestConfig
(
request
).
configure
(
members_table
)
context
[
'
members_table
'
]
=
members_table
# Get owners
owners
=
group
.
owners
.
all
()
# Build table
owners_table
=
PersonsTable
(
owners
)
RequestConfig
(
request
).
configure
(
owners_table
)
context
[
'
owners_table
'
]
=
owners_table
return
render
(
request
,
'
core/group_%s.html
'
%
template
,
context
)
...
...
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