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

@@ -30,6 +30,9 @@
var offset={{OPT.offset}}
var first_eid={{OPT.first_eid}}
var last_eid={{OPT.last_eid}}
var imp_path="static/Import/{{imp_path}}"
var st_path="static/Storage/{{st_path}}"
var bin_path="static/Bin/{{bin_path}}"
{% for id in objs %}
e=new Object()
@@ -84,7 +87,7 @@
if( fname.indexOf( "static/Import" ) == 0 )
{
s+='<svg width="20" height="20" fill="currentColor"><use xlink:href="{{url_for('internal', filename='icons.svg')}}#import"/></svg>'
tmp_path=fname.replace("static/Import","" )
tmp_path=fname.replace(imp_path,"" )
}
if( fname.indexOf( "static/Storage" ) == 0 )
{