]> source.dussan.org Git - nextcloud-server.git/commitdiff
no new menu on public upload
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 15 Jan 2014 14:07:52 +0000 (15:07 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 15 Jan 2014 14:07:52 +0000 (15:07 +0100)
apps/files/templates/index.php

index d7f479b504fbe542cec2d1b9a0b7613d10dc13a8..a69407805d87d2c464322cf9df0e55b2fd7062ff 100644 (file)
@@ -1,6 +1,7 @@
 <div id="controls">
        <?php print_unescaped($_['breadcrumb']); ?>
                <div class="actions creatable <?php if (!$_['isCreatable']):?>hidden<?php endif; ?>">
+                       <?php if(!isset($_['dirToken'])):?>
                        <div id="new" class="button">
                                <a><?php p($l->t('New'));?></a>
                                <ul>
@@ -12,6 +13,7 @@
                                                data-type='web'><p><?php p($l->t('From link'));?></p></li>
                                </ul>
                        </div>
+                       <?php endif;?>
                        <div id="upload" class="button"
                                 title="<?php p($l->t('Upload') . ' max. '.$_['uploadMaxHumanFilesize']) ?>">
                                        <?php if($_['uploadMaxFilesize'] >= 0):?>