dashboard: Better recurring contribution rendering.
authorDavid Thompson <davet@gnu.org>
Tue, 6 Jan 2015 17:52:43 +0000 (12:52 -0500)
committerDavid Thompson <davet@gnu.org>
Tue, 6 Jan 2015 17:52:43 +0000 (12:52 -0500)
* templates/CRM/Memberdashboard/Page/Element/CiviContribute.tpl: Do not
  render "for X installments" if the recurring contribution is
  indefinite.

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

index bc01d5de6b6afd006e9b48d08341428fce881b9d..08da35486da4eed14743820ac927b67c8862e9d8 100644 (file)
                     <th></th>
                 </tr>
                 {foreach from=$recurRows item=row key=id}
-                    <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}
-                            {$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"
-                                          q="reset=1&crid=`$recurRows.$id.id`"}">
-                           Edit
-                         </a>
-                       </td>
+                  <tr class="{cycle values="odd-row,even-row"}">
+                    <td>
+                      <label>{$recurRows.$id.amount|crmMoney}</label>
+                      every {$recurRows.$id.frequency_interval}
+                      {$recurRows.$id.frequency_unit}
+                      {if $recurRows.$id.installments }
+                        for {$recurRows.$id.installments} installments
+                      {/if}
+                    </td>
+                    <td>{$recurRows.$id.recur_status}</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"
+                        q="reset=1&crid=`$recurRows.$id.id`"}">
+                        Edit
+                      </a>
+                    </td>
                     </tr>
                 {/foreach}
             </table>