diff options
author | Christopher Schäpers <kondou@ts.unde.re> | 2013-10-22 14:39:14 -0700 |
---|---|---|
committer | Christopher Schäpers <kondou@ts.unde.re> | 2013-10-22 14:39:14 -0700 |
commit | 70c0d7d6bc37765e75d012981069a5f3da6e2b3b (patch) | |
tree | f3b92ce4ab85a03626f77400517f1730f0a23f80 /apps/files/templates/index.php | |
parent | 70b02f0513758febe17c13526d96d80c6003284b (diff) | |
parent | d1c27e08e56562c7b522c43d1f1b485ee9f1cd77 (diff) | |
download | nextcloud-server-70c0d7d6bc37765e75d012981069a5f3da6e2b3b.tar.gz nextcloud-server-70c0d7d6bc37765e75d012981069a5f3da6e2b3b.zip |
Merge pull request #5310 from owncloud/hide_filestable-header_when_empty
Hide files list header, when theres no files to see
Diffstat (limited to 'apps/files/templates/index.php')
-rw-r--r-- | apps/files/templates/index.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index 001adb77ab5..2e88bf2dbb4 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -1,6 +1,6 @@ <div id="controls"> <?php print_unescaped($_['breadcrumb']); ?> - <div class="actions creatable <?php if (!$_['isCreatable']):?>hidden<?php endif; ?> <?php if (isset($_['files']) and count($_['files'])==0):?>emptycontent<?php endif; ?>"> + <div class="actions creatable <?php if (!$_['isCreatable']):?>hidden<?php endif; ?>"> <div id="new" class="button"> <a><?php p($l->t('New'));?></a> <ul> @@ -42,14 +42,14 @@ <input type="hidden" name="permissions" value="<?php p($_['permissions']); ?>" id="permissions"> </div> -<div id="emptycontent" <?php if (!isset($_['files']) or !$_['isCreatable'] or count($_['files']) > 0 or $_['ajaxLoad']):?>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 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 id="headerSize"><?php p($l->t('Size')); ?></th> - <th 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 --> |