first pass of click through to see real image
This commit is contained in:
@@ -125,7 +125,7 @@ def photos():
|
|||||||
fname=file.replace(p, "")
|
fname=file.replace(p, "")
|
||||||
view_list.append( Photos( name=fname, type=ftype, size_MB=fsize, hash=fhash, thumbnail=fthumbnail ))
|
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>")
|
@app.route("/static/<filename>")
|
||||||
def custom_static(filename):
|
def custom_static(filename):
|
||||||
|
|||||||
@@ -15,13 +15,10 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<i class="fas fa-question-circle"></i>
|
<i class="fas fa-question-circle"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{obj.name}}
|
|
||||||
{% if obj.type=="Image" %}
|
{% if obj.type=="Image" %}
|
||||||
<!--
|
<a href="{{symlink}}/{{obj.name}}"><img width="128" height="128" src="data:image/jpeg;base64,{{obj.thumbnail}}"></img></a>
|
||||||
<img width="64" height="64" src="{{obj.name}}"></img>
|
|
||||||
-->
|
|
||||||
<img width="64" height="64" src="data:image/jpeg;base64,{{obj.thumbnail}}"></img>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{obj.name}}
|
||||||
</td></td><td>{{obj.size_MB}}</td><td>{{obj.hash}}</tr>
|
</td></td><td>{{obj.size_MB}}</td><td>{{obj.hash}}</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody></table>
|
</tbody></table>
|
||||||
|
|||||||
Reference in New Issue
Block a user