-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add admin button to generate new signing key
- Loading branch information
Showing
3 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
email_extras/templates/admin/email_extras/key/change_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends "admin/change_list.html" %} | ||
{% load i18n admin_urls static admin_list %} | ||
|
||
{% block object-tools-items %} | ||
{% url cl.opts|admin_urlname:'generate_signing_key' as generate_signing_key_url %} | ||
{% if generate_signing_key_url and has_add_permission %} | ||
<li> | ||
<a href="{{ generate_signing_key_url }}" class="addlink"> | ||
{% trans "Generate Signing Key" %} | ||
</a> | ||
</li> | ||
{% endif %} | ||
{{ block.super }} | ||
{% endblock %} |