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
!90
Performance optimizations
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Performance optimizations
feature/performance-optimizations
into
master
Overview
19
Commits
29
Pipelines
22
Changes
9
Merged
Jonathan Weth
requested to merge
feature/performance-optimizations
into
master
4 years ago
Overview
19
Commits
29
Pipelines
22
Changes
9
Expand
Close
#107 (closed)
Edited
4 years ago
by
Jonathan Weth
0
0
Merge request reports
Compare
master
version 22
4e460d55
4 years ago
version 21
c32c3d04
4 years ago
version 20
56806b7f
4 years ago
version 19
56806b7f
4 years ago
version 18
9d51bbfb
4 years ago
version 17
82107ae6
4 years ago
version 16
6e333849
4 years ago
version 15
50629966
4 years ago
version 14
abbd2ccd
4 years ago
version 13
66071535
4 years ago
version 12
b62a14d2
4 years ago
version 11
3b8503d8
4 years ago
version 10
cbe2050b
4 years ago
version 9
940687dc
4 years ago
version 8
50459916
4 years ago
version 7
24ef1e73
4 years ago
version 6
32ef21a6
4 years ago
version 5
f0cb7404
4 years ago
version 4
f56f70a5
4 years ago
version 3
ea8239e3
4 years ago
version 2
78772300
4 years ago
version 1
6c29d76d
4 years ago
master (base)
and
latest version
latest version
7d767261
29 commits,
4 years ago
version 22
4e460d55
26 commits,
4 years ago
version 21
c32c3d04
25 commits,
4 years ago
version 20
56806b7f
24 commits,
4 years ago
version 19
56806b7f
120 commits,
4 years ago
version 18
9d51bbfb
119 commits,
4 years ago
version 17
82107ae6
116 commits,
4 years ago
version 16
6e333849
114 commits,
4 years ago
version 15
50629966
112 commits,
4 years ago
version 14
abbd2ccd
109 commits,
4 years ago
version 13
66071535
107 commits,
4 years ago
version 12
b62a14d2
106 commits,
4 years ago
version 11
3b8503d8
105 commits,
4 years ago
version 10
cbe2050b
102 commits,
4 years ago
version 9
940687dc
101 commits,
4 years ago
version 8
50459916
100 commits,
4 years ago
version 7
24ef1e73
99 commits,
4 years ago
version 6
32ef21a6
98 commits,
4 years ago
version 5
f0cb7404
98 commits,
4 years ago
version 4
f56f70a5
97 commits,
4 years ago
version 3
ea8239e3
96 commits,
4 years ago
version 2
78772300
95 commits,
4 years ago
version 1
6c29d76d
92 commits,
4 years ago
9 files
+
334
−
205
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
aleksis/apps/alsijil/templates/alsijil/class_register/lesson.html
+
72
−
77
Options
@@ -12,7 +12,7 @@
{% block page_title %}
{% with lesson_period.get_lesson_documentation as lesson_doc %}
<a
href=
"{% url "
week_view_by_week
"
lesson_doc.year
lesson_doc.week
"
group
"
lesson_period.lesson.groups.all.0.pk
%}"
class=
"btn-flat primary-color-text waves-light waves-effect"
>
class=
"btn-flat primary-color-text waves-light waves-effect"
>
<i
class=
"material-icons left"
>
chevron_left
</i>
{% trans "Back" %}
</a>
{% endwith %}
@@ -40,21 +40,17 @@
<div
class=
"row"
>
<div
class=
"col s12"
>
{% with prev_lesson=lesson_period.prev %}
<a
class=
"btn-flat left waves-effect waves-light"
href=
"{% url "
lesson_by_week_and_period
"
prev_lesson.week.year
prev_lesson.week.week
prev_lesson.id
%}"
>
<i
class=
"material-icons left"
>
arrow_back
</i>
{% trans "Previous lesson" %}
</a>
{% endwith %}
<a
class=
"btn-flat left waves-effect waves-light"
href=
"{% url "
lesson_by_week_and_period
"
prev_lesson.week.year
prev_lesson.week.week
prev_lesson.id
%}"
>
<i
class=
"material-icons left"
>
arrow_back
</i>
{% trans "Previous lesson" %}
</a>
{% with next_lesson=lesson_period.next %}
<a
class=
"btn-flat right waves-effect waves-light"
href=
"{% url "
lesson_by_week_and_period
"
next_lesson.week.year
next_lesson.week.week
next_lesson.id
%}"
>
<i
class=
"material-icons right"
>
arrow_forward
</i>
{% trans "Next lesson" %}
</a>
{% endwith %}
<a
class=
"btn-flat right waves-effect waves-light"
href=
"{% url "
lesson_by_week_and_period
"
next_lesson.week.year
next_lesson.week.week
next_lesson.id
%}"
>
<i
class=
"material-icons right"
>
arrow_forward
</i>
{% trans "Next lesson" %}
</a>
</div>
</div>
@@ -130,75 +126,74 @@
</div>
{% with prev_lesson=lesson_period.prev prev_doc=prev_lesson.get_lesson_documentation %}
{% with
prev_doc=prev_lesson.get_lesson_documentation
absences=prev_lesson.get_absences tardinesses=prev_lesson.get_tardinesses extra_marks=prev_lesson.get_extra_marks %}
{% has_perm "alsijil.view_lessondocumentation" user prev_lesson as can_view_prev_lesson_documentation %}
{% if prev_doc and can_view_prev_lesson_documentation %}
{% weekday_to_date prev_lesson.week prev_lesson.period.weekday as prev_date %}
<div
class=
"col s12"
id=
"previous-lesson"
>
<div
class=
"card"
>
<div
class=
"card-content"
>
{% with absences=prev_lesson.get_absences tardinesses=prev_lesson.get_tardinesses extra_marks=prev_lesson.get_extra_marks %}
{% has_perm "alsijil.view_lessondocumentation" user prev_lesson as can_view_prev_lesson_documentation %}
{% if prev_doc and can_view_prev_lesson_documentation %}
{% weekday_to_date prev_lesson.week prev_lesson.period.weekday as prev_date %}
<div
class=
"col s12"
id=
"previous-lesson"
>
<div
class=
"card"
>
<div
class=
"card-content"
>
<span
class=
"card-title"
>
{% blocktrans %}Overview: Previous lesson{% endblocktrans %} ({{ prev_date }},
{% blocktrans with period=prev_lesson.period.period %}{{ period }}. period{% endblocktrans %})
</span>
<table>
{% if prev_doc.topic %}
<tr>
<th
class=
"collection-item"
>
{% trans "Lesson topic of previous lesson:" %}
</th>
<td>
{{ prev_doc.topic }}
</td>
</tr>
{% endif %}
<table>
{% if prev_doc.topic %}
<tr>
<th
class=
"collection-item"
>
{% trans "Lesson topic of previous lesson:" %}
</th>
<td>
{{ prev_doc.topic }}
</td>
</tr>
{% endif %}
{% if prev_doc.homework %}
<tr>
<th
class=
"collection-item"
>
{% trans "Homework for this lesson:" %}
</th>
<td>
{{ prev_doc.homework }}
</td>
</tr>
{% endif %}
{% if prev_doc.homework %}
<tr>
<th
class=
"collection-item"
>
{% trans "Homework for this lesson:" %}
</th>
<td>
{{ prev_doc.homework }}
</td>
</tr>
{% endif %}
{% if prev_doc.group_note %}
<tr>
<th
class=
"collection-item"
>
{% trans "Group notes for previous lesson:" %}
</th>
<td>
{{ prev_doc.group_note }}
</td>
</tr>
{% endif %}
{% if prev_doc.group_note %}
<tr>
<th
class=
"collection-item"
>
{% trans "Group notes for previous lesson:" %}
</th>
<td>
{{ prev_doc.group_note }}
</td>
</tr>
{% endif %}
{% if absences %}
<tr>
<th>
{% trans "Absent persons:" %}
</th>
<td>
{% include "alsijil/partials/absences.html" with notes=absences %}
</td>
</tr>
{% endif %}
{% if absences %}
<tr>
<th>
{% trans "Absent persons:" %}
</th>
<td>
{% include "alsijil/partials/absences.html" with notes=absences %}
</td>
</tr>
{% endif %}
{% if tardinesses %}
<tr>
<th>
{% trans "Late persons:" %}
</th>
<td>
{% include "alsijil/partials/tardinesses.html" with notes=tardinesses %}
</td>
</tr>
{% endif %}
{% if tardinesses %}
<tr>
<th>
{% trans "Late persons:" %}
</th>
<td>
{% include "alsijil/partials/tardinesses.html" with notes=tardinesses %}
</td>
</tr>
{% endif %}
{% for extra_mark, notes in extra_marks.items %}
<tr>
<th>
{{ extra_mark.name }}
</th>
<td>
{% for note in notes %}
{% has_perm "alsijil.view_personalnote" user note as can_view_personalnote %}
{% if can_view_personalnote %}
<span>
{{ note.person }}{% if not forloop.last %},{% endif %}
</span>
{% endif %}
{% endfor %}
</td>
</tr>
{% endfor %}
{% for extra_mark, notes in extra_marks.items %}
<tr>
<th>
{{ extra_mark.name }}
</th>
<td>
{% for note in notes %}
{% has_perm "alsijil.view_personalnote" user note as can_view_personalnote %}
{% if can_view_personalnote %}
<span>
{{ note.person }}{% if not forloop.last %},{% endif %}
</span>
{% endif %}
{% endfor %}
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</table>
</div>
{% endif %}
{% end
with
%}
</div>
{% end
if
%}
{% endwith %}
{% endwith %}
{% if not lesson_period.get_substitution.cancelled or not request.site.preferences.alsijil__block_personal_notes_for_cancelled %}
<div
class=
"col s12"
id=
"personal-notes"
>
@@ -284,8 +279,8 @@
<td>
{{ form.person_name.value }}
</td>
<td><i
class=
"material-icons center"
>
{{ form.absent.value|yesno:"check,clear" }}
</i></td>
<td>
<i
class=
"material-icons center"
>
{{ form.late.value|yesno:"check,clear" }}
</i>
<span
class=
"alsijil-tardiness-text"
>
<i
class=
"material-icons center"
>
{{ form.late.value|yesno:"check,clear" }}
</i>
<span
class=
"alsijil-tardiness-text"
>
{% if form.late.value %}{{ form.late.value|to_time|time:"i\m" }}{% endif %}
</span>
</td>
@@ -321,10 +316,10 @@
</div>
</div>
{% endif %}
</div>
</div>
{% if can_edit_lesson_documentation or can_edit_lesson_personalnote %}
<p>
{% include "core/partials/save_button.html" %}
</p>
{% endif %}
{% if can_edit_lesson_documentation or can_edit_lesson_personalnote %}
<p>
{% include "core/partials/save_button.html" %}
</p>
{% endif %}
</form>
{% endblock %}
Loading