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
Merge requests
!10
Prepare template. Advances BiscuIT-ng#89.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Prepare template. Advances BiscuIT-ng#89.
89-provide-page-turning-base-template
into
master
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Tom Teichler
requested to merge
89-provide-page-turning-base-template
into
master
5 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
a6f64864
Prev
Next
Show latest version
1 file
+
5
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
a6f64864
Prepare view. Advances BiscuIT-ng#89.
· a6f64864
Tom Teichler
authored
5 years ago
biscuit/apps/alsijil/views.py
+
5
−
2
Options
@@ -147,9 +147,12 @@ def group_week(request: HttpRequest, week: Optional[int] = None) -> HttpResponse
# Add a form to filter the view
select_form
=
SelectForm
(
request
.
GET
or
None
)
context
[
'
current_head
'
]
=
_
(
'
Week (%s %s - %s)
'
)
%
(
wanted_week
,
week_start
,
week_end
)
context
[
'
week
'
]
=
wanted_week
context
[
'
week
_next
'
]
=
wanted_week
+
1
context
[
'
week
_prev
'
]
=
wanted_week
-
1
context
[
'
url
_next
'
]
=
'
%s?%s
'
%
(
redirect
(
'
group_week_by_week
'
,
week
=
wanted_week
+
1
),
request
.
GET
.
urlencode
())
context
[
'
url
_prev
'
]
=
'
%s?%s
'
%
(
redirect
(
'
group_week_by_week
'
,
week
=
wanted_week
-
1
),
request
.
GET
.
urlencode
())
context
[
'
group
'
]
=
group
context
[
'
lesson_periods
'
]
=
lesson_periods
context
[
'
persons
'
]
=
persons
Loading