first pass of click through to see real image

This commit is contained in:
2021-01-10 20:50:47 +11:00
parent 608bfb81e8
commit c3debb3425
2 changed files with 3 additions and 6 deletions

View File

@@ -125,7 +125,7 @@ def photos():
fname=file.replace(p, "")
view_list.append( Photos( name=fname, type=ftype, size_MB=fsize, hash=fhash, thumbnail=fthumbnail ))
return render_template("photos.html", page_title='View Photos', view_path=view_path, file_list=view_list, alert=st.GetAlert(), message=st.GetMessage() )
return render_template("photos.html", page_title='View Photos', view_path=view_path, file_list=view_list, symlink=symlink, alert=st.GetAlert(), message=st.GetMessage() )
@app.route("/static/<filename>")
def custom_static(filename):

View File

@@ -15,13 +15,10 @@
{% else %}
<i class="fas fa-question-circle"></i>
{% endif %}
&nbsp;{{obj.name}}
{% if obj.type=="Image" %}
<!--
<img width="64" height="64" src="{{obj.name}}"></img>
-->
<img width="64" height="64" src="data:image/jpeg;base64,{{obj.thumbnail}}"></img>
<a href="{{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>
{% endfor %}
</tbody></table>