~ubuntu-branches/ubuntu/precise/horizon/precise-updates

« back to all changes in this revision

Viewing changes to horizon/horizon/dashboards/nova/templates/nova/instances_and_volumes/index.html

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-16 16:34:56 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20111216163456-ts9ldy8skhsg0scb
Tags: 2012.1~e2-0ubuntu1
* New upstream release (LP: #904039)
* debian/control: Update build-depends.
* debian/watch: Fix to fetch from Launchpad ad well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends 'nova/base.html' %}
 
2
{% load i18n %}
 
3
 
 
4
{% block page_header %}
 
5
  {% include "horizon/common/_page_header.html" with title=_("Instances & Volumes") %}
 
6
{% endblock page_header %}
 
7
 
 
8
{% block dash_main %}
 
9
  {% if instances %}
 
10
    {% include 'nova/instances_and_volumes/instances/_list.html' %}
 
11
  {% else %}
 
12
    {% include 'nova/instances_and_volumes/instances/_no_instances.html' %}
 
13
  {% endif %}
 
14
 
 
15
  {% if volumes %}
 
16
    {% include 'nova/instances_and_volumes/volumes/_list.html' %}
 
17
  {% else %}
 
18
    <div class="alert-message block-message info">
 
19
      <p><strong>{% trans "Info: "%}</strong>{% trans "There are currently no volumes."%}</p>
 
20
      <div class="alert-actions">
 
21
        <a id="volume_create_link" class="btn primary small" data-controls-modal="create_volume_modal" data-backdrop="static" href="{% url horizon:nova:instances_and_volumes:volumes:create %}">{% trans "Create New Volume"%}</a>
 
22
      </div>
 
23
    </div>
 
24
  {% endif %}
 
25
  {% include 'nova/instances_and_volumes/volumes/_create.html' with form=create_form hide=True %}
 
26
{% endblock %}