From a9f749509b24b3892e8fd01742ccc0c32c3ba71f Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 6 Jan 2015 12:52:43 -0500 Subject: [PATCH] dashboard: Better recurring contribution rendering. * templates/CRM/Memberdashboard/Page/Element/CiviContribute.tpl: Do not render "for X installments" if the recurring contribution is indefinite. --- .../Page/Element/CiviContribute.tpl | 53 +++++++++++-------- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/templates/CRM/Memberdashboard/Page/Element/CiviContribute.tpl b/templates/CRM/Memberdashboard/Page/Element/CiviContribute.tpl index bc01d5d..08da354 100644 --- a/templates/CRM/Memberdashboard/Page/Element/CiviContribute.tpl +++ b/templates/CRM/Memberdashboard/Page/Element/CiviContribute.tpl @@ -103,29 +103,36 @@ {foreach from=$recurRows item=row key=id} - - every {$recurRows.$id.frequency_interval} {$recurRows.$id.frequency_unit} for {$recurRows.$id.installments} installments - {$recurRows.$id.recur_status} - - {if $recurRows.$id.completed} - {$recurRows.$id.completed} - {else} - 0 - {/if} - / - {if $recurRows.$id.installments} - {$recurRows.$id.installments} - {else} - ∞ - {/if} - - {$recurRows.$id.create_date|crmDate} - - - Edit - - + + + + every {$recurRows.$id.frequency_interval} + {$recurRows.$id.frequency_unit} + {if $recurRows.$id.installments } + for {$recurRows.$id.installments} installments + {/if} + + {$recurRows.$id.recur_status} + + {if $recurRows.$id.completed} + {$recurRows.$id.completed} + {else} + 0 + {/if} + / + {if $recurRows.$id.installments} + {$recurRows.$id.installments} + {else} + ∞ + {/if} + + {$recurRows.$id.create_date|crmDate} + + + Edit + + {/foreach} -- 2.25.1