summaryrefslogtreecommitdiff
path: root/horizon/horizon/dashboards/nova/templates/nova/networks/detail.html
diff options
context:
space:
mode:
Diffstat (limited to 'horizon/horizon/dashboards/nova/templates/nova/networks/detail.html')
-rw-r--r--horizon/horizon/dashboards/nova/templates/nova/networks/detail.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/horizon/horizon/dashboards/nova/templates/nova/networks/detail.html b/horizon/horizon/dashboards/nova/templates/nova/networks/detail.html
new file mode 100644
index 00000000..09a3b011
--- /dev/null
+++ b/horizon/horizon/dashboards/nova/templates/nova/networks/detail.html
@@ -0,0 +1,31 @@
+{% extends 'nova/base.html' %}
+{%load i18n%}
+
+{% block sidebar %}
+ {% with current_sidebar="networks" %}
+ {{block.super}}
+ {% endwith %}
+{% endblock %}
+
+{% block page_header %}
+ {% url horizon:nova:networks:detail network.id as refresh_link %}
+ {# to make searchable false, just remove it from the include statement #}
+ {% include "horizon/common/_page_header.html" with title=network.name refresh_link=refresh_link searchable="true" %}
+{% endblock page_header %}
+
+{% block breadcrumbs %}
+ <a href="{% url horizon:nova:networks:index %}">Networks</a>&nbsp;&raquo;&nbsp;
+ <a href="{% url horizon:nova:networks:detail network.id %}">{{network.name}}</a>
+{% endblock %}
+
+{% block dash_main %}
+ {% if network.ports %}
+ {% include 'nova/networks/_detail.html' %}
+ <a id="network_create_link" class="action_link large-rounded" href="{% url horizon:nova:networks:port_create network.id %}">{% trans "Create Ports"%}</a>
+ {% else %}
+ <div class="message_box info">
+ <h2>{% trans "Info"%}</h2>
+ <p>{% trans "There are currently no ports in this network."%} <a href="{% url horizon:nova:networks:port_create network.id %}">{% trans "Create Ports"%} &gt;&gt;</a></p>
+ </div>
+ {% endif %}
+{% endblock %}