From: Florian Pritz Date: Fri, 23 Sep 2011 07:46:13 +0000 (+0200) Subject: files: hide non functioning code when called from a/f_s/get.php X-Git-Tag: v3.0~161^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d928cd363689149e9f26b76d6671a4b40a8cc917;p=nextcloud-server.git 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 --- diff --git a/apps/files_sharing/get.php b/apps/files_sharing/get.php index a1b6c316cd5..33918bf9e7d 100644 --- a/apps/files_sharing/get.php +++ b/apps/files_sharing/get.php @@ -56,9 +56,11 @@ if ($source !== false) { $list->assign("files", $files); $list->assign("baseURL", OC_Helper::linkTo("files_sharing", "get.php")."?token=".$token."&path="); $list->assign("downloadURL", OC_Helper::linkTo("files_sharing", "get.php")."?token=".$token."&path="); + $list->assign("readonly", true); $tmpl = new OC_Template("files", "index", "user"); $tmpl->assign("fileList", $list->fetchPage()); $tmpl->assign("breadcrumb", $breadcrumbNav->fetchPage()); + $tmpl->assign("readonly", true); $tmpl->printPage(); } else { //get time mimetype and set the headers 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 @@
+
@@ -19,6 +20,9 @@
+
- + t( 'Name' ); ?> Download" /> 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; ?> '> - +