it now at least does a basic view page successfully, with name, size, hash

This commit is contained in:
2021-01-10 17:31:09 +11:00
parent ae14ed92c0
commit 6807e44228
2 changed files with 32 additions and 12 deletions

View File

@@ -3,7 +3,7 @@
<h3 class="offset-lg-2">{{page_title}} -- {{view_path}}</h3>
<div class="row">
<table class="table table table-sm col-xl-12">
<thead><tr class="thead-light"><th>Name</th><th>Size</th><th>Hash</th></tr></thead><tbody>
<thead><tr class="thead-light"><th>Name</th><th>Size (MB)</th><th>Hash</th></tr></thead><tbody>
{% for obj in file_list %}
<tr><td>
{% if obj.type=="Directory" %}
@@ -15,7 +15,8 @@
{% else %}
<i class="fas fa-question-circle"></i>
{% endif %}
&nbsp;{{obj.name}}</td></td><td>{{obj.size}}</td><td>{{obj.hash}}</tr>
&nbsp;{{obj.name}}
</td></td><td>{{obj.size_MB}}</td><td>{{obj.hash}}</tr>
{% endfor %}
</tbody></table>
</div class="row">