From 4ce43abd92167caa9040f1fa38edeccfa85ba501 Mon Sep 17 00:00:00 2001 From: Megan Watson Date: Tue, 23 Sep 2008 08:01:41 +0000 Subject: [PATCH] KTS-3710 "Hardcoded on-screen text should not show for bulk actions if there is no files or folders to be listed." Fixed. The text will only display if there are failed documents or folders. --- templates/ktcore/bulk_action_listing.smarty | 95 ++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------- 1 file changed, 48 insertions(+), 47 deletions(-) diff --git a/templates/ktcore/bulk_action_listing.smarty b/templates/ktcore/bulk_action_listing.smarty index 9014386..8ff1d71 100644 --- a/templates/ktcore/bulk_action_listing.smarty +++ b/templates/ktcore/bulk_action_listing.smarty @@ -1,54 +1,55 @@

get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{$context->getDisplayName()}

+{if count($failed.folders) || (count($failed.documents))}

{i18n}The following list shows documents and folders in your list which cannot be acted on by this bulk action{/i18n}:

-{if count($failed.folders)} - - - - - - - - - - - - -{foreach from=$failed.folders item=item} - - - - -{/foreach} - -
{i18n}Folders{/i18n}
{i18n}Name{/i18n}{i18n}Reason for failure{/i18n}
{$item.0|sanitize}{$item.1|sanitize}
-
-{/if} - -{if (count($failed.documents))} - - - - - - - - - - - - - - -{foreach from=$failed.documents item=item} - - - - -{/foreach} - -
{i18n}Documents{/i18n}
{i18n}Name{/i18n}{i18n}Reason for failure{/i18n}
{$item.0|sanitize}{$item.1|sanitize}
+ {if count($failed.folders)} + + + + + + + + + + + + + {foreach from=$failed.folders item=item} + + + + + {/foreach} + +
{i18n}Folders{/i18n}
{i18n}Name{/i18n}{i18n}Reason for failure{/i18n}
{$item.0|sanitize}{$item.1|sanitize}
+
+ {/if} + + {if (count($failed.documents))} + + + + + + + + + + + + + + {foreach from=$failed.documents item=item} + + + + + {/foreach} + +
{i18n}Documents{/i18n}
{i18n}Name{/i18n}{i18n}Reason for failure{/i18n}
{$item.0|sanitize}{$item.1|sanitize}
+ {/if} {/if} -- libgit2 0.21.4