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
d57158f2
Verified
Commit
d57158f2
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Place all lesson information in page title. Closes
#4
.
parent
7e56e5a5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
biscuit/apps/alsijil/templates/alsijil/lesson.html
+12
-10
12 additions, 10 deletions
biscuit/apps/alsijil/templates/alsijil/lesson.html
biscuit/apps/alsijil/views.py
+1
-0
1 addition, 0 deletions
biscuit/apps/alsijil/views.py
with
13 additions
and
10 deletions
biscuit/apps/alsijil/templates/alsijil/lesson.html
+
12
−
10
View file @
d57158f2
...
...
@@ -8,7 +8,17 @@
{% endblock %}
{% block page_title %}
{% blocktrans %}Lesson documentation{% endblocktrans %}
{{ day }} -
{% for group in lesson_period.get_groups.all %}
<span>
{{ group.short_name }}
</span>
,
{% endfor %},
{{ lesson_period.get_subject.name }},
{% for teacher in lesson_period.get_teachers.all %}
{{ teacher.short_name }}
{% endfor %}
{% endblock %}
{% block content %}
...
...
@@ -18,15 +28,7 @@
<div
class=
"card"
>
<div
class=
"card-header bg-light text-dark"
>
{% for group in lesson_period.get_groups.all %}
<span>
{{ group.short_name }}
</span>
,
{% endfor %}
{{ lesson_period.get_subject.name }},
{% for teacher in lesson_period.get_teachers.all %}
{{ teacher.short_name }}
{% endfor %}
{% blocktrans %}Lesson documentation{% endblocktrans %}
</div>
<div
class=
"card-body"
>
{% csrf_token %}
...
...
This diff is collapsed.
Click to expand it.
biscuit/apps/alsijil/views.py
+
1
−
0
View file @
d57158f2
...
...
@@ -31,6 +31,7 @@ def lesson(request: HttpRequest, week: Optional[int] = None, period_id: Optional
context
[
'
lesson_period
'
]
=
lesson_period
context
[
'
week
'
]
=
wanted_week
context
[
'
day
'
]
=
week_days
(
wanted_week
)[
lesson_period
.
period
.
weekday
]
if
lesson_period
:
# Create or get lesson documentation object; can be empty when first opening lesson
...
...
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