mirror of
https://github.com/pretix/pretix.git
synced 2026-08-24 13:02:00 +00:00
add aria-hidden if no subevents
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="calendar-container">
|
||||
{% include "pretixpresale/fragment_calendar.html" with show_avail=event.settings.event_list_availability weeks=subevent_list.weeks show_names=subevent_list.show_names %}
|
||||
{% include "pretixpresale/fragment_calendar.html" with show_avail=event.settings.event_list_availability weeks=subevent_list.weeks show_names=subevent_list.show_names any_events=subevent_list.any_events %}
|
||||
{% if subevent_list.any_events is False %}
|
||||
<div class="calendar-empty">
|
||||
<span class="fa fa-calendar-times-o fa-4x text-muted"></span>
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="calendar-container">
|
||||
{% include "pretixpresale/fragment_week_calendar.html" with show_avail=event.settings.event_list_availability days=subevent_list.days show_names=subevent_list.show_names %}
|
||||
{% include "pretixpresale/fragment_week_calendar.html" with show_avail=event.settings.event_list_availability days=subevent_list.days show_names=subevent_list.show_names any_events=subevent_list.any_events %}
|
||||
{% if subevent_list.any_events is False %}
|
||||
<div class="calendar-empty">
|
||||
<span class="fa fa-calendar-times-o fa-4x text-muted"></span>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{% load date_fast %}
|
||||
{% load calendarhead %}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-calendar" role="grid">
|
||||
<table class="table table-calendar" role="grid"{% if any_events is False %} aria-hidden="true"{% endif %}>
|
||||
<caption class="sr-only">{% trans "Calendar" %}</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% load html_time %}
|
||||
{% load i18n %}
|
||||
{% load date_fast %}
|
||||
<div class="week-calendar">
|
||||
<div class="week-calendar"{% if any_events is False %} aria-hidden="true"{% endif %}>
|
||||
{% for day in days %}
|
||||
<details class="weekday {% if day.events %}has-events{% else %}no-events{% endif %} {% if day.today %}today{% endif %}"
|
||||
data-date="{{ day.date|date_fast:"SHORT_DATE_FORMAT" }}" open>
|
||||
|
||||
Reference in New Issue
Block a user