Skip to content

Commit

Permalink
storage.html: show usage and size seperately.
Browse files Browse the repository at this point in the history
  • Loading branch information
catborise committed Oct 25, 2019
1 parent a0324ac commit 97e39fa
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions storages/templates/storage.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ <h1 class="page-header">{% trans "Storage:" %} {{ pool }}</h1>

<div class="row">
<div class="col-xs-6 col-sm-6">
<p>{% trans "Pool name" %}:</p>
<p>{% trans "Pool type" %}:</p>
<p>{% trans "Pool path" %}:</p>
<p>{% trans "Pool status" %}:</p>
<p>{% trans "Size" %}: ({{ size|filesizeformat }} / {{ used|filesizeformat }})</p>
<p>{% trans "Pool Name" %}:</p>
<p>{% trans "Pool Type" %}:</p>
<p>{% trans "Pool Path" %}:</p>
<p>{% trans "Pool Status" %}:</p>
<p>{% trans "Size" %}:</p>
<p>{% trans "Usage" %}({{ percent }}%):</p>
<p>{% trans "State" %}:</p>
<p>{% trans "Autostart" %}:</p>
</div>
Expand All @@ -57,7 +58,8 @@ <h1 class="page-header">{% trans "Storage:" %} {{ pool }}</h1>
<p>{% if not type %}{% trans "None" %}{% else %}{{ type }}{% endif %}</p>
<p>{% if not path %}{% trans "None" %}{% else %}{{ path }}{% endif %}</p>
<p>{% if not status %}{% trans "None" %}{% else %}{{ status }}{% endif %}</p>
<p>{% trans "Usage" %}: {{ percent }}%</p>
<p>{{ size|filesizeformat }}</p>
<p>{{ used|filesizeformat }}</p>
<p>
<form action="" method="post" role="form">{% csrf_token %}
{% ifequal state 0 %}
Expand Down

0 comments on commit 97e39fa

Please sign in to comment.