additional fixes
[civicrm-core.git] / templates / CRM / Contribute / Page / ContributionSoft.tpl
index 3723de3d708668e50def5f724c65b26b51ea1bf8..68c8363495b6ca46e683fc361be62157c64572e3 100644 (file)
 {if $context neq 'membership'}
     <table class="form-layout-compressed">
         <tr>
+          {if $softCreditTotals.amount}
             <th class="contriTotalLeft">{ts}Total Soft Credits{/ts} - {$softCreditTotals.amount|crmMoney:$softCreditTotals.currency}</th>
             <th class="right" width="10px"> &nbsp; </th>
             <th class="right contriTotalRight"> &nbsp; {ts}Avg Soft Credits{/ts} - {$softCreditTotals.avg|crmMoney:$softCreditTotals.currency}</th>
-            
-            {if $softCreditTotals.cancelAmount}
+          {/if}
+          {if $softCreditTotals.cancelAmount}
             <th class="right contriTotalRight"> &nbsp; {ts}Total Cancelled Soft Credits{/ts} - {$softCreditTotals.cancelAmount|crmMoney:$softCreditTotals.currency}</th>
-            {/if}
-            
+          {/if}
         </tr>
     </table>
     <p></p>