mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
[A11y] change organizer page-titles based calendar-view (#5197)
* [A11y] change organizer page-titles based calendar-view * add current date to title as in h2
This commit is contained in:
committed by
GitHub
parent
f9c0baf369
commit
5866162932
@@ -4,7 +4,11 @@
|
|||||||
{% load rich_text %}
|
{% load rich_text %}
|
||||||
{% load eventurl %}
|
{% load eventurl %}
|
||||||
{% load urlreplace %}
|
{% load urlreplace %}
|
||||||
{% block title %}{% trans "Event overview" %}{% endblock %}
|
{% block title %}
|
||||||
|
{% blocktrans trimmed with month=date|date:"F Y" %}
|
||||||
|
Events in {{ month }}
|
||||||
|
{% endblocktrans %}
|
||||||
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if organizer_homepage_text %}
|
{% if organizer_homepage_text %}
|
||||||
<div class="blank-after">
|
<div class="blank-after">
|
||||||
|
|||||||
@@ -4,7 +4,11 @@
|
|||||||
{% load rich_text %}
|
{% load rich_text %}
|
||||||
{% load eventurl %}
|
{% load eventurl %}
|
||||||
{% load urlreplace %}
|
{% load urlreplace %}
|
||||||
{% block title %}{% trans "Event overview" %}{% endblock %}
|
{% block title %}
|
||||||
|
{% blocktrans trimmed with day=date|date:"DATE_FORMAT" %}
|
||||||
|
Events on {{ day }}
|
||||||
|
{% endblocktrans %}
|
||||||
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if organizer_homepage_text %}
|
{% if organizer_homepage_text %}
|
||||||
<div class="blank-after">
|
<div class="blank-after">
|
||||||
|
|||||||
@@ -4,7 +4,11 @@
|
|||||||
{% load rich_text %}
|
{% load rich_text %}
|
||||||
{% load eventurl %}
|
{% load eventurl %}
|
||||||
{% load urlreplace %}
|
{% load urlreplace %}
|
||||||
{% block title %}{% trans "Event overview" %}{% endblock %}
|
{% block title %}
|
||||||
|
{% blocktrans trimmed with week=date|date:week_format week_day_from=date|date:short_month_day_format week_day_to=date_to|date:short_month_day_format %}
|
||||||
|
Events in {{ week }} ({{ week_day_from }} – {{ week_day_to }})
|
||||||
|
{% endblocktrans %}
|
||||||
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if organizer_homepage_text %}
|
{% if organizer_homepage_text %}
|
||||||
<div class="blank-after">
|
<div class="blank-after">
|
||||||
@@ -18,7 +22,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h2 class="panel-title">
|
<h2 class="panel-title">
|
||||||
<strong>
|
<strong>
|
||||||
{% blocktrans trimmed with week=date|date:week_format week_day_from=date|date:short_month_day_format week_day_to=date|date:short_month_day_format %}
|
{% blocktrans trimmed with week=date|date:week_format week_day_from=date|date:short_month_day_format week_day_to=date_to|date:short_month_day_format %}
|
||||||
Events in {{ week }} ({{ week_day_from }} – {{ week_day_to }})
|
Events in {{ week }} ({{ week_day_from }} – {{ week_day_to }})
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</strong>
|
</strong>
|
||||||
|
|||||||
@@ -811,6 +811,7 @@ class WeekCalendarView(OrganizerViewMixin, EventListMixin, TemplateView):
|
|||||||
) + timedelta(days=1)
|
) + timedelta(days=1)
|
||||||
|
|
||||||
ctx['date'] = week.monday()
|
ctx['date'] = week.monday()
|
||||||
|
ctx['date_to'] = week.sunday()
|
||||||
ctx['before'] = before
|
ctx['before'] = before
|
||||||
ctx['after'] = after
|
ctx['after'] = after
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user