summaryrefslogtreecommitdiffstats
path: root/apps/files/templates
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-09-07 00:01:52 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-09-07 00:02:22 -0400
commit73d726d1b26f011e77761934bcf7f5ce8db86241 (patch)
treeb95913dddcd74b71a97c20ea843d5a4ea23ded16 /apps/files/templates
parent17dadd5c8a39f1903ffeec2c2c78e5e6cd145d9c (diff)
downloadnextcloud-server-73d726d1b26f011e77761934bcf7f5ce8db86241.tar.gz
nextcloud-server-73d726d1b26f011e77761934bcf7f5ce8db86241.zip
Support for unshare from self, with a bunch of temporary fixes to overcome configuration problems with file actions
Diffstat (limited to 'apps/files/templates')
-rw-r--r--apps/files/templates/index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index ec9e80e955e..911a312fb9a 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -57,7 +57,12 @@
<th id="headerDate">
<span id="modified"><?php echo $l->t( 'Modified' ); ?></span>
<?php if ($_['permissions'] & OCP\Share::PERMISSION_DELETE): ?>
- <span class="selectedActions"><a href="" class="delete"><?php echo $l->t('Delete')?> <img class="svg" alt="<?php echo $l->t('Delete')?>" src="<?php echo OCP\image_path("core", "actions/delete.svg"); ?>" /></a></span>
+<!-- NOTE: Temporary fix to allow unsharing of files in root of Shared folder -->
+ <?php if ($_['dir'] == '/Shared'): ?>
+ <span class="selectedActions"><a href="" class="delete"><?php echo $l->t('Unshare')?> <img class="svg" alt="<?php echo $l->t('Unshare')?>" src="<?php echo OCP\image_path("core", "actions/delete.svg"); ?>" /></a></span>
+ <?php else: ?>
+ <span class="selectedActions"><a href="" class="delete"><?php echo $l->t('Delete')?> <img class="svg" alt="<?php echo $l->t('Delete')?>" src="<?php echo OCP\image_path("core", "actions/delete.svg"); ?>" /></a></span>
+ <?php endif; ?>
<?php endif; ?>
</th>
</tr>