if via folders or grouping is none we create the row of images. if we are searching, added mini icon in bottom-left to show where the image is from (import/storage/bin)
This commit is contained in:
@@ -108,7 +108,7 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% set last = namespace(printed=0) %}
|
{% set last = namespace(printed=0) %}
|
||||||
{% if grouping == "None" %}
|
{% if folders or grouping == "None" %}
|
||||||
<div class="row pl-3">
|
<div class="row pl-3">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for obj in entry_data %}
|
{% for obj in entry_data %}
|
||||||
@@ -158,13 +158,25 @@
|
|||||||
{% if (not folders) or ((obj.in_dir.in_path.path_prefix+'/'+obj.in_dir.rel_path+'/'+obj.name) | TopLevelFolderOf(cwd)) %}
|
{% if (not folders) or ((obj.in_dir.in_path.path_prefix+'/'+obj.in_dir.rel_path+'/'+obj.name) | TopLevelFolderOf(cwd)) %}
|
||||||
<figure id="{{obj.id}}" img="{{loop.index-1}}" class="figure mx-1" fname="{{obj.name}}" yr="{{obj.file_details.year}}" date="{{obj.file_details.year}}{{"%02d" % obj.file_details.month}}{{"%02d" % obj.file_details.day}}" details="{{obj.name}} (Date: {{obj.file_details.day}}/{{obj.file_details.month}}/{{obj.file_details.year}})">
|
<figure id="{{obj.id}}" img="{{loop.index-1}}" class="figure mx-1" fname="{{obj.name}}" yr="{{obj.file_details.year}}" date="{{obj.file_details.year}}{{"%02d" % obj.file_details.month}}{{"%02d" % obj.file_details.day}}" details="{{obj.name}} (Date: {{obj.file_details.day}}/{{obj.file_details.month}}/{{obj.file_details.year}})">
|
||||||
{% if obj.type.name=="Image" %}
|
{% if obj.type.name=="Image" %}
|
||||||
<a href="{{obj.in_dir.in_path.path_prefix}}/{{obj.in_dir.rel_path}}/{{obj.name}}"><img class="thumb" height="{{size}}" src="data:image/jpeg;base64,{{obj.file_details.thumbnail}}"></img></a>
|
<div style="position:relative; width:100%">
|
||||||
|
<a href="{{obj.in_dir.in_path.path_prefix}}/{{obj.in_dir.rel_path}}/{{obj.name}}"><img class="thumb" height="{{size}}" src="data:image/jpeg;base64,{{obj.file_details.thumbnail}}"></img></a>
|
||||||
|
{% if search_term is defined %}
|
||||||
|
<div style="position:absolute; bottom: 2; left: 2;">
|
||||||
|
<i style="font-size:16;background-color:black;color:white" class="fas {{LocationIcon(obj)}}"></i>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
{% elif obj.type.name == "Video" %}
|
{% elif obj.type.name == "Video" %}
|
||||||
<div style="position:relative; width:100%">
|
<div style="position:relative; width:100%">
|
||||||
<a href="{{obj.in_dir.in_path.path_prefix}}/{{obj.in_dir.rel_path}}/{{obj.name}}"><img class="thumb" style="display:block" height="{{size}}" src="data:image/jpeg;base64,{{obj.file_details.thumbnail}}"></img></a>
|
<a href="{{obj.in_dir.in_path.path_prefix}}/{{obj.in_dir.rel_path}}/{{obj.name}}"><img class="thumb" style="display:block" height="{{size}}" src="data:image/jpeg;base64,{{obj.file_details.thumbnail}}"></img></a>
|
||||||
<div style="position:absolute; top: 2; left: 2;">
|
<div style="position:absolute; top: 2; left: 2;">
|
||||||
<i style="font-size:32;background-color:black;color:white" class="fas fa-film"></i>
|
<i style="font-size:32;background-color:black;color:white" class="fas fa-film"></i>
|
||||||
</div>
|
</div>
|
||||||
|
{% if search_term is defined %}
|
||||||
|
<div style="position:absolute; bottom: 2; left: 2;">
|
||||||
|
<i style="font-size:16;background-color:black;color:white" class="fas {{LocationIcon(obj)}}"></i>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# finding text distracting, <figcaption style="font-size:12px;" class="figure-caption text-center">{{obj.name}}</figcaption> #}
|
{# finding text distracting, <figcaption style="font-size:12px;" class="figure-caption text-center">{{obj.name}}</figcaption> #}
|
||||||
|
|||||||
Reference in New Issue
Block a user