Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions docs/blog/overrides/main.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
{% extends "base.html" %}

{% block extrahead %}
{# JSON Feed #}
{% if "rss" in config.plugins %}
<link
rel="alternate"
type="application/feed+json"
title="JSON feed" href="{{ 'feed_json_created.json' | url }}"
/>
<link
rel="alternate"
type="application/feed+json"
title="JSON feed of updated content"
href="{{ 'feed_json_updated.json' | url }}" />
{% endif %}
{# JSON Feed #}
{% if "rss" in config.plugins %}
<link rel="alternate"
type="application/feed+json"
title="JSON feed"
href="{{ 'feed_json_created.json' | url }}" />
<link rel="alternate"
type="application/feed+json"
title="JSON feed of updated content"
href="{{ 'feed_json_updated.json' | url }}" />
{% endif %}
{% endblock %}
2 changes: 1 addition & 1 deletion warehouse/admin/templates/admin/banners/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h3 class="card-title">Create banner</h3>

{% if banner %}
<div class="modal fade" id="deleteBanner" tabindex="-1" role="dialog">
<form method="POST" action="{{ request.route_path('admin.banner.delete', banner_id=banner.id) }}">
<form method="post" action="{{ request.route_path('admin.banner.delete', banner_id=banner.id) }}">
<input name="csrf_token" type="hidden" value="{{ request.session.get_csrf_token() }}">
<div class="modal-dialog" role="document">
<div class="modal-content">
Expand Down
2 changes: 1 addition & 1 deletion warehouse/admin/templates/admin/emails/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

{% block content %}
{% if request.has_permission(Permissions.AdminEmailsWrite) %}
<form method="POST" action={{ request.route_path('admin.emails.mass') }} enctype="multipart/form-data">
<form method="post" action={{ request.route_path('admin.emails.mass') }} enctype="multipart/form-data">
<input name="csrf_token" type="hidden" value="{{ request.session.get_csrf_token() }}">
<div class="card card-primary card-outline">
<div class="card-header">
Expand Down
2 changes: 1 addition & 1 deletion warehouse/admin/templates/admin/flags/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h3 class="card-title">Edit Flags</h3>
<tbody>
{% for flag in flags %}
<tr>
<form method="POST" action="{{ request.route_path('admin.flags.edit') }}">
<form method="post" action="{{ request.route_path('admin.flags.edit') }}">
<input name="csrf_token" type="hidden" value="{{ csrf_token }}">
<input name="id" type="hidden" value="{{ flag.id }}">
<td><code>{{ flag.id }}</code></td>
Expand Down
Loading