diff options
author | Björn Schießle <schiessle@owncloud.com> | 2012-10-10 17:43:09 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2012-10-10 17:44:21 +0200 |
commit | 41640b4b91c7f8d407fb17e085f83d95ca900311 (patch) | |
tree | b56c5946bb5e98f92ef9b5dc2b61e75ab7d24f88 /apps/files/templates | |
parent | fe5b4d2fbab18a9cf2bc690ce68ad3ba6ee7c787 (diff) | |
download | nextcloud-server-41640b4b91c7f8d407fb17e085f83d95ca900311.tar.gz nextcloud-server-41640b4b91c7f8d407fb17e085f83d95ca900311.zip |
don't show the share action in the file view for publically shared files.
Diffstat (limited to 'apps/files/templates')
-rw-r--r-- | apps/files/templates/part.list.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index 8faeae3939c..1329b5dc5cd 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -1,3 +1,12 @@ + <script type="text/javascript"> + <?php if ( array_key_exists('publicListView', $_) && $_['publicListView'] == true ) { + echo "var publicListView = true;"; + } else { + echo "var publicListView = false;"; + } + ?> + </script> + <?php foreach($_['files'] as $file): $simple_file_size = OCP\simple_file_size($file['size']); $simple_size_color = intval(200-$file['size']/(1024*1024)*2); // the bigger the file, the darker the shade of grey; megabytes*2 |