added landmarks to startpage

This commit is contained in:
Richard Schreiber
2021-02-10 16:36:31 +01:00
parent f0fd4272dc
commit 74461dde50
3 changed files with 13 additions and 10 deletions

View File

@@ -46,8 +46,10 @@
</head> </head>
<body class="nojs" data-locale="{{ request.LANGUAGE_CODE }}" data-now="{% now "U.u" %}" data-datetimeformat="{{ js_datetime_format }}" data-timeformat="{{ js_time_format }}" data-dateformat="{{ js_date_format }}" data-datetimelocale="{{ js_locale }}" data-currency="{{ request.event.currency }}"> <body class="nojs" data-locale="{{ request.LANGUAGE_CODE }}" data-now="{% now "U.u" %}" data-datetimeformat="{{ js_datetime_format }}" data-timeformat="{{ js_time_format }}" data-dateformat="{{ js_date_format }}" data-datetimelocale="{{ js_locale }}" data-currency="{{ request.event.currency }}">
{{ html_page_header|safe }} {{ html_page_header|safe }}
<header>
{% block above %} {% block above %}
{% endblock %} {% endblock %}
</header>
<div class="container main-box"> <div class="container main-box">
{% block page %} {% block page %}
{% endblock %} {% endblock %}

View File

@@ -34,12 +34,12 @@
{% if event.settings.locales|length > 1 %} {% if event.settings.locales|length > 1 %}
{% if event.settings.theme_color_background|upper != "#FFFFFF" or event.settings.logo_image_large %} {% if event.settings.theme_color_background|upper != "#FFFFFF" or event.settings.logo_image_large %}
<div class="pull-right header-part flip hidden-print"> <div class="pull-right header-part flip hidden-print">
<div class="locales"> <nav class="locales" aria-label="{% trans "select language" %}">
{% for l in languages %} {% for l in languages %}
<a href="{% url "presale:locale.set" %}?locale={{ l.code }}&next={{ request.path }}%3F{{ request.META.QUERY_STRING|urlencode }}" class="{% if l.code == request.LANGUAGE_CODE %}active{% endif %}" rel="nofollow"> <a href="{% url "presale:locale.set" %}?locale={{ l.code }}&next={{ request.path }}%3F{{ request.META.QUERY_STRING|urlencode }}" class="{% if l.code == request.LANGUAGE_CODE %}active{% endif %}" rel="nofollow" lang="{{ l.code }}" hreflang="{{ l.code }}">
{{ l.name_local }}</a> {{ l.name_local }}</a>
{% endfor %} {% endfor %}
</div> </nav>
</div> </div>
{% endif %} {% endif %}
{% endif %} {% endif %}

View File

@@ -24,7 +24,7 @@
{{ ev.event_microdata }} {{ ev.event_microdata }}
</script> </script>
{% endautoescape %} {% endautoescape %}
<main aria-label="{% trans General information, tickets and products %}">
{% if show_cart %} {% if show_cart %}
<details class="panel panel-primary cart" open> <details class="panel panel-primary cart" open>
<summary class="panel-heading"> <summary class="panel-heading">
@@ -286,9 +286,10 @@
</form> </form>
{% endif %} {% endif %}
{% endif %} {% endif %}
</main>
{% if show_vouchers %} {% if show_vouchers %}
<section class="front-page"> <aside class="front-page" aria-labelledby="redeem-a-voucher">
<h3>{% trans "Redeem a voucher" %}</h3> <h3 id="redeem-a-voucher">{% trans "Redeem a voucher" %}</h3>
{% if event.settings.voucher_explanation_text %} {% if event.settings.voucher_explanation_text %}
<div> <div>
{{ event.settings.voucher_explanation_text|rich_text }} {{ event.settings.voucher_explanation_text|rich_text }}
@@ -312,12 +313,12 @@
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
</form> </form>
</section> </aside>
{% endif %} {% endif %}
{% if not cart_namespace %} {% if not cart_namespace %}
{% eventsignal event "pretix.presale.signals.front_page_bottom" subevent=subevent request=request %} {% eventsignal event "pretix.presale.signals.front_page_bottom" subevent=subevent request=request %}
<section class="front-page"> <aside class="front-page" aria-labelledby="if-you-already-ordered-a-ticket">
<h3>{% trans "If you already ordered a ticket" %}</h3> <h3 id="if-you-already-ordered-a-ticket">{% trans "If you already ordered a ticket" %}</h3>
<div> <div>
<div class="col-md-8 col-xs-12"> <div class="col-md-8 col-xs-12">
<p> <p>
@@ -335,7 +336,7 @@
</div> </div>
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
</section> </aside>
{% else %} {% else %}
{% eventsignal event "pretix.presale.signals.front_page_bottom_widget" subevent=subevent request=request %} {% eventsignal event "pretix.presale.signals.front_page_bottom_widget" subevent=subevent request=request %}
{% endif %} {% endif %}