From de5e015d7a7fa4518d1d81535f788a7cea9a7402 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 20 Nov 2008 22:36:53 +0000 Subject: [PATCH] ENHANCEMENT If there are no files in a folder in AssetAdmin, show a message git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@66323 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- templates/Includes/AssetTableField.ss | 63 ++++++++++++++++----------- 1 file changed, 37 insertions(+), 26 deletions(-) diff --git a/templates/Includes/AssetTableField.ss b/templates/Includes/AssetTableField.ss index 8a7fe7f1..318c03d7 100755 --- a/templates/Includes/AssetTableField.ss +++ b/templates/Includes/AssetTableField.ss @@ -16,34 +16,45 @@ - <% control Items %> - - -
- Drag -
- - <% if Markable %>$MarkingCheckbox<% end_if %> - <% control Fields %> - $Value - <% end_control %> - <% if Can(show) %> - - <% _t('SHOW', 'Show asset') %> - - <% end_if %> - <% if Can(edit) %> - - <% _t('EDIT', 'Edit asset') %> + <% if Items %> + <% control Items %> + + +
+ Drag +
- <% end_if %> - <% if Can(delete) %> - - <% _t('DELFILE', 'Delete this file') %> - - <% end_if %> + <% if Markable %>$MarkingCheckbox<% end_if %> + <% control Fields %> + $Value + <% end_control %> + <% if Can(show) %> + + <% _t('SHOW', 'Show asset') %> + + <% end_if %> + <% if Can(edit) %> + + <% _t('EDIT', 'Edit asset') %> + + <% end_if %> + <% if Can(delete) %> + + <% _t('DELFILE', 'Delete this file') %> + + <% end_if %> + + <% end_control %> + <% else %> + +   + <% if Markable %> <% end_if %> + No $NamePlural found + <% if Can(show) %> <% end_if %> + <% if Can(edit) %> <% end_if %> + <% if Can(delete) %> <% end_if %> - <% end_control %> + <% end_if %> \ No newline at end of file