summaryrefslogtreecommitdiffstats
path: root/apps/files/templates
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-10-21 19:49:09 +0200
committerkondou <kondou@ts.unde.re>2013-10-21 19:49:27 +0200
commit732e7db31902e88e4ca6582c56af14b5e3d2bc39 (patch)
treec8f094fe7b80774fc3c207a86120e8eeb212e5e0 /apps/files/templates
parent7864a3bf07fab1183bc003e771ee365fc1376c73 (diff)
downloadnextcloud-server-732e7db31902e88e4ca6582c56af14b5e3d2bc39.tar.gz
nextcloud-server-732e7db31902e88e4ca6582c56af14b5e3d2bc39.zip
Fix mind-boggling emptycontent logic
Diffstat (limited to 'apps/files/templates')
-rw-r--r--apps/files/templates/index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index af9cdffa5a3..c1373c3e9d5 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -42,14 +42,14 @@
<input type="hidden" name="permissions" value="<?php p($_['permissions']); ?>" id="permissions">
</div>
-<div id="emptycontent" <?php if ($_['emptyContent']):?>class="hidden"<?php endif; ?>><?php p($l->t('Nothing in here. Upload something!'))?></div>
+<div id="emptycontent" <?php if (!$_['emptyContent']):?>class="hidden"<?php endif; ?>><?php p($l->t('Nothing in here. Upload something!'))?></div>
<input type="hidden" id="disableSharing" data-status="<?php p($_['disableSharing']); ?>"></input>
<table id="filestable" data-allow-public-upload="<?php p($_['publicUploadEnabled'])?>" data-preview-x="36" data-preview-y="36">
<thead>
<tr>
- <th <?php if (!$_['emptyContent']):?>class="hidden"<?php endif; ?> id='headerName'>
+ <th <?php if (!$_['fileHeader']):?>class="hidden"<?php endif; ?> id='headerName'>
<div id="headerName-container">
<input type="checkbox" id="select_all" />
<label for="select_all"></label>
@@ -65,8 +65,8 @@
</span>
</div>
</th>
- <th <?php if (!$_['emptyContent']):?>class="hidden"<?php endif; ?> id="headerSize"><?php p($l->t('Size')); ?></th>
- <th <?php if (!$_['emptyContent']):?>class="hidden"<?php endif; ?> id="headerDate">
+ <th <?php if (!$_['fileHeader']):?>class="hidden"<?php endif; ?> id="headerSize"><?php p($l->t('Size')); ?></th>
+ <th <?php if (!$_['fileHeader']):?>class="hidden"<?php endif; ?> id="headerDate">
<span id="modified"><?php p($l->t( 'Modified' )); ?></span>
<?php if ($_['permissions'] & OCP\PERMISSION_DELETE): ?>
<!-- NOTE: Temporary fix to allow unsharing of files in root of Shared folder -->