moved over to the beginnings of a class for file data, functional again

This commit is contained in:
2021-01-11 11:28:49 +11:00
parent ccc8085aaf
commit 5741470ce0
2 changed files with 65 additions and 38 deletions

View File

@@ -1,10 +1,10 @@
{% extends "base.html" %} {% block main_content %}
<div class="container">
<h3 class="offset-lg-2">{{page_title}} -- {{view_path}}</h3>
<h3 class="offset-lg-2">{{page_title}} -- {{file_data.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 (MB)</th><th>Hash</th></tr></thead><tbody>
{% for obj in file_list %}
{% for obj in file_data.view_list %}
<tr><td>
{% if obj.type=="Directory" %}
<i class="fas fa-folder"></i>
@@ -16,7 +16,7 @@
<i class="fas fa-question-circle"></i>
{% endif %}
{% if obj.type=="Image" %}
<a href="{{symlink}}/{{obj.name}}"><img width="128" height="128" src="data:image/jpeg;base64,{{obj.thumbnail}}"></img></a>
<a href="{{file_data.symlink}}/{{obj.name}}"><img width="128" height="128" src="data:image/jpeg;base64,{{obj.thumbnail}}"></img></a>
{% endif %}
{{obj.name}}
</td></td><td>{{obj.size_mb}}</td><td>{{obj.hash}}</tr>