diff options
author | Dan McGee <dan@archlinux.org> | 2013-05-21 20:35:50 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-05-21 20:35:50 -0500 |
commit | 8c614b4abb2ae0b0474744420aab6ba86383a3e9 (patch) | |
tree | 2e89c08663d9806db01f354450e007c24429c568 /templates/mirrors | |
parent | 64a92174c056a4cca1e6b7e287ca9993bcd2be1a (diff) |
Add 'Edit Mirror' link to mirror details page
For those that have permissions to do so. Makes it a heck of a lot
easier to navigate around and enable or disable mirrors as necessary.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/mirrors')
-rw-r--r-- | templates/mirrors/mirror_details.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 6f0ac6c1..ccd6eb57 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -2,6 +2,7 @@ {% load static from staticfiles %} {% load mirror_status %} {% load flags %} +{% load admin_urls %} {% block title %}Arch Linux - {{ mirror.name }} - Mirror Details{% endblock %} @@ -9,9 +10,14 @@ {% block content %} <div class="box"> - <h2>Mirror Details: {{ mirror.name }}</h2> + {% if perms.mirrors.change_mirror %} + <ul class="admin-actions"> + <li><a href="{% url 'admin:mirrors_mirror_change' mirror.pk %}" title="Edit mirror">Edit Mirror</a></li> + </ul> + {% endif %} + <table class="compact"> <tr> <th>Name:</th> |