blob: 16ef1eebc3abb46ffd3acb098e29985f974343f8 (
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 'django_openstack/dash/base.html' %}
{%load i18n%}
{% block sidebar %}
{% with current_sidebar="networks" %}
{{block.super}}
{% endwith %}
{% endblock %}
{% block page_header %}
{% url dash_networks request.user.tenant_id as refresh_link %}
{# to make searchable false, just remove it from the include statement #}
{% include "django_openstack/common/_page_header.html" with title=_("Networks") refresh_link=refresh_link searchable="true" %}
{% endblock page_header %}
{% block dash_main %}
{% if networks %}
{% include 'django_openstack/dash/networks/_list.html' %}
{% url dash_network_create request.user.tenant_id as dash_net_url %}
<a id="network_create_link" class="action_link large-rounded" href="{{dash_net_url}}">{% trans "Create New Network"%}</a>
{% else %}
<div class="message_box info">
<h2>{% trans "Info"%}</h2>
<p>{% trans "There are currently no networks."%} <a href='{% url dash_network_create request.user.tenant_id %}'>{% trans "Create A Network"%} >></a></p>
</div>
{% endif %}
</div>
{% endblock %}
|