1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-01-12 08:25:18 +00:00

truncate long file names longer than 55 characters

This commit is contained in:
catborise 2020-05-24 00:27:40 +03:00 committed by catborise
parent 7c93ee1e2f
commit 7409c197ed

View file

@ -82,7 +82,7 @@
</dd>
</dl>
<div class="col-lg-12">
{% if state %}
<div class="row">
<h5 class="page-header mr-auto">{% trans "Volumes" %}</h5>
@ -90,8 +90,8 @@
<input id="filter" class="form-control" type="text" placeholder="Search">
</div>
</div>
{% if volumes %}
<div>
<table class="table table-hover sortable-theme-bootstrap" data-sortable>
<thead>
<tr>
@ -107,7 +107,7 @@
{% for volume in volumes %}
<tr>
<td>{{ forloop.counter }}</td>
<td>{{ volume.name }}</td>
<td>{{ volume.name|truncatechars:55 }}</td>
<td>{{ volume.allocation|filesizeformat }}</td>
<td>{{ volume.size|filesizeformat }}</td>
<td>{{ volume.type }}</td>
@ -183,7 +183,6 @@
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<div class="col-lg-12">
<div class="alert alert-warning alert-dismissable">