From 0c4aeb31b8f42bb79346d2ef546f0e7a71a97fc8 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Tue, 6 Aug 2013 18:34:31 +0200 Subject: [PATCH] [+] BO : Better action list button --- .../template/helpers/list/list_content.tpl | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/admin-dev/themes/default/template/helpers/list/list_content.tpl b/admin-dev/themes/default/template/helpers/list/list_content.tpl index 7ed0fbe27..2ae134ec7 100644 --- a/admin-dev/themes/default/template/helpers/list/list_content.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_content.tpl @@ -136,25 +136,25 @@ {/if} {if $has_actions} -
- {foreach $actions AS $key => $action} - {if isset($tr.$action)} - {if $key==0} - - {$tr.$action} - - +
+ + {assign var='action' value=$actions[0]} + {$tr.$action} + + {if count($actions) > 1} + {/if} - {/foreach} -
{/if}