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 // Override and take over get_rows so we can customize
$content['nm']['get_rows'] = '.' . get_class($this) . '.get_rows'; $content['nm']['get_rows'] = '.' . get_class($this) . '.get_rows';
$content['nm']['show_refresh'] = true;
return parent::listview($content, $msg); return parent::listview($content, $msg);
} }

View File

@ -48,7 +48,14 @@
</grid> </grid>
</template> </template>
<template id="filemanager.index.header_left" template="" lang="" group="0" version="1.9.002"> <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"/> <!-- 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>
<template id="filemanager.index.header_row" template="" lang="" group="0" version="1.9.002"> <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="home" statustext="Go to your home directory" image="gohome" background_image="true" onclick="app.filemanager.change_dir('~',widget);"/>

View File

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