diff --git a/filemanager/src/Sharing/AnonymousList.php b/filemanager/src/Sharing/AnonymousList.php index 27f9d9020a..fdda6c51a5 100644 --- a/filemanager/src/Sharing/AnonymousList.php +++ b/filemanager/src/Sharing/AnonymousList.php @@ -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); } diff --git a/filemanager/templates/default/index.xet b/filemanager/templates/default/index.xet index d066dc588b..d733c02def 100644 --- a/filemanager/templates/default/index.xet +++ b/filemanager/templates/default/index.xet @@ -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);"/> diff --git a/filemanager/templates/default/sharing.css b/filemanager/templates/default/sharing.css index ac5c743a84..41bb8af5ff 100644 --- a/filemanager/templates/default/sharing.css +++ b/filemanager/templates/default/sharing.css @@ -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 { } -div.search { - position: relative; - width: 35%; - right: 6px; - max-width: 98%; - top: 0; - float: right !important; +#filemanager-index_nm_reload et2-image { + width: 50px; } + +div.search { + width: 25%; + max-width: 98%; +} + div.search .et2_searchbox .flex { - width: 100%; - float: right; - padding-right: 0; + width: 100%; + float: right; + padding-right: 0; } \ No newline at end of file