Skip to content

Commit 65f7039

Browse files
authored
lint: reformat templates with djlint (#18266)
1 parent f62eb89 commit 65f7039

File tree

170 files changed

+13720
-12719
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+13720
-12719
lines changed

docs/blog/overrides/main.html

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
{% extends "base.html" %}
2-
32
{% block extrahead %}
4-
{# JSON Feed #}
5-
{% if "rss" in config.plugins %}
6-
<link
7-
rel="alternate"
8-
type="application/feed+json"
9-
title="JSON feed" href="{{ 'feed_json_created.json' | url }}"
10-
/>
11-
<link
12-
rel="alternate"
13-
type="application/feed+json"
14-
title="JSON feed of updated content"
15-
href="{{ 'feed_json_updated.json' | url }}" />
16-
{% endif %}
3+
{# JSON Feed #}
4+
{% if "rss" in config.plugins %}
5+
<link rel="alternate"
6+
type="application/feed+json"
7+
title="JSON feed"
8+
href="{{ 'feed_json_created.json' | url }}" />
9+
<link rel="alternate"
10+
type="application/feed+json"
11+
title="JSON feed of updated content"
12+
href="{{ 'feed_json_updated.json' | url }}" />
13+
{% endif %}
1714
{% endblock %}

warehouse/admin/templates/admin/banners/edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h3 class="card-title">Create banner</h3>
8989

9090
{% if banner %}
9191
<div class="modal fade" id="deleteBanner" tabindex="-1" role="dialog">
92-
<form method="POST" action="{{ request.route_path('admin.banner.delete', banner_id=banner.id) }}">
92+
<form method="post" action="{{ request.route_path('admin.banner.delete', banner_id=banner.id) }}">
9393
<input name="csrf_token" type="hidden" value="{{ request.session.get_csrf_token() }}">
9494
<div class="modal-dialog" role="document">
9595
<div class="modal-content">

warehouse/admin/templates/admin/emails/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
{% block content %}
2828
{% if request.has_permission(Permissions.AdminEmailsWrite) %}
29-
<form method="POST" action={{ request.route_path('admin.emails.mass') }} enctype="multipart/form-data">
29+
<form method="post" action={{ request.route_path('admin.emails.mass') }} enctype="multipart/form-data">
3030
<input name="csrf_token" type="hidden" value="{{ request.session.get_csrf_token() }}">
3131
<div class="card card-primary card-outline">
3232
<div class="card-header">

warehouse/admin/templates/admin/flags/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h3 class="card-title">Edit Flags</h3>
3131
<tbody>
3232
{% for flag in flags %}
3333
<tr>
34-
<form method="POST" action="{{ request.route_path('admin.flags.edit') }}">
34+
<form method="post" action="{{ request.route_path('admin.flags.edit') }}">
3535
<input name="csrf_token" type="hidden" value="{{ csrf_token }}">
3636
<input name="id" type="hidden" value="{{ flag.id }}">
3737
<td><code>{{ flag.id }}</code></td>

0 commit comments

Comments
 (0)