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:
parent
7c93ee1e2f
commit
7409c197ed
1 changed files with 102 additions and 103 deletions
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue