Skip to content
Snippets Groups Projects
Verified Commit 1ec1a200 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Reformat templates

parent 2aa53e94
No related branches found
No related tags found
No related merge requests found
Pipeline #1914 failed
......@@ -3,26 +3,27 @@
{% block content %}
<div class="container">
<div class="card red">
<div class="card white-text">
<i class="material-icons small">error_outline</i>
<span class="card-title">{% blocktrans %}Error (403): You are not allowed to access the requested page or object.{% endblocktrans %}</span>
<p>
{% blocktrans %}
If you think this is an error in AlekSIS, please contact your site
administrators:
{% endblocktrans %}
</p>
<ul>
{% for admin in ADMINS %}
<li>
{{ admin.0 }}
&lt;<a class="blue-text text-lighten-2" href="mailto:{{ admin.1 }}">{{ admin.1 }}</a>&gt;
</li>
{% endfor %}
</ul>
</div>
<div class="container">
<div class="card red">
<div class="card white-text">
<i class="material-icons small">error_outline</i>
<span class="card-title">{% blocktrans %}Error (403): You are not allowed to access the requested page or
object.{% endblocktrans %}</span>
<p>
{% blocktrans %}
If you think this is an error in AlekSIS, please contact your site
administrators:
{% endblocktrans %}
</p>
<ul>
{% for admin in ADMINS %}
<li>
{{ admin.0 }}
&lt;<a class="blue-text text-lighten-2" href="mailto:{{ admin.1 }}">{{ admin.1 }}</a>&gt;
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
{% endblock %}
......@@ -3,30 +3,31 @@
{% block content %}
<div class="container">
<div class="card red">
<div class="card-content white-text">
<i class="material-icons small left">error_outline</i>
<span class="card-title">{% blocktrans %}Error (404): The requested page or object was not found.{% endblocktrans %}</span>
<p>
{% blocktrans %}
If you were redirected by a link on an external page,
it is possible that that link was outdated.
{% endblocktrans %}
{% blocktrans %}
If you think this is an error in AlekSIS, please contact your site
administrators:
{% endblocktrans %}
</p>
<ul>
{% for admin in ADMINS %}
<li>
{{ admin.0 }}
&lt;<a class="blue-text text-lighten-2" href="mailto:{{ admin.1 }}">{{ admin.1 }}</a>&gt;
</li>
{% endfor %}
</ul>
</div>
<div class="container">
<div class="card red">
<div class="card-content white-text">
<i class="material-icons small left">error_outline</i>
<span class="card-title">{% blocktrans %}Error (404): The requested page or object was not
found.{% endblocktrans %}</span>
<p>
{% blocktrans %}
If you were redirected by a link on an external page,
it is possible that that link was outdated.
{% endblocktrans %}
{% blocktrans %}
If you think this is an error in AlekSIS, please contact your site
administrators:
{% endblocktrans %}
</p>
<ul>
{% for admin in ADMINS %}
<li>
{{ admin.0 }}
&lt;<a class="blue-text text-lighten-2" href="mailto:{{ admin.1 }}">{{ admin.1 }}</a>&gt;
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
{% endblock %}
......@@ -3,18 +3,19 @@
{% block content %}
<div class="container">
<div class="card red">
<div class="card-content white-text">
<div class="material-icons small">error_outline</div>
<span class="card-title">{% blocktrans %}Error (500): An unexpected error has occured..{% endblocktrans %}</span>
<p>
{% blocktrans %}
Your site administrators will automatically be notified about this
error.
{% endblocktrans %}
</p>
</div>
<div class="container">
<div class="card red">
<div class="card-content white-text">
<div class="material-icons small">error_outline</div>
<span class="card-title">{% blocktrans %}Error (500): An unexpected error has
occured..{% endblocktrans %}</span>
<p>
{% blocktrans %}
Your site administrators will automatically be notified about this
error.
{% endblocktrans %}
</p>
</div>
</div>
</div>
</div>
{% endblock %}
......@@ -3,25 +3,26 @@
{% block content %}
<div class="container">
<div class="card red">
<div class="card-content white-text">
<div class="material-icons small">error_outline</div>
<span class="card-title">{% blocktrans %}The maintenance mode is currently enabled. Please try again later.{% endblocktrans %}</span>
<p>
{% blocktrans %}
This page is currently unavailable. If this error stays, contact your site administrators:
{% endblocktrans %}
</p>
<ul>
{% for admin in ADMINS %}
<li>
{{ admin.0 }}
&lt;<a class="blue-text text-lighten-2" href="mailto:{{ admin.1 }}">{{ admin.1 }}</a>&gt;
</li>
{% endfor %}
</ul>
</div>
<div class="container">
<div class="card red">
<div class="card-content white-text">
<div class="material-icons small">error_outline</div>
<span class="card-title">{% blocktrans %}The maintenance mode is currently enabled. Please try again
later.{% endblocktrans %}</span>
<p>
{% blocktrans %}
This page is currently unavailable. If this error stays, contact your site administrators:
{% endblocktrans %}
</p>
<ul>
{% for admin in ADMINS %}
<li>
{{ admin.0 }}
&lt;<a class="blue-text text-lighten-2" href="mailto:{{ admin.1 }}">{{ admin.1 }}</a>&gt;
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
{% endblock %}
{% if msg %}
<div class="alert {{ status }}">
<div>
{% if icon != "" %}
<i class="material-icons left">{{ icon }}</i>
{% endif %}
{{ msg }}
</div>
<div class="alert {{ status }}">
<div>
{% if icon != "" %}
<i class="material-icons left">{{ icon }}</i>
{% endif %}
{{ msg }}
</div>
</div>
{% endif %}
......@@ -27,7 +27,8 @@
{# Passing the locale is not necessary for the scripts to work, but prevents caching issues #}
{% get_current_language as LANGUAGE_CODE %}
<script src="{% url "javascript-catalog" %}?locale={{ LANGUAGE_CODE }}" type="text/javascript"></script>
<script src="{% url "calendarweek_i18n_js" %}?first_day=6&amp;locale={{ LANGUAGE_CODE }}" type="text/javascript"></script>
<script src="{% url "calendarweek_i18n_js" %}?first_day=6&amp;locale={{ LANGUAGE_CODE }}"
type="text/javascript"></script>
{# Include jQuery to provide $(document).ready #}
{% include_js "jQuery" %}
......@@ -66,7 +67,8 @@
<ul id="slide-out" class="sidenav sidenav-fixed">
<li class="logo">
<a id="logo-container" href="/" class="brand-logo">
<img src="{{ request.site.preferences.theme__logo.url }}" alt="{{ request.site.preferences.general__title }} – Logo">
<img src="{{ request.site.preferences.theme__logo.url }}"
alt="{{ request.site.preferences.general__title }} – Logo">
</a>
</li>
{% has_perm 'core.search' user as search %}
......
......@@ -3,7 +3,7 @@
{% load i18n menu_generator %}
{% block browser_title %}{% blocktrans %}Data management{% endblocktrans%}{% endblock %}
{% block browser_title %}{% blocktrans %}Data management{% endblocktrans %}{% endblock %}
{% block page_title %}{% blocktrans %}Data management{% endblocktrans %}{% endblock %}
{% block content %}
......
......@@ -31,11 +31,11 @@
{% include "core/announcements.html" with announcements=announcements %}
<div class="row" id="live_load">
{% for widget in widgets %}
<div class="col s12 m12 l6 xl4">
{% include_widget widget %}
</div>
{% endfor %}
{% for widget in widgets %}
<div class="col s12 m12 l6 xl4">
{% include_widget widget %}
</div>
{% endfor %}
</div>
<div class="row">
......
......@@ -11,7 +11,8 @@
{% get_available_languages as LANGUAGES %}
{% get_language_info_list for LANGUAGES as languages %}
{% for language in languages %}
<button type="submit" value="{{ language.code }}" name="language" class="blue-text text-lighten-4 btn-flat {% if language == LANGUAGE_CODE %} disabled {% endif %}">
<button type="submit" value="{{ language.code }}" name="language"
class="blue-text text-lighten-4 btn-flat {% if language == LANGUAGE_CODE %} disabled {% endif %}">
{{ language.code }}
</button>
{% endfor %}
......
......@@ -3,23 +3,22 @@
{% load i18n %}
{% block content %}
<h3><i class="material-icons left medium" style="font-size: 2.92rem;">signal_wifi_off</i>{% blocktrans %}No internet connection.{% endblocktrans %}</h3>
<h3><i class="material-icons left medium" style="font-size: 2.92rem;">signal_wifi_off</i>{% blocktrans %}No internet
connection.{% endblocktrans %}</h3>
<p class="flow-text">
{% blocktrans %}
There was an error accessing this page. You probably don't have an internet connection. Check to see if your WiFi or mobile data is turned on and try again. If you think you are connected, please contact the system administrators:
{% endblocktrans %}
<ul>
{% for admin in ADMINS %}
<li>
{{ admin.0 }}
&lt;
<a href="mailto:{{ admin.1 }}">
{{ admin.1 }}
</a>
&gt;
</li>
{% endfor %}
</ul>
</p>
<p class="flow-text">
{% blocktrans %}
There was an error accessing this page. You probably don't have an internet connection. Check to see if your WiFi
or mobile data is turned on and try again. If you think you are connected, please contact the system
administrators:
{% endblocktrans %}
<ul>
{% for admin in ADMINS %}
<li>
{{ admin.0 }}
&lt;<a href="mailto:{{ admin.1 }}">{{ admin.1 }}</a>&gt;
</li>
{% endfor %}
</ul>
</p>
{% endblock %}
{% include 'partials/header.html' %}
<main>
<p class="flow-text">Du bist nun abgemeldet.</p>
<a href="{% url 'login' %}">Wieder anmelden?</a>
<p class="flow-text">Du bist nun abgemeldet.</p>
<a href="{% url 'login' %}">Wieder anmelden?</a>
</main>
{% include 'partials/footer.html' %}
......@@ -84,7 +84,9 @@
{% include "two_factor/_wizard_forms.html" %}
{# hidden submit button to enable [enter] key #}
<div style="margin-left: -9999px"><input type="submit" value=""/></div>
<div style="margin-left: -9999px">
<input type="submit" value=""/>
</div>
{% include "two_factor/_wizard_actions.html" %}
</form>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment