From 7409c197ed4796e533dd320189d65dabdbe79a16 Mon Sep 17 00:00:00 2001 From: catborise Date: Sun, 24 May 2020 00:27:40 +0300 Subject: [PATCH] truncate long file names longer than 55 characters --- storages/templates/storage.html | 205 ++++++++++++++++---------------- 1 file changed, 102 insertions(+), 103 deletions(-) diff --git a/storages/templates/storage.html b/storages/templates/storage.html index 0760b2c..c089f60 100644 --- a/storages/templates/storage.html +++ b/storages/templates/storage.html @@ -82,117 +82,116 @@ -
- {% if state %} -
- -
- -
-
- {% if volumes %} -
- - - - - - - - - - - - - {% for volume in volumes %} - - - - - - - - - - {% endfor %} - -
#{% trans "Name" %}{% trans "Allocated" %}{% trans "Size" %}{% trans "Format" %}{% trans "Action" %}
{{ forloop.counter }}{{ volume.name }}{{ volume.allocation|filesizeformat }}{{ volume.size|filesizeformat }}{{ volume.type }} - - - {% ifnotequal volume.type "iso" %} - - {% else %} - - {% endifnotequal %} - -
{% csrf_token %} - - -
-
+ + {% if state %} +
+ +
+
- {% else %} +
+ + {% if volumes %} + + + + + + + + + + + + + {% for volume in volumes %} + + + + + + + + + + {% endfor %} + +
#{% trans "Name" %}{% trans "Allocated" %}{% trans "Size" %}{% trans "Format" %}{% trans "Action" %}
{{ forloop.counter }}{{ volume.name|truncatechars:55 }}{{ volume.allocation|filesizeformat }}{{ volume.size|filesizeformat }}{{ volume.type }} + + + {% ifnotequal volume.type "iso" %} + + {% else %} + + {% endifnotequal %} + +
{% csrf_token %} + + +
+
+ {% else %}
{% trans "Warning" %}: {% trans "Hypervisor doesn't have any Volumes" %}
- {% endif %} {% endif %} + {% endif %}
{% include 'pleasewaitdialog.html' %}