dashboard: Improve rendering of installments for recurring contributions.
authorDavid Thompson <davet@gnu.org>
Tue, 6 Jan 2015 17:27:55 +0000 (12:27 -0500)
committerDavid Thompson <davet@gnu.org>
Tue, 6 Jan 2015 17:27:55 +0000 (12:27 -0500)
* templates/CRM/Memberdashboard/Page/Element/CiviContribute.tpl: Render
  an infinity symbol for contributions with unlimited installments.

templates/CRM/Memberdashboard/Page/Element/CiviContribute.tpl

index f59c981f4e7f46a5bf695e72896ca16d3e87ef28..bc01d5de6b6afd006e9b48d08341428fce881b9d 100644 (file)
                     <tr class="{cycle values="odd-row,even-row"}">
                         <td><label>{$recurRows.$id.amount|crmMoney}</label>  every {$recurRows.$id.frequency_interval} {$recurRows.$id.frequency_unit} for {$recurRows.$id.installments} installments</td>
                         <td>{$recurRows.$id.recur_status}</td>
-                        <td>{if $recurRows.$id.completed}<a href="{$recurRows.$id.link}">{$recurRows.$id.completed}/{$recurRows.$id.installments}</a>
-                            {else}0/{$recurRows.$id.installments} {/if}</td>
+                        <td>
+                          {if $recurRows.$id.completed}
+                            {$recurRows.$id.completed}
+                          {else}
+                            0
+                          {/if}
+                          /
+                          {if $recurRows.$id.installments}
+                            {$recurRows.$id.installments}
+                          {else}
+                            &infin;
+                          {/if}
+                        </td>
                        <td>{$recurRows.$id.create_date|crmDate}</td>
                        <td>
                          <a href="{crmURL p="civicrm/contribute/updatebilling"