Commit dd471701 authored by J08nY's avatar J08nY

Move list creation button to the top of list index.

parent 60ef84d7
Pipeline #11078605 passed with stage
in 2 minutes and 18 seconds
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
<h1>{% trans 'PGP enabled Mailing Lists' %}</h1> <h1>{% trans 'PGP enabled Mailing Lists' %}</h1>
</div> </div>
{% if user.is_superuser %}
<a class="btn btn-success" href="{% url 'pgp_list_create' %}">Create
new list</a>
{% endif %}
{% if lists|length > 0 %} {% if lists|length > 0 %}
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
...@@ -54,9 +58,6 @@ ...@@ -54,9 +58,6 @@
{% else %} {% else %}
<p>{% trans 'There are currently no PGP enabled mailing lists.' %}</p> <p>{% trans 'There are currently no PGP enabled mailing lists.' %}</p>
{% endif %} {% endif %}
{% if user.is_superuser %}
<a class="btn btn-success" href="{% url 'pgp_list_create' %}">Create
new list</a>
{% endif %}
{% endblock content %} {% endblock content %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment