"Fossies" - the Fresh Open Source Software Archive

Member "horizon-14.0.4/openstack_dashboard/dashboards/project/volumes/templates/volumes/_detail_overview.html" (22 Oct 2019, 3713 Bytes) of package /linux/misc/openstack/horizon-14.0.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {% load i18n sizeformat parse_date %}
    2 
    3 <div class="detail">
    4   <dl class="dl-horizontal">
    5     <dt>{% trans "Name" %}</dt>
    6     <dd data-display="{{ volume.name|default:volume.id }}">{{ volume.name }}</dd>
    7     <dt>{% trans "ID" %}</dt>
    8     <dd>{{ volume.id }}</dd>
    9     {% if volume.description %}
   10     <dt>{% trans "Description" %}</dt>
   11     <dd>{{ volume.description }}</dd>
   12     {% endif %}
   13     <dt>{% trans "Status" %}</dt>
   14     <dd>{{ volume.status_label|capfirst }}</dd>
   15     <dt>{% trans "Group" %}</dt>
   16     {% if group %}
   17     <dd><a href="{% url 'horizon:project:volume_groups:detail' volume.group_id %}">{{ group.name_or_id }}</a></dd>
   18     {% else %}
   19     <dd>{% trans "-" %}</dd>
   20     {% endif %}
   21   </dl>
   22 
   23   <h4>{% trans "Specs" %}</h4>
   24   <hr class="header_rule">
   25   <dl class="dl-horizontal">
   26     <dt>{% trans "Size" %}</dt>
   27     <dd>{{ volume.size }} {% trans "GiB" %}</dd>
   28     {% if volume.volume_type %}
   29     <dt>{% trans "Type" %}</dt>
   30     <dd>{{ volume.volume_type }}</dd>
   31     {% endif %}
   32     {% if volume.availabilty_zone %}
   33     <dt>{% trans "Availability zone" %}</dt>
   34     <dd>{{ volume.availability_zone }}</dd>
   35     {% endif %}
   36     <dt>{% trans "Bootable" %}</dt>
   37     <dd>{{ volume.is_bootable|yesno|capfirst }}</dd>
   38     <dt>{% trans "Encrypted" %}</dt>
   39     {% if volume.encrypted %}
   40     <dd><a href="{% url detail_url.encryption volume.id %}">{% trans "Yes" %}</a></dd>
   41     {% else %}
   42     <dd>{% trans "No" %}</dd>
   43     {% endif %}
   44     <dt>{% trans "Created" context "Created time" %}</dt>
   45     <dd>{{ volume.created_at|parse_date }}</dd>
   46   </dl>
   47 
   48   <h4>{% trans "Attachments" %}</h4>
   49   <hr class="header_rule">
   50   <dl class="dl-horizontal">
   51   {% for attachment in volume.attachments %}
   52     <dt>{% trans "Attached To" %}</dt>
   53     <dd>
   54       {% url detail_url.instance attachment.server_id as instance_url %}
   55       {% blocktrans trimmed with instance_name=attachment.instance.name device=attachment.device %}
   56       <a href="{{ instance_url }}">{{ instance_name }}</a> on {{ device }}
   57       {% endblocktrans %}
   58     </dd>
   59   {% empty %}
   60     <dt>{% trans "Attached To" %}</dt>
   61     <dd><em>{% trans "Not attached" %}</em></dd>
   62   {% endfor %}
   63   </dl>
   64 
   65 {% if volume.volume_image_metadata %}
   66   <h4>{% trans "Volume Source" %}</h4>
   67   <hr class="header_rule">
   68   <dl class="dl-horizontal">
   69     <dt>{% trans "Image" %}</dt>
   70     <dd>
   71       {% url detail_url.image volume.volume_image_metadata.image_id as image_url %}
   72       <a href="{{ image_url }}">{{ volume.volume_image_metadata.image_name }}</a>
   73     </dd>
   74   </dl>
   75 {% endif %}
   76 
   77   <h4>{% trans "Metadata" %}</h4>
   78   <hr class="header_rule">
   79   <dl class="dl-horizontal">
   80   {% if volume.metadata.items %}
   81       {% for key, value in volume.metadata.items %}
   82           <dt>{{ key }}</dt>
   83           <dd>{{ value }}</dd>
   84       {% endfor %}
   85   {% else %}
   86       <dd>{% trans "None" %}</dd>
   87   {% endif %}
   88   </dl>
   89 
   90 {% if volume.transfer %}
   91   <h4>{% trans "Volume Transfer" %}</h4>
   92   <hr class="header_rule">
   93   <dl>
   94       <dt>{% trans "ID" %}</dt>
   95       <dd>{{ volume.transfer.id }}</dd>
   96   </dl>
   97   <dl>
   98       <dt>{% trans "Name" %}</dt>
   99       <dd>{{ volume.transfer.name }}</dd>
  100   </dl>
  101   <dl>
  102       <dt>{% trans "Created" context "Created time" %}</dt>
  103       <dd>{{ volume.transfer.created_at|parse_date }}</dd>
  104   </dl>
  105 {% endif %}
  106 
  107 {% if volume.messages %}
  108   <h4>{% trans "Messages" %}</h4>
  109   <hr class="header_rule">
  110   <div>
  111   {% for m in volume.messages %}
  112     <div class="alert
  113       {% if m.message_level == 'ERROR' %}alert-danger
  114       {% elif m.message_level == 'WARNING' %}alert-warning
  115       {% elif m.message_level == 'INFO' %}alert-info
  116       {% else %}alert-success
  117       {% endif %}
  118     ">
  119       {{ m.user_message }}
  120     </div>
  121   {% endfor %}
  122   </div>
  123 {% endif %}
  124 </div>