files view now has icon for videos, better text/image alignment

This commit is contained in:
2021-01-11 12:01:38 +11:00
parent 7db4b38805
commit cd34be0316

View File

@@ -4,14 +4,18 @@
<h3 class="offset-lg-2">{{page_title}} -- {{file_data.view_path}}</h3> <h3 class="offset-lg-2">{{page_title}} -- {{file_data.view_path}}</h3>
<div class="row"> <div class="row">
{% for obj in file_data.view_list %} {% for obj in file_data.view_list %}
<figure class="figure px-2"> {% if obj.type != "Directory" %}
{% if obj.type=="Image" %} <center>
<center><a href="{{file_data.symlink}}/{{obj.name}}"><img width="128" height="128" src="data:image/jpeg;base64,{{obj.thumbnail}}"></img></a></center> <figure class="figure px-2" font-size: 24px;>
{% else %} {% if obj.type=="Image" %}
<img width="128" height="128" src="data:image/jpeg;base64,{{obj.thumbnail}}"></img> <a href="{{file_data.symlink}}/{{obj.name}}"><img width="128" height="128" src="data:image/jpeg;base64,{{obj.thumbnail}}"></img></a>
{% endif %} {% elif obj.type == "Video" %}
<figcaption class="figure-caption text-center">{{obj.name}}</figcaption> <i style="font-size:128px;" class="fas fa-file-video"></i>
</figure> {% endif %}
<figcaption class="figure-caption text-center">{{obj.name}}</figcaption>
</figure>
</center>
{% endif %}
{% endfor %} {% endfor %}
</div class="row"> </div class="row">
</div class="container"> </div class="container">