chore: reformat templates with djlint

This commit is contained in:
David Larlet 2024-07-29 10:53:34 -04:00
parent 8fc061429a
commit 5ba1c28408
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD
29 changed files with 225 additions and 69 deletions

View file

@ -98,3 +98,6 @@ max-line-length = 88
profile="django"
indent=2
format_css=true
blank_line_after_tag="load,extends"
line_break_after_multiline_tag=true

View file

@ -1,5 +1,7 @@
{% extends "base.html" %}
{% load i18n static %}
{% block content %}
<div class="content404">
<a href="{% url "home" %}"
@ -9,7 +11,9 @@
<img alt="0" width="128px" height="128px" src="{% static "umap/img/logo.svg" %}">
4
</h1>
<h2>Not Found</h2>
<h2>
Not Found
</h2>
</a>
</div>
{% endblock content %}

View file

@ -22,7 +22,9 @@
width="128px"
height="128px"
src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy9uYW1lc3BhY2VzL2lua3Nj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zZTU2O2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgaWQ9InBhdGg1MjYzIgogICAgICAgc29kaXBvZGk6Y3g9IjcwIgogICAgICAgc29kaXBvZGk6Y3k9IjE4IgogICAgICAgc29kaXBvZGk6cng9IjE4IgogICAgICAgc29kaXBvZGk6cnk9IjE4IgogICAgICAgZD0iTSA4OCwxOCBDIDg4LDI3Ljk0MTEyNSA3OS45NDExMjUsMzYgNzAsMzYgNjAuMDU4ODc1LDM2IDUyLDI3Ljk0MTEyNSA1MiwxOCA1Miw4LjA1ODg3NDUgNjAuMDU4ODc1LDAgNzAsMCA3OS45NDExMjUsMCA4OCw4LjA1ODg3NDUgODgsMTggeiIKICAgICAgIHRyYW5zZm9ybT0ibWF0cml4KDEuMzE0MjY5NywwLDAsMS4zMTQyNjk3LC0yNy45OTg4NzgsOTM0LjUyODU1KSIgLz4KICA8L2c+Cjwvc3ZnPgo=" />
<h1>Oops, Server error…</h1>
<h1>
Oops, Server error…
</h1>
</div>
</body>
</html>

View file

@ -1,15 +1,21 @@
{% extends "umap/content.html" %}
{% load i18n %}
{% block maincontent %}
<div class="col wide">
<h2 class="section">{% blocktrans %}Browse {{ current_user }}'s maps{% endblocktrans %}</h2>
<h2 class="section">
{% blocktrans %}Browse {{ current_user }}'s maps{% endblocktrans %}
</h2>
</div>
<div class="wrapper">
<div class="map_list row">
{% if maps %}
{% include "umap/map_list.html" %}
{% else %}
<div>{% blocktrans %}{{ current_user }} has no maps.{% endblocktrans %}</div>
<div>
{% blocktrans %}{{ current_user }} has no maps.{% endblocktrans %}
</div>
{% endif %}
</div>
</div>

View file

@ -1,5 +1,7 @@
{% extends "umap/content.html" %}
{% load i18n %}
{% block maincontent %}
<div class="row">
<h2 class="section tabs">
@ -11,7 +13,11 @@
<div class="row">
{% if form.non_field_errors %}
<ul class="form-errors">
{% for error in form.non_field_errors %}<li>{{ error }}</li>{% endfor %}
{% for error in form.non_field_errors %}
<li>
{{ error }}
</li>
{% endfor %}
</ul>
{% endif %}
<form id="user_form" method="post">
@ -22,13 +28,21 @@
</div>
{% if backends.backends|length %}
<div class="row">
<h3>{% trans "Your current providers" %}</h3>
<h3>
{% trans "Your current providers" %}
</h3>
<ul>
{% for name in providers %}<li>{{ name|title }}</li>{% endfor %}
{% for name in providers %}
<li>
{{ name|title }}
</li>
{% endfor %}
</ul>
</div>
<div class="row">
<h3>{% trans "Connect to another provider" %}</h3>
<h3>
{% trans "Connect to another provider" %}
</h3>
<p>
{% blocktrans %}It's a good habit to connect your account to more than one provider, in case one provider becomes unavailable, temporarily or even permanently.{% endblocktrans %}
</p>

