mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	
		
			
	
	
		
			36 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
		
		
			
		
	
	
			36 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
|   | <table class="table table-hover table-responsive">
 | ||
|  |     <tr>
 | ||
|  |         {% if showPiggyBank %}
 | ||
|  |             <th>{{ trans('list.piggy_bank') }}</th>
 | ||
|  |         {% endif %}
 | ||
|  |         <th>{{ trans('list.date') }}</th>
 | ||
|  |         <th>{{ trans('list.amount') }}</th>
 | ||
|  |     </tr>
 | ||
|  |     {% for event in events %}
 | ||
|  |         <tr>
 | ||
|  |             {% if showPiggyBank %}
 | ||
|  |                 <td>
 | ||
|  |                     <a href="{{ route('piggy-banks.show',event.piggyBank.id) }}">{{ event.piggyBank.name }}</a>
 | ||
|  |                 </td>
 | ||
|  |             {% endif %}
 | ||
|  |             <td>
 | ||
|  |                 {% if event.transaction_journal_id %}
 | ||
|  |                     <a href="{{ route('transactions.show',event.transactionJournal.transaction_group_id) }}"
 | ||
|  |                        title="{{ event.transactionJournal.description }}">{{ event.date.formatLocalized(monthAndDayFormat) }}</a>
 | ||
|  |                 {% else %}
 | ||
|  |                     {{ event.date.formatLocalized(monthAndDayFormat) }}
 | ||
|  |                 {% endif %}
 | ||
|  |             </td>
 | ||
|  | 
 | ||
|  |             <td style="text-align: right;">
 | ||
|  | 
 | ||
|  |                 {% if event.amount < 0 %}
 | ||
|  |                     <span class="text-danger">{{ trans('firefly.removed_amount', {amount: formatAmountByAccount(event.piggyBank.account, event.amount, false)})|raw }}</span>
 | ||
|  |                 {% else %}
 | ||
|  |                     <span class="text-success">{{ trans('firefly.added_amount', {amount: formatAmountByAccount(event.piggyBank.account, event.amount, false)})|raw }}</span>
 | ||
|  |                 {% endif %}
 | ||
|  |             </td>
 | ||
|  |         </tr>
 | ||
|  |     {% endfor %}
 | ||
|  | </table>
 |