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; width: 220px;
} }
div.file-list-container {
margin-top: 20px;
margin-bottom: 20px;
}
.center { .center {
float: none; float: none;
margin-left: auto; margin-left: auto;

View file

@ -21,32 +21,38 @@
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
<table class="table table-hover table-condensed"> <div class="file-list-container">
<thead> {% ifempty not files %}
<tr> <table class="table table-hover table-condensed">
<th width="440px">Filename</th> <thead>
<th width="100px">Size</th> <tr>
<th width="240px">Last Modified</th> <th width="440px">Filename</th>
<th width="160px">&nbsp;</th> <th width="100px">Size</th>
</tr> <th width="240px">Last Modified</th>
</thead> <th width="160px">&nbsp;</th>
<tbody> </tr>
{% for file in files %} </thead>
<tr> <tbody>
<td> {% for file in files %}
<a href="{{context}}/files{{path}}{{file.filename}}"><i class="icon-file"></i> {{file.filename}}</a><br /> <tr>
<small class="muted">{{file.content-type}}</small> <td>
</td> <a href="{{context}}/files{{path}}{{file.filename}}"><i class="icon-file"></i> {{file.filename}}</a><br />
<td>{{file.size}}</td> <small class="muted">{{file.content-type}}</small>
<td>{{file.last_modified|to_fulltime}}</td> </td>
<td style="text-align: right;""> <td>{{file.size}}</td>
<a class="btn btn-warning" data-updatefileid="{{file.id}}" href="#">Update</a> <td>{{file.last_modified|to_fulltime}}</td>
<a class="btn btn-danger" data-deletefileid="{{file.id}}" href="#">Delete</a> <td style="text-align: right;">
</td> <a class="btn btn-warning" data-updatefileid="{{file.id}}" href="#">Update</a>
</tr> <a class="btn btn-danger" data-deletefileid="{{file.id}}" href="#">Delete</a>
{% endfor %} </td>
</tbody> </tr>
</table> {% 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 id="newFileModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="newFileModalLabel" aria-hidden="true">
<div class="modal-header"> <div class="modal-header">