summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-05-22 03:35:50 +0200
committerDan McGee <dan@archlinux.org>2013-05-22 03:35:50 +0200
commit8c614b4abb2ae0b0474744420aab6ba86383a3e9 (patch)
tree2e89c08663d9806db01f354450e007c24429c568
parent64a92174c056a4cca1e6b7e287ca9993bcd2be1a (diff)
downloadarchweb-8c614b4abb2ae0b0474744420aab6ba86383a3e9.tar.gz
archweb-8c614b4abb2ae0b0474744420aab6ba86383a3e9.tar.xz
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>
-rw-r--r--templates/mirrors/mirror_details.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html
index 6f0ac6c..ccd6eb5 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>