mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-08 23:24:07 -06:00
Catch broken journals.
This commit is contained in:
parent
f9750a64f8
commit
11280e473d
@ -17,6 +17,18 @@
|
|||||||
<th><i class="fa fa-fw fa-rotate-right" title="Recurring transaction"></i></th>
|
<th><i class="fa fa-fw fa-rotate-right" title="Recurring transaction"></i></th>
|
||||||
</tr>
|
</tr>
|
||||||
@foreach($journals as $journal)
|
@foreach($journals as $journal)
|
||||||
|
@if(!isset($journal->transactions[1]) || !isset($journal->transactions[0]))
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="btn-group btn-group-xs">
|
||||||
|
<a href="{{route('transactions.delete',$journal->id)}}" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span></a>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td> </td>
|
||||||
|
<td>{{{$journal->description}}}</td>
|
||||||
|
<td colspan="7"><em>Invalid journal: Found {{$journal->transactions()->count()}} transaction(s)</td>
|
||||||
|
</tr>
|
||||||
|
@else
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div class="btn-group btn-group-xs">
|
<div class="btn-group btn-group-xs">
|
||||||
@ -91,6 +103,8 @@
|
|||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
@endif
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user