Added some identifying classes to detail page sections.

Makes for easier styling. A little cleanup for consistency is
also included.

Change-Id: Id5492ed61fcc93ad83e7142c7840a462bf8f9e85
This commit is contained in:
Gabriel Hurley 2012-06-05 20:41:15 -07:00
parent e0142fc6ab
commit 24355b7d3c
3 changed files with 28 additions and 32 deletions

View File

@ -2,7 +2,7 @@
<h3>{% trans "Image Overview" %}</h3>
<div class="info row-fluid">
<div class="info row-fluid detail">
<h4>{% trans "Info" %}</h4>
<hr class="header_rule">
<dl>
@ -23,7 +23,7 @@
</dl>
</div>
<div class="specs row-fluid">
<div class="specs row-fluid detail">
<h4>{% trans "Specs" %}</h4>
<hr class="header_rule">
<dl>
@ -36,7 +36,7 @@
</dl>
</div>
<div class="properties row-fluid">
<div class="properties row-fluid detail">
<h4>{% trans "Custom Properties" %}</h4>
<hr class="header_rule">
<dl>

View File

@ -2,7 +2,7 @@
<h3>{% trans "Instance Overview" %}</h3>
<div class="status row-fluid">
<div class="status row-fluid detail">
<h4>{% trans "Info" %}</h4>
<hr class="header_rule">
<dl>
@ -15,7 +15,7 @@
</dl>
</div>
<div class="specs row-fluid">
<div class="specs row-fluid detail">
<h4>{% trans "Specs" %}</h4>
<hr class="header_rule">
<dl>
@ -28,7 +28,7 @@
</dl>
</div>
<div class="addresses row-fluid">
<div class="addresses row-fluid detail">
<h4>{% trans "IP Addresses" %}</h4>
<hr class="header_rule">
<dl>
@ -43,7 +43,7 @@
</dl>
</div>
<div class="security_groups row-fluid">
<div class="security_groups row-fluid detail">
<h4>{% trans "Security Groups" %}</h4>
<hr class="header_rule">
<dl>
@ -62,7 +62,7 @@
</dl>
</div>
<div class="meta row-fluid">
<div class="meta row-fluid detail">
<h4>{% trans "Meta" %}</h4>
<hr class="header_rule">
<dl>
@ -74,10 +74,9 @@
</dl>
</div>
<div class="volumes row-fluid">
<div class="volumes row-fluid detail">
<h4>{% trans "Volumes" %}</h4>
<hr class="header_rule">
{% if instance.volumes %}
<dl>
{% for volume in instance.volumes %}
<dt>{% trans "Volume" %}</dt>
@ -86,12 +85,10 @@
{{ volume.volumeId }}&nbsp;({{ volume.device }})
</a>
</dd>
{% empty %}
<dt>{% trans "Volume" %}</dt>
<dd><em>{% trans "No volumes attached." %}</em></dd>
{% endfor %}
</dl>
{% else %}
<ul>
<li><em>{% trans "No volumes attached." %}</em></li>
</ul>
{% endif %}
</dl>
</div>

View File

@ -2,7 +2,7 @@
<h3>{% trans "Volume Overview" %}: {{volume.display_name }}</h3>
<div class="info row-fluid">
<div class="info row-fluid detail">
<h4>{% trans "Info" %}</h4>
<hr class="header_rule">
<dl>
@ -19,7 +19,7 @@
</dl>
</div>
<div class="specs row-fluid">
<div class="specs row-fluid detail">
<h4>{% trans "Specs" %}</h4>
<hr class="header_rule">
<dl>
@ -30,21 +30,20 @@
</dl>
</div>
<div class="status row-fluid">
<div class="status row-fluid detail">
<h4>{% trans "Attachments" %}</h4>
<hr class="header_rule">
{% for attachment in volume.attachments %}
<dl>
{% for attachment in volume.attachments %}
<dt>{% trans "Attached To" %}</dt>
<dd>
{% url horizon:nova:instances_and_volumes:instances:detail attachment.server_id as instance_url%}
<a href="{{ instance_url }}">{% trans "Instance" %} {{ attachment.instance.name }} ({{ attachment.instance.id }})</a>
<span> {% trans "on" %} {{ attachment.device }}</span>
</dd>
</dl>
{% empty %}
<ul>
<li><em>{% trans "Not attached" %}</em></li>
</ul>
<dt>{% trans "Attached To" %}</dt>
<dd><em>{% trans "Not attached" %}</em></dd>
{% endfor %}
</dl>
</div>