-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* draft calendar day view * build barebones layout engine * color communication and visual cues * highlight link target shift boxes * correctly handle calendar view switches * show date on day view * add previous and next buttons in day view * also include shifts from the next day that start before 3am * correctly handle csp * improve styling according to requests on #1221 * implement @felixrindt's color suggestion * suggestions for visual improvement * implement most @felixrindt's change requests * correctly call filter * small fixes from review to day view * remove unrelated missing migration * move different modes to their own files * beautify event headers in event list day view * remember last date the day view pointed to * remove duplicate date when no events are to be displayed in the date view * repair event day view filter, change event header * add tests for signup and filter * lint * restyle event head --------- Co-authored-by: Julian B <jeriox@users.noreply.github.com> Co-authored-by: Ben Bals <benbals@posteo.eu> Co-authored-by: Felix Rindt <felix@rindt.me>
- Loading branch information
1 parent
b60ff4d
commit 77807a6
Showing
12 changed files
with
654 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
{% load i18n %} | ||
{% load utils %} | ||
|
||
<div class="text-center p-1"> | ||
<span {% if today %}class="badge bg-primary rounded-circle fs-6"{% endif %}>{{ day }}</span> | ||
<span {% if today %}class="badge bg-primary rounded-circle fs-6"{% endif %}> | ||
<a href="?{% param_replace mode="day" date=date %}" class="text-decoration-none {% if today %} link-light text {% endif %}"> | ||
{{ day }} | ||
</a> | ||
</span> | ||
</div> | ||
<div> | ||
{% for shift in shifts %} | ||
<a href="{{ shift.event.get_absolute_url }}" class="text-decoration-none p-0" title="{{ shift.event.type }}: {{ shift.event.title }}"> | ||
{% for shift in shifts|slice:":5" %} | ||
<a href="{{ shift.event.get_absolute_url }}" class="text-decoration-none p-0" | ||
title="{{ shift.event.type }}: {{ shift.event.title }}"> | ||
<div class="w-100 d-inline-block calendar-truncate calendar-shift eventtype-{{ shift.event.type.pk }}-color rounded"> | ||
<span class="eventtype-indicator eventtype-{{ shift.event.type.pk }}-color"></span> | ||
<small class="d-none d-lg-inline-block">{{ shift.start_time|time }}</small> <span class="ps-1 ps-lg-0">{{ shift.event.title }}</span> | ||
<small class="d-none d-lg-inline-block">{{ shift.start_time|time }}</small> <span | ||
class="ps-1 ps-lg-0">{{ shift.event.title }}</span> | ||
</div> | ||
</a> | ||
{% endfor %} | ||
{% if shifts|length > 5 %} | ||
<a href="?{% param_replace mode="day" date=date %}">{{ shifts|length|add:"-5" }} {% translate 'more' %}</a> | ||
{% endif %} | ||
</div> |
Oops, something went wrong.