-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #608 from nationalarchives/chore/switch-to-djlint
Chore/switch to djlint
- Loading branch information
Showing
44 changed files
with
887 additions
and
677 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}Forbidden - Find Case Law{% endblock %} | ||
|
||
{% block title %} | ||
Forbidden - Find Case Law | ||
{% endblock title %} | ||
{% block content %} | ||
<header class="page-header"> | ||
<div class="page-header__breadcrumb"> | ||
<nav class="page-header__breadcrumb-container" aria-label="Breadcrumb"> | ||
<span class="page-header__breadcrumb-you-are-in">You are in: </span> | ||
<span class="page-header__breadcrumb-you-are-in">You are in:</span> | ||
<ol> | ||
<li><a href="{% url 'home' %}">Find case law</a></li> | ||
<li> | ||
<a href="{% url 'home' %}">Find case law</a> | ||
</li> | ||
<li>Forbidden</li> | ||
</ol> | ||
</nav> | ||
</div> | ||
</header> | ||
<div class="standard-text-template"> | ||
<h1>Forbidden</h1> | ||
<p>{% if exception %}{{ exception }}{% else %}Access to this page is forbidden.{% endif %}</p> | ||
<p><a href="{% url 'home' %}">Return to Find case law</a></p> | ||
<p> | ||
{% if exception %} | ||
{{ exception }} | ||
{% else %} | ||
Access to this page is forbidden. | ||
{% endif %} | ||
</p> | ||
<p> | ||
<a href="{% url 'home' %}">Return to Find case law</a> | ||
</p> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %} | ||
Page not found - Find case law | ||
{% endblock %} | ||
|
||
{% endblock title %} | ||
{% block content %} | ||
<header class="page-header"> | ||
<div class="page-header__breadcrumb"> | ||
<nav class="page-header__breadcrumb-container" aria-label="Breadcrumb"> | ||
<span class="page-header__breadcrumb-you-are-in">You are in: </span> | ||
<span class="page-header__breadcrumb-you-are-in">You are in:</span> | ||
<ol> | ||
<li><a href="{% url 'home' %}">Find case law</a></li> | ||
<li> | ||
<a href="{% url 'home' %}">Find case law</a> | ||
</li> | ||
<li>Page not found</li> | ||
</ol> | ||
</nav> | ||
</div> | ||
</header> | ||
|
||
<div class="standard-text-template"> | ||
<h1>Page not found</h1> | ||
|
||
<p>If you typed the web address, check it is correct.</p> | ||
<p>If you pasted the web address, check you copied the entire address.</p> | ||
<p><a href="{% url 'home' %}">Return to Find case law</a></p> | ||
<p> | ||
<a href="{% url 'home' %}">Return to Find case law</a> | ||
</p> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,43 @@ | ||
{% load static i18n %}<!DOCTYPE html> | ||
{% load static i18n %} | ||
<!DOCTYPE html> | ||
{% get_current_language as LANGUAGE_CODE %} | ||
|
||
<html lang="{{ LANGUAGE_CODE }}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
|
||
<meta charset="utf-8" /> | ||
{% block robots %} | ||
<meta name="robots" content="noindex,nofollow"> | ||
<meta name="robots" content="noindex,nofollow" /> | ||
{% endblock robots %} | ||
|
||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<title>{% block title %}{% endblock %}</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<link rel="icon" href="{% static 'images/favicons/favicon.png' %}"> | ||
|
||
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | ||
<title> | ||
{% block title %} | ||
{% endblock title %} | ||
</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="icon" href="{% static 'images/favicons/favicon.png' %}" /> | ||
{% block css %} | ||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Roboto:wght@400;600;700&display=swap" rel="stylesheet"> | ||
<link href="{% static 'css/main.css' %}" rel="stylesheet"> | ||
{% endblock %} | ||
|
||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Roboto:wght@400;600;700&display=swap" | ||
rel="stylesheet"/> | ||
<link href="{% static 'css/main.css' %}" rel="stylesheet" /> | ||
{% endblock css %} | ||
{% block javascript %} | ||
<script defer src="{% static 'js/dist/app.js' %}"></script> | ||
<script defer src="{% static 'js/dist/cookie_consent.js' %}"></script> | ||
{% endblock javascript %} | ||
|
||
{% include 'includes/gtm/gtm_head.html' %} | ||
{% include "includes/gtm/gtm_head.html" %} | ||
</head> | ||
|
||
<body> | ||
<script> | ||
document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled'); | ||
</script> | ||
{% include 'includes/cookie_consent/cookie_banner.html' %} | ||
{% include "includes/cookie_consent/cookie_banner.html" %} | ||
<a id="skip-to-main-content" href="#main-content">{% translate "skiplink" %}</a> | ||
{% include 'includes/gtm/gtm_body.html' %} | ||
{% include 'includes/phase_banner.html' %} | ||
{% include "includes/gtm/gtm_body.html" %} | ||
{% include "includes/phase_banner.html" %} | ||
<main id="main-content"> | ||
{% block content %} | ||
{% endblock content %} | ||
</main> | ||
{% include 'includes/how_can_this_service_be_improved.html' %} | ||
{% include 'includes/footer.html' %} | ||
{% include "includes/how_can_this_service_be_improved.html" %} | ||
{% include "includes/footer.html" %} | ||
</body> | ||
</html> |
4 changes: 3 additions & 1 deletion
4
ds_judgements_public_ui/templates/includes/announcement_banner.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<div class="announcement-banner"> | ||
<div class="announcement-banner__container"> | ||
<div class="announcement-banner__notice"> | ||
<p class="announcement-banner__message">Her Majesty Queen Elizabeth II <span class="announcement-banner__sub-message">21 April 1926 to 8 September 2022</span></p> | ||
<p class="announcement-banner__message"> | ||
Her Majesty Queen Elizabeth II <span class="announcement-banner__sub-message">21 April 1926 to 8 September 2022</span> | ||
</p> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 4 additions & 8 deletions
12
ds_judgements_public_ui/templates/includes/breadcrumbs.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
{% load i18n %} | ||
<div class="page-header__breadcrumb"> | ||
<nav class="page-header__breadcrumb-container" aria-label="Breadcrumb"> | ||
<span class="page-header__breadcrumb-you-are-in">You are in: </span> | ||
<span class="page-header__breadcrumb-you-are-in">You are in:</span> | ||
<ol> | ||
<li> | ||
{% if current == "home" %} | ||
{% if current == "home" %} | ||
{% translate "common.findcaselaw" %} | ||
{% else %} | ||
<a href="{% url 'home' %}"> | ||
{% translate "common.findcaselaw" %} | ||
</a> | ||
<a href="{% url 'home' %}">{% translate "common.findcaselaw" %}</a> | ||
{% endif %} | ||
</li> | ||
{% if title and link %} | ||
<li>{{ title }}</li> | ||
{% endif %} | ||
{% if title and link %}<li>{{ title }}</li>{% endif %} | ||
</ol> | ||
</nav> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 16 additions & 5 deletions
21
ds_judgements_public_ui/templates/includes/cookie_consent/cookie_banner.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
ds_judgements_public_ui/templates/includes/courts_options.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{% for court in context.courts %} | ||
<div class="structured-search__court-option"> | ||
<label for="court_{{court.canonical_param}}"> | ||
<input type="checkbox" name="court" | ||
value="{{court.canonical_param}}" | ||
id="court_{{court.canonical_param}}" | ||
{% for alias in context.court %}{% if alias in court.param_aliases %}checked="checked"{% endif %}{% endfor %}> | ||
<span class="structured-search__court-option-label">{{court.name}}</span> | ||
<label for="court_{{ court.canonical_param }}"> | ||
<input type="checkbox" | ||
name="court" | ||
value="{{ court.canonical_param }}" | ||
id="court_{{ court.canonical_param }}" | ||
{% for alias in context.court %}{% if alias in court.param_aliases %}checked="checked"{% endif %} | ||
{% endfor %}/> | ||
<span class="structured-search__court-option-label">{{ court.name }}</span> | ||
</label> | ||
</div> | ||
{% endfor %} |
Oops, something went wrong.