View file

@ -1,15 +1,21 @@
{% extends "umap/content.html" %}
{% load i18n %}
{% block maincontent %}
<div class="col wide">
<h2 class="section">{% blocktrans %}Browse {{ current_user }}'s starred maps{% endblocktrans %}</h2>
<h2 class="section">
{% blocktrans %}Browse {{ current_user }}'s starred maps{% endblocktrans %}
</h2>
</div>
<div class="wrapper">
<div class="map_list row">
{% if maps %}
{% include "umap/map_list.html" %}
{% else %}
<div>{% blocktrans %}{{ current_user }} has no starred maps yet.{% endblocktrans %}</div>
<div>
{% blocktrans %}{{ current_user }} has no starred maps yet.{% endblocktrans %}
</div>
{% endif %}
</div>
</div>

View file

@ -1,4 +1,5 @@
{% load umap_tags i18n static %}
<!DOCTYPE html>
<html {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>

View file

@ -1,5 +1,7 @@
{% extends "base.html" %}
{% load umap_tags i18n %}
{% block extra_head %}
{% umap_css %}
{{ block.super }}
@ -13,11 +15,17 @@
{% include "umap/branding.html" %}
</header>
{% if ENABLE_ACCOUNT_LOGIN %}
<h2>{% trans "Please log in with your account" %}</h2>
<h2>
{% trans "Please log in with your account" %}
</h2>
<div>
{% if form.non_field_errors %}
<ul class="form-errors">
{% for error in form.non_field_errors %}<li>{{ error }}</li>{% endfor %}
{% for error in form.non_field_errors %}
<li>
{{ error }}
</li>
{% endfor %}
</ul>
{% endif %}
<form id="login_form" action="{% url "login" %}" method="post">
@ -34,7 +42,9 @@
</div>
{% endif %}
{% if backends.backends|length %}
<h2>{% trans "Please choose a provider" %}</h2>
<h2>
{% trans "Please choose a provider" %}
</h2>
<div>
<ul class="login-grid block-grid">
{% for name in backends.backends %}

View file

@ -1,4 +1,5 @@
{% extends "umap/content.html" %}
{% block maincontent %}
{% include "umap/about_summary.html" %}
{% endblock maincontent %}

View file

@ -1,4 +1,5 @@
{% load i18n static %}
<div class="wrapper about_summary highlights">
<div class="row">
<div class="col quarter mwide">
@ -18,13 +19,27 @@
width="128px"
height="128px" />
<ul>
<li>{% trans "Choose the layers of your map" %}</li>
<li>{% trans "Add POIs: markers, lines, polygons..." %}</li>
<li>{% trans "Manage POIs colours and icons" %}</li>
<li>{% trans "Manage map options: display a minimap, locate user on load…" %}</li>
<li>{% trans "Batch import geostructured data (geojson, gpx, kml, osm...)" %}</li>
<li>{% trans "Choose the license for your data" %}</li>
<li>{% trans "Embed and share your map" %}</li>
<li>
{% trans "Choose the layers of your map" %}
</li>
<li>
{% trans "Add POIs: markers, lines, polygons..." %}
</li>
<li>
{% trans "Manage POIs colours and icons" %}
</li>
<li>
{% trans "Manage map options: display a minimap, locate user on load…" %}
</li>
<li>
{% trans "Batch import geostructured data (geojson, gpx, kml, osm...)" %}
</li>
<li>
{% trans "Choose the license for your data" %}
</li>
<li>
{% trans "Embed and share your map" %}
</li>
</ul>
</div>
<div class="col quarter mwide">

View file

@ -1,33 +1,39 @@
{% load i18n static %}
<style type="text/css">
@import "{% static 'umap/js/components/alerts/alert.css' %}";
@import "{% static 'umap/js/components/alerts/alert.css' %}";
</style>
<template id="umap-alert-template">
<div role="dialog" class="dark window umap-alert">
<div>
<p role="alert"></p>
<p role="alert">
</p>
</div>
<ul class="buttons">
<li>
<button class="icon icon-16 icon-close" aria-label="{% translate "Close" %}" data-close></button>
<button class="icon icon-16 icon-close"
aria-label="{% translate "Close" %}"
data-close>
</button>
</li>
</ul>
</div>
</template>
<umap-alert></umap-alert>
<template id="umap-alert-creation-template">
<div role="dialog" class="dark window umap-alert">
<div>
<h3 role="alert"></h3>
<h3 role="alert">
</h3>
{% url "login" as login_url %}
<p><em>{% blocktranslate %}Pro-tip: to easily find back your maps, <a href="{{ login_url }}" target="_blank">create an account</a> or <a href="{{ login_url }}" target="_blank">log in</a>.{% endblocktranslate %}</em></p>
<p>
<em>{% blocktranslate %}Pro-tip: to easily find back your maps, <a href="{{ login_url }}" target="_blank">create an account</a> or <a href="{{ login_url }}" target="_blank">log in</a>.{% endblocktranslate %}</em>
</p>
<div id="link-wrapper">
<form>
<label for="url">{% translate "Here is your secret link to edit the map, please keep it safe:" %}</label>
<label for="url">
{% translate "Here is your secret link to edit the map, please keep it safe:" %}
</label>
<fieldset role="group">
<input type="url" name="url" id="url">
<input type="button" value="{% translate "Copy link" %}">
@ -36,46 +42,61 @@
</div>
<div id="form-wrapper" hidden>
<form>
<label for="email">{% translate "Enter your email address to receive the secret link:" %}</label>
<label for="email">
{% translate "Enter your email address to receive the secret link:" %}
</label>
<fieldset role="group">
<input type="email" name="email" id="email" placeholder="{% translate "Email" %}" required>
<input type="submit" value="{% translate "Send me the link" %}" class="umap-action">
<input type="email"
name="email"
id="email"
placeholder="{% translate "Email" %}"
required>
<input type="submit"
value="{% translate "Send me the link" %}"
class="umap-action">
</fieldset>
</form>
</div>
</div>
<ul class="buttons">
<li>
<button class="icon icon-16 icon-close" aria-label="{% translate "Close" %}" data-close></button>
<button class="icon icon-16 icon-close"
aria-label="{% translate "Close" %}"
data-close>
</button>
</li>
</ul>
</div>
</template>
<umap-alert-creation></umap-alert-creation>
<template id="umap-alert-conflict-template">
<div role="dialog" class="dark window umap-alert">
<div>
<p role="alert"></p>
<p role="alert">
</p>
<div id="conflict-wrapper">
<form>
<a href="#" onclick="document.url" target="_blank">{% translate "See their edits in another tab" %}</a>
<input id="your-changes" type="submit" value="{% translate "Keep your changes and loose theirs" %}">
<input id="their-changes" type="submit" value="{% translate "Keep their changes and loose yours" %}">
<input id="your-changes"
type="submit"
value="{% translate "Keep your changes and loose theirs" %}">
<input id="their-changes"
type="submit"
value="{% translate "Keep their changes and loose yours" %}">
</form>
</div>
</div>
<ul class="buttons">
<li>
<button class="icon icon-16 icon-close" aria-label="{% translate "Close" %}" data-close></button>
<button class="icon icon-16 icon-close"
aria-label="{% translate "Close" %}"
data-close>
</button>
</li>
</ul>
</div>
</template>
<umap-alert-conflict></umap-alert-conflict>
<script type="module">
import { register } from '{% static 'umap/js/components/base.js' %}'
import {

View file

@ -1,5 +1,7 @@
{% extends "base.html" %}
{% load umap_tags i18n %}
{% block body_class %}
content
{% endblock body_class %}

View file

@ -1,4 +1,5 @@
{% load i18n %}
<footer>
<a href="https://wiki.openstreetmap.org/wiki/UMap" class="branding">uMap</a>
an OpenStreetMap project

View file

@ -1,4 +1,5 @@
{% load static %}
<link rel="stylesheet"
href="{% static 'umap/vendors/leaflet/leaflet.css' %}" />
<link rel="stylesheet"

View file

@ -1,5 +1,7 @@
{% extends "umap/content.html" %}
{% load umap_tags i18n %}
{% block messages %}
{# We don't want maps in the list to display errors. #}
{% endblock messages %}
@ -8,14 +10,22 @@
{% include "umap/about_summary.html" %}
{% if showcase_map %}
<div class="wrapper showcase-map">
<h2 class="section">{% blocktrans %}Map of the uMaps{% endblocktrans %}</h2>
<div class="row">{% map_fragment showcase_map zoomControl=1 %}</div>
<h2 class="section">
{% blocktrans %}Map of the uMaps{% endblocktrans %}
</h2>
<div class="row">
{% map_fragment showcase_map zoomControl=1 %}
</div>
</div>
{% endif %}
<div class="wrapper">
{% if maps %}
<h2 class="section">{% blocktrans %}Get inspired, browse maps{% endblocktrans %}</h2>
<div class="map_list row">{% include "umap/map_list.html" %}</div>
<h2 class="section">
{% blocktrans %}Get inspired, browse maps{% endblocktrans %}
</h2>
<div class="map_list row">
{% include "umap/map_list.html" %}
</div>
{% endif %}
</div>
{% endblock maincontent %}

View file

@ -1,4 +1,5 @@
{% load static %}
<script type="module"
src="{% static 'umap/vendors/leaflet/leaflet-src.esm.js' %}"
defer></script>

View file

@ -1,5 +1,8 @@
{% load i18n %}
<h3>{% trans "You are logged in. Continuing..." %}</h3>
<h3>
{% trans "You are logged in. Continuing..." %}
</h3>
<script type="text/javascript">
function proceed() {
if (window.opener && window.opener.umap_proceed) {

View file

@ -1,5 +1,7 @@
{% extends "base.html" %}
{% load umap_tags i18n %}
{% block head_title %}
{{ map.name }} - {{ SITE_NAME }}
{% endblock head_title %}
@ -8,12 +10,16 @@
{% endblock body_class %}
{% block extra_head %}
{% if preconnect_domains %}
{% for domain in preconnect_domains %}<link rel="preconnect" href="{{ domain }}" />{% endfor %}
{% for domain in preconnect_domains %}
<link rel="preconnect" href="{{ domain }}" />
{% endfor %}
{% endif %}
{% umap_css %}
{{ block.super }}
{% umap_js locale=locale %}
{% if object.share_status != object.PUBLIC %}<meta name="robots" content="noindex">{% endif %}
{% if object.share_status != object.PUBLIC %}
<meta name="robots" content="noindex">
{% endif %}
<link rel="alternate"
type="application/json+oembed"
href="{{ oembed_absolute_uri }}?url={{ quoted_absolute_uri }}&format=json"

View file

@ -1,4 +1,6 @@
{% load umap_tags %}
<umap-fragment data-settings='{{ map_settings|escape }}'>
<div id="{{ unique_id }}" class="map_fragment"></div>
<div id="{{ unique_id }}" class="map_fragment">
</div>
</umap-fragment>

View file

@ -1,7 +1,8 @@
{% load umap_tags %}
{% include "umap/messages.html" %}
<div id="map"></div>
<div id="map">
</div>
<!-- djlint:off -->
<script defer type="text/javascript">
window.addEventListener('DOMContentLoaded', (event) => {

View file

@ -1,4 +1,5 @@
{% load umap_tags i18n %}
{% for map_inst in maps %}
<hr />
<div class="col wide">

View file

@ -1,15 +1,30 @@
{% load umap_tags i18n %}
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>{% blocktrans %}Name{% endblocktrans %}</th>
<th>{% blocktrans %}Preview{% endblocktrans %}</th>
<th>{% blocktrans %}Who can see{% endblocktrans %}</th>
<th>{% blocktrans %}Who can edit{% endblocktrans %}</th>
<th>{% blocktrans %}Last save{% endblocktrans %}</th>
<th>{% blocktrans %}Owner{% endblocktrans %}</th>
<th>{% blocktrans %}Actions{% endblocktrans %}</th>
<th>
{% blocktrans %}Name{% endblocktrans %}
</th>
<th>
{% blocktrans %}Preview{% endblocktrans %}
</th>
<th>
{% blocktrans %}Who can see{% endblocktrans %}
</th>
<th>
{% blocktrans %}Who can edit{% endblocktrans %}
</th>
<th>
{% blocktrans %}Last save{% endblocktrans %}
</th>
<th>
{% blocktrans %}Owner{% endblocktrans %}
</th>
<th>
{% blocktrans %}Actions{% endblocktrans %}
</th>
</tr>
</thead>
<tbody>
@ -29,16 +44,25 @@
</button>
<dialog>
<form method="dialog">
<div id="{{ unique_id }}_target" class="map_fragment"></div>
<div id="{{ unique_id }}_target" class="map_fragment">
</div>
<p class="close-dialog">
<button class="button" type="submit">Close</button>
<button class="button" type="submit">
Close
</button>
</p>
</form>
</dialog>
</td>
<td>{{ map_inst.get_share_status_display }}</td>
<td>{{ map_inst.get_edit_status_display }}</td>
<td>{{ map_inst.modified_at }}</td>
<td>
{{ map_inst.get_share_status_display }}
</td>
<td>
{{ map_inst.get_edit_status_display }}
</td>
<td>
{{ map_inst.modified_at }}
</td>
<td>
<a href="{{ map_inst.owner.get_url }}">{{ map_inst.owner }}</a>
</td>

View file

@ -1,7 +1,6 @@
{% load i18n %}
{% include "umap/components/alerts/alert.html" %}
{% for message in messages %}
<script type="module" defer>
U.Alert.success("{{ message }}")

View file

@ -1,4 +1,5 @@
{% load i18n %}
<nav class="umap-nav">
<section>
{% include "umap/branding.html" %}

View file

@ -1,7 +1,11 @@
{% extends "umap/content.html" %}
{% load i18n %}
{% block content %}
<h2 class="section">{% trans "Password change" %}</h2>
<h2 class="section">
{% trans "Password change" %}
</h2>
<p>
{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}
</p>

View file

@ -1,8 +1,14 @@
{% extends "umap/content.html" %}
{% load i18n %}
{% block content %}
<h2 class="section">{% trans "Password change successful" %}</h2>
<p>{% trans "Your password was changed." %}</p>
<h2 class="section">
{% trans "Password change successful" %}
</h2>
<p>
{% trans "Your password was changed." %}
</p>
<p>
<a href="{% url 'home' %}">Home</a>
</p>

View file

@ -1,5 +1,7 @@
{% extends "umap/content.html" %}
{% load i18n %}
{% block messages %}
{# We don't want maps from the results list to display errors in the main page. #}
{% endblock messages %}
@ -18,10 +20,14 @@
</h2>
{% include "umap/map_list.html" with prefix="search_map" %}
{% else %}
<h2>{% trans "No map found." %}</h2>
<h2>
{% trans "No map found." %}
</h2>
{% endif %}
{% else %}
<h2>{% trans "Latest created maps" %}</h2>
<h2>
{% trans "Latest created maps" %}
</h2>
{% include "umap/map_list.html" with prefix="search_map" %}
{% endif %}
</div>

View file

@ -1,4 +1,5 @@
{% load i18n %}
{% url "search" as search_url %}
{% trans "Search maps" as default_placeholder %}
<div class="wrapper search_wrapper">

View file

@ -1,5 +1,7 @@
{% extends "umap/content.html" %}
{% load i18n %}
{% block head_title %}
{{ SITE_NAME }} - {% trans "My Dashboard" %}
{% endblock head_title %}
@ -17,7 +19,9 @@
<div class="table-header">
<form action="{{ request.get_full_path }}" method="get">
<span>
<label class="sr-only" for="q">{% translate "Maps title" %}</label>
<label class="sr-only" for="q">
{% translate "Maps title" %}
</label>
<input id="q"
name="q"
type="search"