1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 15:45:23 +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> </dd>
</dl> </dl>
<div class="col-lg-12">
{% if state %} {% if state %}
<div class="row"> <div class="row">
<h5 class="page-header mr-auto">{% trans "Volumes" %}</h5> <h5 class="page-header mr-auto">{% trans "Volumes" %}</h5>
@ -90,8 +90,8 @@
<input id="filter" class="form-control" type="text" placeholder="Search"> <input id="filter" class="form-control" type="text" placeholder="Search">
</div> </div>
</div> </div>
{% if volumes %} {% if volumes %}
<div>
<table class="table table-hover sortable-theme-bootstrap" data-sortable> <table class="table table-hover sortable-theme-bootstrap" data-sortable>
<thead> <thead>
<tr> <tr>
@ -107,7 +107,7 @@
{% for volume in volumes %} {% for volume in volumes %}
<tr> <tr>
<td>{{ forloop.counter }}</td> <td>{{ forloop.counter }}</td>
<td>{{ volume.name }}</td> <td>{{ volume.name|truncatechars:55 }}</td>
<td>{{ volume.allocation|filesizeformat }}</td> <td>{{ volume.allocation|filesizeformat }}</td>
<td>{{ volume.size|filesizeformat }}</td> <td>{{ volume.size|filesizeformat }}</td>
<td>{{ volume.type }}</td> <td>{{ volume.type }}</td>
@ -183,7 +183,6 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
</div>
{% else %} {% else %}
<div class="col-lg-12"> <div class="col-lg-12">
<div class="alert alert-warning alert-dismissable"> <div class="alert alert-warning alert-dismissable">