From fa432228e44b37df9c56d889d15709dc81b4e881 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Mon, 8 Mar 2021 19:21:36 +0100 Subject: [PATCH] [Full register printout] Show weekday in first column of lesson table --- aleksis/apps/alsijil/static/css/alsijil/full_register.css | 2 +- .../apps/alsijil/templates/alsijil/print/full_register.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aleksis/apps/alsijil/static/css/alsijil/full_register.css b/aleksis/apps/alsijil/static/css/alsijil/full_register.css index 9a3dc493a..0584c12ee 100644 --- a/aleksis/apps/alsijil/static/css/alsijil/full_register.css +++ b/aleksis/apps/alsijil/static/css/alsijil/full_register.css @@ -25,7 +25,7 @@ tr.lessons-day-first { border-top: 3px solid rgba(0, 0, 0, 0.3); } -th.lessons-day-head, td.rotate, th.rotate { +td.rotate, th.rotate { text-align: center; transform: rotate(-90deg); } diff --git a/aleksis/apps/alsijil/templates/alsijil/print/full_register.html b/aleksis/apps/alsijil/templates/alsijil/print/full_register.html index ca2d801d6..3434853ae 100644 --- a/aleksis/apps/alsijil/templates/alsijil/print/full_register.html +++ b/aleksis/apps/alsijil/templates/alsijil/print/full_register.html @@ -370,7 +370,7 @@ {% endfor %} {% for week in weeks %} - <h4>{% trans 'Lesson documentation for week' %} {{ week.week }}</h4> + <h4>{% trans 'Week' %} {{ week.week }}: {{ week.0 }}–{{ week.6 }}</h4> <table class="small-print"> <thead> @@ -401,7 +401,7 @@ {% endif %} "> {% if forloop.first %} - <th rowspan="{{ register_objects|length }}" class="lessons-day-head">{{ day }}</th> + <th rowspan="{{ register_objects|length }}" class="lessons-day-head">{{ day|date:"D" }}</th> {% endif %} <td class="lesson-pe"> {% if register_object.label_ != "event" %} -- GitLab