mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Add IE11 banner to frontend (#4207)
This commit is contained in:
@@ -327,8 +327,7 @@
|
|||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
Internet Explorer is an old browser that does not support lots of recent web-based
|
Internet Explorer is an old browser that does not support lots of recent web-based
|
||||||
technologies. While some features might already not work properly, we plan on no longer
|
technologies and is no longer supported by this website.
|
||||||
supporting Internet Explorer in our administrative backend in the next months.
|
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
We kindly ask you to move to one of our supported browsers, such as Microsoft Edge,
|
We kindly ask you to move to one of our supported browsers, such as Microsoft Edge,
|
||||||
|
|||||||
@@ -182,4 +182,6 @@ def _default_context(request):
|
|||||||
ctx['settings'] = pretix_settings
|
ctx['settings'] = pretix_settings
|
||||||
ctx['django_settings'] = settings
|
ctx['django_settings'] = settings
|
||||||
|
|
||||||
|
ctx['ie_deprecation_warning'] = 'MSIE' in request.headers.get('User-Agent', '') or 'Trident/' in request.headers.get('User-Agent', '')
|
||||||
|
|
||||||
return ctx
|
return ctx
|
||||||
|
|||||||
@@ -46,6 +46,22 @@
|
|||||||
<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>
|
<header>
|
||||||
|
{% if ie_deprecation_warning %}
|
||||||
|
<div class="old-browser-warning">
|
||||||
|
<span class="fa fa-internet-explorer"></span>
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
We've detected that you are using <strong>Microsoft Internet Explorer</strong>.
|
||||||
|
{% endblocktrans %}
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
Internet Explorer is an old browser that does not support lots of recent web-based
|
||||||
|
technologies and is no longer supported by this website.
|
||||||
|
{% endblocktrans %}
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
We kindly ask you to move to one of our supported browsers, such as Microsoft Edge,
|
||||||
|
Mozilla Firefox, Google Chrome, or Safari.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% block above %}
|
{% block above %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -519,6 +519,13 @@ h2 .label {
|
|||||||
.progress-bar-#{$i} { width: 1% * $i; }
|
.progress-bar-#{$i} { width: 1% * $i; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.old-browser-warning {
|
||||||
|
background-color: #ffe761;
|
||||||
|
padding: 32px; /* 30px + 2px optical compensation */
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
@import "_iframe.scss";
|
@import "_iframe.scss";
|
||||||
@import "_a11y.scss";
|
@import "_a11y.scss";
|
||||||
@import "_print.scss";
|
@import "_print.scss";
|
||||||
|
|||||||
Reference in New Issue
Block a user