improved login page to be responsive, also made pretty fname remove paths now we have only 1 imp/sto/bin path -- reduces fname size which is a small help to BUG-96

This commit is contained in:
2022-07-16 17:10:05 +10:00
parent cb4082fd04
commit 4f01125bcc
5 changed files with 20 additions and 6 deletions

View File

@@ -755,7 +755,11 @@ def view(id):
return redirect("/")
else:
NMO_data = FaceOverrideType.query.all()
return render_template("viewer.html", current=int(id), eids=eids, objs=objs, OPT=OPT, NMO_data=NMO_data )
setting = Settings.query.first()
imp_path = setting.import_path
st_path = setting.storage_path
bin_path = setting.recycle_bin_path
return render_template("viewer.html", current=int(id), eids=eids, objs=objs, OPT=OPT, NMO_data=NMO_data, imp_path=imp_path, st_path=st_path, bin_path=bin_path )
##################################################################################
# /view/id -> grabs data from DB and views it (POST -> set state, redirect to GET)