aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2013-06-06 16:44:44 +0000
committerMichael Elkins <melkins@tislabs.com>2013-06-06 16:44:44 +0000
commit6cb38a56c9400f39a76b6b504814f7a7c83960ac (patch)
treec2687ac2d811e61b19856dd0c0d6c15186e2eee4
parenta6307891e5be2fc48a10d458c99d32cd519e61c8 (diff)
Add a link to the resource holder creation page if the current user is a superuser and there are no resource holders defined.
closes #528 svn path=/trunk/; revision=5375
-rw-r--r--rpkid/rpki/gui/app/templates/app/conf_empty.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/rpkid/rpki/gui/app/templates/app/conf_empty.html b/rpkid/rpki/gui/app/templates/app/conf_empty.html
index 0ef9366c..9dddc49d 100644
--- a/rpkid/rpki/gui/app/templates/app/conf_empty.html
+++ b/rpkid/rpki/gui/app/templates/app/conf_empty.html
@@ -2,7 +2,15 @@
{% block content %}
-<h1>Error!</h1>
-<p>Your account does not have permission to manage any resource handles on this server. Please contact your portal-gui operator.
+{% if request.user.is_superuser %}
+<div class="alert alert-info">
+There are currently no resource holders on this system.
+</div>
+<a class="btn" href="https://localhost/rpki/resource_holder/create" title="create a new resource holder"><i class="icon-plus-sign"></i> Create</a>
+{% else %}
+<div class="alert alert-error">
+Your account does not have permission to manage any resource handles on this server. Please contact your portal-gui adminstrator.
+</div>
+{% endif %}
{% endblock %}