added message for empty directories

This commit is contained in:
Gered 2013-05-26 14:02:59 -04:00
parent 40ba9e23bd
commit 6eb1141c17
2 changed files with 37 additions and 26 deletions

View file

@ -58,6 +58,11 @@ code, pre {
width: 220px;
}
div.file-list-container {
margin-top: 20px;
margin-bottom: 20px;
}
.center {
float: none;
margin-left: auto;

View file

@ -21,6 +21,8 @@
<div class="clearfix"></div>
</div>
<div class="file-list-container">
{% ifempty not files %}
<table class="table table-hover table-condensed">
<thead>
<tr>
@ -39,7 +41,7 @@
</td>
<td>{{file.size}}</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-danger" data-deletefileid="{{file.id}}" href="#">Delete</a>
</td>
@ -47,6 +49,10 @@
{% endfor %}
</tbody>
</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 class="modal-header">