storage: Remove unnecessary column sizing

- Convert a div to a paragraph to get proper margins.

Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2018-06-18 19:24:10 +05:30
parent ebd10c7d65
commit 87d32d9c64
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -44,47 +44,44 @@
</p> </p>
{% endif %} {% endif %}
<div>{% trans "The following disks are in use:" %}</div> <p>{% trans "The following disks are in use:" %}</p>
<div class="row">
<div class="col-lg-12"> <table class="table table-bordered table-condensed table-striped">
<table class="table table-bordered table-condensed table-striped"> <thead>
<thead> <tr>
<tr> <th>{% trans "Device" %}</th>
<th>{% trans "Device" %}</th> <th>{% trans "Mount Point" %}</th>
<th>{% trans "Mount Point" %}</th> <th>{% trans "Type" %}</th>
<th>{% trans "Type" %}</th> <th>{% trans "Used" %}</th>
<th>{% trans "Used" %}</th> </tr>
</tr> </thead>
</thead> <tbody>
<tbody> {% for disk in disks %}
{% for disk in disks %} <tr>
<tr> <td>{{ disk.dev_kname }}</td>
<td>{{ disk.dev_kname }}</td> <td>{{ disk.mount_point }}</td>
<td>{{ disk.mount_point }}</td> <td>{{ disk.file_system_type }}</td>
<td>{{ disk.file_system_type }}</td> <td>
<td> <div class="progress">
<div class="progress"> {% if disk.percent_used < 75 %}
{% if disk.percent_used < 75 %} <div class="progress-bar progress-bar-striped progress-bar-success"
<div class="progress-bar progress-bar-striped progress-bar-success" {% elif disk.percent_used < 90 %}
{% elif disk.percent_used < 90 %} <div class="progress-bar progress-bar-striped progress-bar-warning"
<div class="progress-bar progress-bar-striped progress-bar-warning" {% else %}
{% else %} <div class="progress-bar progress-bar-striped progress-bar-danger"
<div class="progress-bar progress-bar-striped progress-bar-danger" {% endif %}
{% endif %} role="progressbar" aria-valuenow="disk.percent_used"
role="progressbar" aria-valuenow="disk.percent_used" aria-valuemin="0" aria-valuemax="100"
aria-valuemin="0" aria-valuemax="100" style="width: {{ disk.percent_used }}%;">
style="width: {{ disk.percent_used }}%;"> {{ disk.percent_used }}%
{{ disk.percent_used }}%
</div>
</div> </div>
<div>{{ disk.used_str }} / {{ disk.size_str }}</div> </div>
</td> <div>{{ disk.used_str }} / {{ disk.size_str }}</div>
</tr> </td>
{% endfor %} </tr>
</tbody> {% endfor %}
</table> </tbody>
</div> </table>
</div>
<h3>{% trans "Partition Expansion" %}</h3> <h3>{% trans "Partition Expansion" %}</h3>
{% if expandable_root_size %} {% if expandable_root_size %}