~yolanda.robla/horizon/precise-security

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% extends 'nova/base.html' %}
{% load i18n %}
{% block title %}Network Detail{% 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 dash_main %}
  {% if network.ports %}
    {% include 'nova/networks/_detail.html' %}
    <a id="network_create_link" class="btn small" href="{% url horizon:nova:networks:port_create network.id %}">{% trans "Create Ports" %}</a>
  {% else %}
    <div class="alert-message block-message info">
     <h2>{% trans "Info" %}</h2>
     <p>{% trans "There are currently no ports in this network." %} <a class='btn small' href="{% url horizon:nova:networks:port_create network.id %}">{% trans "Create Ports" %}</a></p>
    </div>
  {% endif %}
{% endblock %}