61 lines
1.1 KiB
HTML
61 lines
1.1 KiB
HTML
{% load i18n thumbnail %}<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<style>
|
|
html, body {
|
|
margin: 0; padding: 1rem;
|
|
font-family: sans-serif;
|
|
background: {{theme_color}};
|
|
}
|
|
|
|
div.info-text {
|
|
background: white;
|
|
padding: 1rem;
|
|
border-radius: 3px;
|
|
max-width: 25rem;
|
|
text-align: center;
|
|
margin: auto;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
display: block;
|
|
}
|
|
|
|
p.retry {
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
p.retry a {
|
|
border: 1px solid {{theme_color}};
|
|
text-decoration: none;
|
|
background: white;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 3px;
|
|
color: inherit;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="info-text">
|
|
{% if pwa_settings.application_icon %}
|
|
{% thumbnail pwa_settings.application_icon '512x512' crop='center' format='PNG' as im %}
|
|
<img src="{{ im.url }}" alt="">
|
|
{% endthumbnail %}
|
|
{% endif %}
|
|
|
|
{{ pwa_settings.offline_text|safe }}
|
|
|
|
{% if pwa_settings.offline_retry_button %}
|
|
<p class="retry">
|
|
<a href=".">{% trans "Retry" %}</a>
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
</body>
|
|
</html>
|