Skip to content
Open
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
8 changes: 7 additions & 1 deletion admin_honeypot/templates/admin_honeypot/login.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
{% extends 'admin/login.html' %}
{% block nav-global %}{{ block.super }}{% if user.is_active and user.is_staff %}<style>#user-tools{display:none !important}</style>{% endif %}{% endblock %}
{% block content %}
{% if debug %}
<p class="errornote alert alert-notice">Django Admin Honeypot enabled. <a href='{% url 'admin:index' %}'>Click here</a> to log into the actual admin.</p>
{% endif %}
{{block.super}}
{% endblock %}
{% block nav-global %}{{ block.super }}{% if user.is_active and user.is_staff %}<style>#user-tools{display:none !important}</style>{% endif %}{% endblock %}