added message for empty directories
This commit is contained in:
parent
40ba9e23bd
commit
6eb1141c17
|
@ -58,6 +58,11 @@ code, pre {
|
||||||
width: 220px;
|
width: 220px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.file-list-container {
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.center {
|
.center {
|
||||||
float: none;
|
float: none;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="file-list-container">
|
||||||
|
{% ifempty not files %}
|
||||||
<table class="table table-hover table-condensed">
|
<table class="table table-hover table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -39,7 +41,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td>{{file.size}}</td>
|
<td>{{file.size}}</td>
|
||||||
<td>{{file.last_modified|to_fulltime}}</td>
|
<td>{{file.last_modified|to_fulltime}}</td>
|
||||||
<td style="text-align: right;"">
|
<td style="text-align: right;">
|
||||||
<a class="btn btn-warning" data-updatefileid="{{file.id}}" href="#">Update</a>
|
<a class="btn btn-warning" data-updatefileid="{{file.id}}" href="#">Update</a>
|
||||||
<a class="btn btn-danger" data-deletefileid="{{file.id}}" href="#">Delete</a>
|
<a class="btn btn-danger" data-deletefileid="{{file.id}}" href="#">Delete</a>
|
||||||
</td>
|
</td>
|
||||||
|
@ -47,6 +49,10 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{% else %}
|
||||||
|
<p class="text-center">No files found.</p>
|
||||||
|
{% endifempty %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="newFileModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="newFileModalLabel" aria-hidden="true">
|
<div id="newFileModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="newFileModalLabel" aria-hidden="true">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
|
|
Reference in a new issue