Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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-App-Alsijil
Commits
402fb55c
Verified
Commit
402fb55c
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Show 'Lesson documentations' tab on person overview only if the person is a teacher
parent
678b02c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!202
Resolve ""Lesson documentation" tab missing in 'My overview' for teachers"
Pipeline
#16833
passed
3 years ago
Stage: test
Stage: build
Stage: publish
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+4
-0
4 additions, 0 deletions
CHANGELOG.rst
aleksis/apps/alsijil/views.py
+2
-2
2 additions, 2 deletions
aleksis/apps/alsijil/views.py
with
6 additions
and
2 deletions
CHANGELOG.rst
+
4
−
0
View file @
402fb55c
...
...
@@ -9,6 +9,10 @@ and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Changed
~~~~~~~
* Show 'Lesson documentations' tab on person overview only if the person is a teacher.
Fixed
~~~~~
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/alsijil/views.py
+
2
−
2
View file @
402fb55c
...
...
@@ -957,8 +957,8 @@ def overview_person(request: HttpRequest, id_: Optional[int] = None) -> HttpResp
filter_dict
[
"
person
"
]
=
person
context
[
"
filter_form
"
]
=
filter_form
register_objects
=
generate_list_of_all_register_objects
(
filter_dict
)
if
register_objects
:
if
request
.
user
.
person
.
is_teacher
:
register_objects
=
generate_list_of_all_
register_objects
(
filter_dict
)
table
=
RegisterObjectTable
(
register_objects
)
items_per_page
=
request
.
user
.
person
.
preferences
[
"
alsijil__register_objects_table_items_per_page
"
...
...
This diff is collapsed.
Click to expand it.
Jonathan Weth
@hansegucker
mentioned in commit
28e92934
·
3 years ago
mentioned in commit
28e92934
mentioned in commit 28e92934c38a2a506f87cce4210f48630b563e28
Toggle commit list
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