Filemanager: Anonymous UI style improvements

- add refresh button
- add some background colour & logo
This commit is contained in:
nathan 2022-11-14 11:21:58 -07:00
parent 2e12d92d51
commit f6687dd310
3 changed files with 38 additions and 29 deletions

View File

@ -56,6 +56,7 @@ class AnonymousList extends filemanager_ui
// Override and take over get_rows so we can customize
$content['nm']['get_rows'] = '.' . get_class($this) . '.get_rows';
$content['nm']['show_refresh'] = true;
return parent::listview($content, $msg);
}

View File

@ -48,8 +48,15 @@
</grid>
</template>
<template id="filemanager.index.header_left" template="" lang="" group="0" version="1.9.002">
<file label="Upload" statustext="Select file to upload in current directory" id="upload" progress_dropdownlist = "true" drop_target="filemanager-index" multiple="true" onFinishOne="app.filemanager.uploadOnOne"/>
</template>
<!-- Anonymous view has some extras - logo & button -->
<image src="logo" disabled="!@show_refresh" hideOnReadonly="true" width="150px"/>
<buttononly id="reload" statustext="Reload" onclick="app.filemanager.et2.getInstanceManager().refresh()"
disabled="!@show_refresh" hideOnReadonly="true"
background_image="true" image="reload"/>
<file label="Upload" statustext="Select file to upload in current directory" id="upload"
progress_dropdownlist="true" drop_target="filemanager-index" multiple="true"
onFinishOne="app.filemanager.uploadOnOne"/>
</template>
<template id="filemanager.index.header_row" template="" lang="" group="0" version="1.9.002">
<buttononly id="home" statustext="Go to your home directory" image="gohome" background_image="true" onclick="app.filemanager.change_dir('~',widget);"/>
<buttononly id="up" statustext="Up" image="goup" background_image="true" onclick="app.filemanager.change_dir('..',widget);"/>

View File

@ -24,52 +24,53 @@ select#filemanager-index_filter, span.selectcols, #filemanager-index_filemanager
display: none !important;
}
div#filemanager-index_buttons img#filemanager-index_button\[change_view\] {
display: inline-block !important;
position: absolute;
right: 360px;
top: 4px;
display: inline-block !important;
position: absolute;
right: 360px;
top: 4px;
}
.nextmatch_header_row {
background-color: #fbfbfb;
}
div.filemanager_navigation {
margin: -5px 0 8px 10px !important;
margin: -5px 0 8px 10px !important;
}
div.filemanager_navigation > label {
right: 427px !important;
}
div.search {
position: absolute;
top: 4px;
right: 190px;
}
div#filemanager-index_buttons div.et2_file {
width: 160px;
margin-top: 3px;
padding-right: 20px;
width: 160px;
margin-top: 3px;
padding-right: 20px;
}
div.et2_nextmatch div.nextmatch_header_row {
padding-bottom: 0px;
padding-bottom: 0px;
}
div.et2_nextmatch thead{
display: none;
div.et2_nextmatch thead {
display: none;
}
div.nextmatch_header {
}
#filemanager-index_nm_reload et2-image {
width: 50px;
}
div.search {
position: relative;
width: 35%;
right: 6px;
max-width: 98%;
top: 0;
float: right !important;
width: 25%;
max-width: 98%;
}
div.search .et2_searchbox .flex {
width: 100%;
float: right;
padding-right: 0;
width: 100%;
float: right;
padding-right: 0;
}