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