summaryrefslogtreecommitdiffstats
path: root/files/templates/part.list.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-09-23 09:46:13 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-09-24 18:41:54 +0200
commitd928cd363689149e9f26b76d6671a4b40a8cc917 (patch)
tree65d6fec607e6421bf814afe039f3064473154848 /files/templates/part.list.php
parent71706282f708da237fe259da5b64c0bcd0c0015f (diff)
downloadnextcloud-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/part.list.php')
-rw-r--r--files/templates/part.list.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/templates/part.list.php b/files/templates/part.list.php
index 5995976f73a..398094f56d0 100644
--- a/files/templates/part.list.php
+++ b/files/templates/part.list.php
@@ -7,7 +7,7 @@
if($relative_date_color>200) $relative_date_color = 200; ?>
<tr data-file="<?php echo $file['name'];?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mime']?>" data-size='<?php echo $file['size'];?>'>
<td class="filename svg" style="background-image:url(<?php if($file['type'] == 'dir') echo mimetype_icon('dir'); else echo mimetype_icon($file['mime']); ?>)">
- <input type="checkbox" />
+ <?php if(!isset($_['readonly']) || !$_['readonly']) { ?><input type="checkbox" /><?php } ?>
<a class="name" href="<?php if($file['type'] == 'dir') echo $_['baseURL'].$file['directory'].'/'.$file['name']; else echo $_['downloadURL'].$file['directory'].'/'.$file['name']; ?>" title="">
<span class="nametext">
<?php if($file['type'] == 'dir'):?>