From 29f23dbd7fec17d5d62586785d8ca3eec532f5a5 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Fri, 15 Mar 2013 12:55:31 +0100 Subject: [PATCH 2] Bug 9780: Don't show comma at the end of the line Little improvement : This patch uses loop.last in detail.tt template to suppress useless comma. --- .../prog/en/modules/catalogue/detail.tt | 24 +++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index bcf56a4..927d922 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -178,9 +178,11 @@ function verify_images() { [% countorders %] active order(s) in basket(s) [% FOREACH basketo IN basketsorders %] [% IF ( CAN_user_acquisition_order_manage ) %] - #[% basketo %], + #[% basketo %] + [% UNLESS loop.last %],[% END %] [% ELSE %] - [% basketo %], + [% basketo %] + [% UNLESS loop.last %],[% END %] [% END %] [% END %] [% END %] @@ -191,9 +193,11 @@ function verify_images() { [% countdeletedorders %] deleted order(s) in basket(s) [% FOREACH basketdo IN basketsdeletedorders %] [% IF ( CAN_user_acquisition_order_manage ) %] - #[% basketdo %], + #[% basketdo %] + [% UNLESS loop.last %],[% END %] [% ELSE %] - [% basketdo %], + [% basketdo %] + [% UNLESS loop.last %],[% END %] [% END %] [% END %] [% END %] @@ -340,9 +344,11 @@ function verify_images() { [% countorders %] active order(s) in basket(s) [% FOREACH basketo IN basketsorders %] [% IF ( CAN_user_acquisition_order_manage ) %] - #[% basketo %], + #[% basketo %] + [% UNLESS loop.last %],[% END %] [% ELSE %] - [% basketo %], + [% basketo %] + [% UNLESS loop.last %],[% END %] [% END %] [% END %] [% END %] @@ -353,9 +359,11 @@ function verify_images() { [% countdeletedorders %] deleted order(s) in basket(s) [% FOREACH basketdo IN basketsdeletedorders %] [% IF ( CAN_user_acquisition_order_manage ) %] - #[% basketdo %], + #[% basketdo %] + [% UNLESS loop.last %],[% END %] [% ELSE %] - [% basketdo %], + [% basketdo %] + [% UNLESS loop.last %],[% END %] [% END %] [% END %] [% END %] -- 1.7.9.5