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
!88
Resolve "Check (responsive) design"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Check (responsive) design"
94-check-responsive-design
into
master
Overview
4
Commits
27
Pipelines
6
Changes
4
Merged
Julian
requested to merge
94-check-responsive-design
into
master
4 years ago
Overview
4
Commits
27
Pipelines
6
Changes
1
Expand
Closes
#94 (closed)
Closes
#100 (closed)
Closes
#101 (closed)
Edited
4 years ago
by
Jonathan Weth
0
0
Merge request reports
Compare
version 1
version 6
c733086c
4 years ago
version 5
c733086c
4 years ago
version 4
c3feb74b
4 years ago
version 3
4010ae0f
4 years ago
version 2
04583173
4 years ago
version 1
2807aa00
4 years ago
master (base)
and
version 2
latest version
c733086c
27 commits,
4 years ago
version 6
c733086c
27 commits,
4 years ago
version 5
c733086c
27 commits,
4 years ago
version 4
c3feb74b
19 commits,
4 years ago
version 3
4010ae0f
16 commits,
4 years ago
version 2
04583173
15 commits,
4 years ago
version 1
2807aa00
9 commits,
4 years ago
Show latest version
1 file
+
95
−
16
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
aleksis/apps/alsijil/templates/alsijil/class_register/week_view.html
+
95
−
16
Options
@@ -42,7 +42,13 @@
{% if lesson_periods %}
<div
class=
"row"
>
<div
class=
"col s12 l7"
>
<div
class=
"col s12"
>
<ul
class=
"tabs"
>
<li
class=
"tab col s6"
><a
class=
"active"
href=
"#week-overview"
>
{% trans "Week overview" %}
</a></li>
<li
class=
"tab col s6"
><a
class=
"active"
href=
"#personal-notes"
>
{% trans "Personal notes" %}
</a></li>
</ul>
</div>
<div
class=
"col s12"
id=
"week-overview"
>
{% regroup lesson_periods by period.get_weekday_display as periods_by_day %}
{% for weekday, periods in periods_by_day %}
<div
class=
"card show-on-extra-large"
>
@@ -62,6 +68,8 @@
<th>
{% blocktrans %}Subject{% endblocktrans %}
</th>
<th>
{% blocktrans %}Teachers{% endblocktrans %}
</th>
<th>
{% blocktrans %}Lesson topic{% endblocktrans %}
</th>
<th>
{% blocktrans %}Homework{% endblocktrans %}
</th>
<th>
{% blocktrans %}Group note{% endblocktrans %}
</th>
</tr>
</thead>
<tbody>
@@ -96,9 +104,19 @@
</td>
<td>
<a
class=
"tr-link"
href=
"{% url 'lesson_by_week_and_period' week.year week.week period.id %}"
>
{
{
period.get_lesson_documentation.topic
}
}
{
% firstof
period.get_lesson_documentation.topic
"–" %
}
</a>
</td>
<td>
<a
class=
"tr-link"
href=
"{% url 'lesson_by_week_and_period' week.year week.week period.id %}"
>
{% firstof period.get_lesson_documentation.homework "–" %}
</a>
</td>
<td>
<a
class=
"tr-link"
href=
"{% url 'lesson_by_week_and_period' week.year week.week period.id %}"
>
{% firstof period.get_lesson_documentation.group_note "–" %}
</a>
</td>
</tr>
{% endif %}
{% endfor %}
@@ -115,20 +133,81 @@
<div
class=
"collapsible-body"
>
<div
class=
"collection"
>
{% for period in periods %}
<a
class=
"collection-item avatar"
href=
"{% url 'lesson_by_week_and_period' week.year week.week period.id %}"
>
<p
class=
"title"
>
{% has_perm "alsijil.view_lessondocumentation" user period as can_view_lesson_documentation %}
{% if can_view_lesson_documentation %}
<a
class=
"collection-item avatar"
href=
"{% url 'lesson_by_week_and_period' week.year week.week period.id %}"
>
{% include "alsijil/partials/lesson_status_icon.html" with period=period css_class="circle" color_suffix=" " %}
{{ period.period.period }}. {{ period.get_subject.name }}
</p>
<p>
{% if not group %}
{{ period.lesson.group_names }}
{% endif %}
{{ period.get_teacher_names }}
</p>
<p>
{{ period.get_lesson_documentation.topic }}
</p>
</a>
<table
class=
"hide-on-med-and-down"
>
<tr>
<th>
{% trans "Subject" %}
</th>
<td>
{{ period.period.period }}. {{ period.get_subject.name }}
</td>
</tr>
{% if not group %}
<tr>
<th>
{% trans "Group" %}
</th>
<td>
{{ period.lesson.group_names }}
</td>
</tr>
{% endif %}
<tr>
<th>
{% trans "Teachers" %}
</th>
<td>
{{ period.lesson.teacher_names }}
</td>
</tr>
<tr>
<th>
{% trans "Lesson topic" %}
</th>
<td>
{% firstof period.get_lesson_documentation.topic "–" %}
</td>
</tr>
{% with period.get_lesson_documentation as lesson_documentation %}
{% if lesson_documentation.homework %}
<tr>
<th>
{% trans "Homework" %}
</th>
<td>
{% firstof period.get_lesson_documentation.homework "–" %}
</td>
</tr>
{% endif %}
{% if lesson_documentation.group_note %}
<tr>
<th>
{% trans "Group note" %}
</th>
<td>
{% firstof period.get_lesson_documentation.group_note "–" %}
</td>
</tr>
{% endif %}
{% endwith %}
</table>
<div
class=
"hide-on-large-only"
>
<ul
class=
"collection"
>
<li
class=
"collection-item"
>
{{ period.period.period }}. {{ period.get_subject.name }}
</li>
{% if not group %}
<li
class=
"collection-item"
>
{{ period.lesson.group_names }}
</li>
{% endif %}
<li
class=
"collection-item"
>
{{ period.lesson.teacher_names }}
</li>
<li
class=
"collection-item"
>
{{ period.get_lesson_documentation.topic }}
</li>
{% with period.get_lesson_documentation as lesson_documentation %}
{% if lesson_documentation.homework %}
<li
class=
"collection-item"
>
<strong>
{% trans "Homework" %}
</strong>
{% firstof period.get_lesson_documentation.homework "–" %}
</li>
{% endif %}
{% if lesson_documentation.group_note %}
<li
class=
"collection-item"
>
<strong>
{% trans "Group note" %}
</strong>
{% firstof period.get_lesson_documentation.group_note "–" %}
</li>
{% endif %}
{% endwith %}
</ul>
</div>
</a>
{% endif %}
{% endfor %}
</div>
</div>
@@ -136,7 +215,7 @@
</ul>
{% endfor %}
</div>
<div
class=
"col s12
l5
"
>
<div
class=
"col s12
"
id=
"personal-notes
"
>
<div
class=
"card"
>
<div
class=
"card-content"
>
<span
class=
"card-title"
>
Loading