diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-09-23 09:46:13 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-09-24 18:41:54 +0200 |
commit | d928cd363689149e9f26b76d6671a4b40a8cc917 (patch) | |
tree | 65d6fec607e6421bf814afe039f3064473154848 /files/templates/index.php | |
parent | 71706282f708da237fe259da5b64c0bcd0c0015f (diff) | |
download | nextcloud-server-d928cd363689149e9f26b76d6671a4b40a8cc917.tar.gz nextcloud-server-d928cd363689149e9f26b76d6671a4b40a8cc917.zip |
files: hide non functioning code when called from a/f_s/get.php
The checkboxes don't work because files.js is missing. Adding it leads
to the problem that it relies on files/ajax and most of the code only
works for logged in users.
The actions div contains undefined variables and doesn't work either.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'files/templates/index.php')
-rw-r--r-- | files/templates/index.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/files/templates/index.php b/files/templates/index.php index 76531b22ed5..e2e9dc03001 100644 --- a/files/templates/index.php +++ b/files/templates/index.php @@ -1,5 +1,6 @@ <div id="controls"> <?php echo($_['breadcrumb']); ?> + <?php if (!isset($_['readonly']) || !$_['readonly']) {?> <div class="actions"> <form data-upload-id='1' class="file_upload_form" action="ajax/upload.php" method="post" enctype="multipart/form-data" target="file_upload_target_1"> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload"> @@ -19,6 +20,9 @@ <div id="file_action_panel"> </div> </div> +<?php +} +?> <div id='notification'></div> <?php @@ -31,7 +35,7 @@ if (isset($_['files'])) { <thead> <tr> <th id='headerName'> - <input type="checkbox" id="select_all" /> + <?php if(!isset($_['readonly']) || !$_['readonly']) { ?><input type="checkbox" id="select_all" /><?php } ?> <span class='name'><?php echo $l->t( 'Name' ); ?></span> <span class='selectedActions'> <a href="" title="<?php echo $l->t('Download')?>" class="download"><img class='svg' alt="Download" src="<?php echo image_path("core", "actions/download.svg"); ?>" /></a> |