Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Chronos
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-Chronos
Merge requests
!153
Resolve "Check generation of regular timetable"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Check generation of regular timetable"
124-check-generation-of-regular-timetable
into
master
Overview
0
Commits
4
Pipelines
6
Changes
1
Merged
Jonathan Weth
requested to merge
124-check-generation-of-regular-timetable
into
master
3 years ago
Overview
0
Commits
4
Pipelines
6
Changes
1
Expand
Closes
#124 (closed)
Edited
3 years ago
by
Lloyd Meins
0
0
Merge request reports
Viewing commit
e6a5fa82
Prev
Next
Show latest version
1 file
+
10
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
e6a5fa82
Keep colour in regular timetable and change colour on substitutions
· e6a5fa82
Lloyd Meins
authored
3 years ago
aleksis/apps/chronos/templates/chronos/partials/lesson.html
+
10
−
2
Options
{% load i18n %}
<div
style=
"
{% with sub=lesson_period.get_substitution %}
{# Display background color only if lesson is not cancelled and it is not the old room #}
{% if not lesson_period.get_substitution.cancelled and not lesson_period.get_substitution.cancelled_for_teachers %}
{% if not smart %}
{% include "
chronos
/
partials
/
subject_colour.html
"
with
subject=
lesson_period.lesson.subject
%}
{%
elif
not
sub.cancelled
and
not
lesson_period.get_substitution.cancelled_for_teachers
%}
{%
if
not
type.value =
=
"
room
"
or
lesson_period.room =
=
lesson_period.get_room
or
lesson_period.get_room =
=
el
%}
{%
include
"
chronos
/
partials
/
subject_colour.html
"
with
subject=
lesson_period.lesson.subject
%}
{%
if
sub
and
sub.subject
%}
{%
include
"
chronos
/
partials
/
subject_colour.html
"
with
subject=
sub.subject
%}
{%
else
%}
{%
include
"
chronos
/
partials
/
subject_colour.html
"
with
subject=
lesson_period.lesson.subject
%}
{%
endif
%}
{%
endif
%}
{%
endif
%}
{%
endwith
%}
"
{
#
Add
CSS
class
for
sub
when
it
'
s
a
sub
#
}
class=
"{% if lesson_period.get_substitution and smart %}lesson-with-sub{% endif %}"
Loading