Skip to content
Merged
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
30 changes: 30 additions & 0 deletions admin/templates/unprotected_views.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{% extends "base.html" %}
{% block title %}
<title>Unprotected Views</title>
{% endblock title %}
{% block content %}
<h2>Unprotected Views</h2>
<p>These views are marked with <code>login_not_required</code>, so anyone can open them without signing in as staff.</p>
<table class="table table-striped table-hover table-responsive">
<thead>
<tr>
<th>Route</th>
<th>URL name</th>
<th>View</th>
</tr>
</thead>
<tbody>
{% for pattern in unprotected_url_patterns %}
<tr>
<td><code>{{ pattern.route }}</code></td>
<td>{{ pattern.name }}</td>
<td><code>{{ pattern.view }}</code></td>
</tr>
{% empty %}
<tr>
<td colspan="3">Every admin view requires a signed-in staff user.</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock content %}
Loading