mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
A step towards a Content-Security-Policy without inline scripts. The scripts every page or many pages share now load from static files: the error focus of base.html, the please-wait dialog, the sign-in forms' password toggle and busy button, the jobs pages' reload while a job runs, and the start of the job panel and of the VM list's state poll, whose values come as json_script data. Cancel links go back through a data-history-back attribute instead of a javascript: URL. The IE8 html5shiv/respond.js block, X-UA-Compatible and shrink-to-fit are gone: no supported browser reads them.
39 lines
1.8 KiB
HTML
39 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
<div class="row justify-content-center py-3 py-sm-4">
|
|
<div class="col-12 col-lg-10">
|
|
<section class="card shadow-sm" aria-labelledby="error-heading">
|
|
<div class="card-body p-4 p-sm-5">
|
|
<div class="mb-3">
|
|
<span class="badge d-inline-flex align-items-center gap-2 rounded-pill fs-6 px-3 py-2 {% block status_classes %}text-bg-secondary{% endblock %}">
|
|
<i class="bi {% block icon %}bi-exclamation-circle{% endblock %}" aria-hidden="true"></i>
|
|
<span class="font-monospace">
|
|
<span class="visually-hidden">{% trans "HTTP status" %} </span>
|
|
{% block code %}{% endblock %}
|
|
</span>
|
|
</span>
|
|
</div>
|
|
|
|
<h1 id="error-heading" class="h3 mb-3">{% block heading %}{% endblock %}</h1>
|
|
|
|
<div class="text-break">
|
|
{% block text %}{% endblock %}
|
|
</div>
|
|
|
|
<div class="d-grid d-sm-flex gap-2 mt-4">
|
|
<a class="btn btn-primary" href="#" data-history-back>
|
|
<i class="bi bi-arrow-left me-1" aria-hidden="true"></i>
|
|
{% trans "Back" %}
|
|
</a>
|
|
<a class="btn btn-secondary" href="{% url 'index' %}">
|
|
<i class="bi bi-house me-1" aria-hidden="true"></i>
|
|
{% trans "Home" %}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|