blob: b266ebb79ff0df0b979fa2dd9bff936f29db53fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{% extends 'nova/base.html' %}
{%load i18n%}
{% block sidebar %}
{% with current_sidebar="security_groups" %}
{{block.super}}
{% endwith %}
{% endblock %}
{% block page_header %}
{% url horizon:nova:security_groups:index as refresh_link %}
{# to make searchable false, just remove it from the include statement #}
{% include "horizon/common/_page_header.html" with title=_("Security Groups") refresh_link=refresh_link searchable="true" %}
{% endblock page_header %}
{% block dash_main %}
{% if security_groups %}
{% include 'nova/security_groups/_list.html' %}
{% url horizon:nova:security_groups:create as create_sec_url %}
<a id="security_groups_create_link" class="action_link large-rounded" href="{{create_sec_url}}">{% trans "Create Security Group"%}</a>
{% else %}
<div class="message_box info">
{% url horizon:nova:security_groups:create as dash_sec_url %}
<h2>{% trans "Info"%}</h2>
<p>{% blocktrans %}There are currently no security groups. <a href='{{dash_sec_url}}'>Create A Security Group >></a>{% endblocktrans %}</p>
</div>
{% endif %}
{% endblock %}
|