fix bug-59 - missing locn icon for videos, stupidly has a # in front of the filename!

This commit is contained in:
2021-09-18 17:55:59 +10:00
parent 3f21f3d1f5
commit ed04b5e92a
3 changed files with 7 additions and 8 deletions

3
BUGs
View File

@@ -1,3 +1,2 @@
### Next: 59 ### Next: 60
BUG-56: when making a viewing list of AI:mich, (any search?) and going past the page_size, it gets the wrong data from the DB for the 'next' entry BUG-56: when making a viewing list of AI:mich, (any search?) and going past the page_size, it gets the wrong data from the DB for the 'next' entry
BUG-59: I think movie thumbnails are no longer showing bin/imp/sto icon

2
TODO
View File

@@ -1,7 +1,7 @@
## GENERAL ## GENERAL
* rmdups/other jobs? are not setting in progress when they should
* get build process to create a random string for secret for PROD, otherwise use builtin for dev * get build process to create a random string for secret for PROD, otherwise use builtin for dev
Dup issues:
* when we have lots of dups, sort the directories by alpha so its consistent when choosing * when we have lots of dups, sort the directories by alpha so its consistent when choosing
* auto-detect has 0 choices to keep 0 files -- not sure what that was about really * auto-detect has 0 choices to keep 0 files -- not sure what that was about really

View File

@@ -167,7 +167,7 @@
{% set last.printed = obj.file_details.month %} {% set last.printed = obj.file_details.month %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if obj.type.name != "Directory" %} {% if obj.type.name == "Image" or obj.type.name == "Video" %}
{% if (not OPT.folders) or ((obj.in_dir.in_path.path_prefix+'/'+obj.in_dir.rel_path+'/'+obj.name) | TopLevelFolderOf(OPT.cwd)) %} {% if (not OPT.folders) or ((obj.in_dir.in_path.path_prefix+'/'+obj.in_dir.rel_path+'/'+obj.name) | TopLevelFolderOf(OPT.cwd)) %}
<figure id="{{obj.id}}" ecnt="{{loop.index}}" class="col col-auto g-0 figure entry m-1" path_type="{{obj.in_dir.in_path.type.name}}" size="{{obj.file_details.size_mb}}" hash="{{obj.file_details.hash}}" in_dir="{{obj.in_dir.in_path.path_prefix}}/{{obj.in_dir.rel_path}}" fname="{{obj.name}}" yr="{{obj.file_details.year}}" date="{{obj.file_details.year}}{{"%02d" % obj.file_details.month}}{{"%02d" % obj.file_details.day}}" pretty_date="{{obj.file_details.day}}/{{obj.file_details.month}}/{{obj.file_details.year}}" type="{{obj.type.name}}"> <figure id="{{obj.id}}" ecnt="{{loop.index}}" class="col col-auto g-0 figure entry m-1" path_type="{{obj.in_dir.in_path.type.name}}" size="{{obj.file_details.size_mb}}" hash="{{obj.file_details.hash}}" in_dir="{{obj.in_dir.in_path.path_prefix}}/{{obj.in_dir.rel_path}}" fname="{{obj.name}}" yr="{{obj.file_details.year}}" date="{{obj.file_details.year}}{{"%02d" % obj.file_details.month}}{{"%02d" % obj.file_details.day}}" pretty_date="{{obj.file_details.day}}/{{obj.file_details.month}}/{{obj.file_details.year}}" type="{{obj.type.name}}">
{% if obj.type.name=="Image" %} {% if obj.type.name=="Image" %}
@@ -190,14 +190,14 @@
</div> </div>
{% if search_term is defined %} {% if search_term is defined %}
<div style="position:absolute; bottom: 0px; left: 2px;"> <div style="position:absolute; bottom: 0px; left: 2px;">
<svg width="16" height="16" fill="white"><use xlink:href="#{{url_for('internal', filename='icons.svg')}}#{{LocationIcon(obj)}}"/></svg> <svg width="16" height="16" fill="white"><use xlink:href="{{url_for('internal', filename='icons.svg')}}#{{LocationIcon(obj)}}"/></svg>
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}
</figure> </figure>
{% endif %} {% endif %}
{% else %} {% elif obj.type.name == "Directory" %}
{% if OPT.folders %} {% if OPT.folders %}
{% if obj.dir_details.rel_path | length %} {% if obj.dir_details.rel_path | length %}
{% set dirname=obj.dir_details.in_path.path_prefix+'/'+obj.dir_details.rel_path %} {% set dirname=obj.dir_details.in_path.path_prefix+'/'+obj.dir_details.rel_path %}