mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Use $loop variable
This commit is contained in:
parent
9a56625f09
commit
ecb05d588f
@ -1,8 +1,8 @@
|
||||
<h4>{{ formatted_date($date) }}</h4>
|
||||
<div class="timeline">
|
||||
<div class="content-wrapper">
|
||||
@forelse($incidents as $incidentID => $incident)
|
||||
<div class="moment {{ $incidentID === 0 ? 'first' : null }}">
|
||||
@forelse($incidents as $incident)
|
||||
<div class="moment {{ $loop->first ? 'first' : null }}">
|
||||
<div class="row event clearfix">
|
||||
<div class="col-sm-1">
|
||||
<div class="status-icon status-{{ $incident->latest_human_status }}" data-toggle="tooltip" title="{{ $incident->latest_human_status }}" data-placement="left">
|
||||
|
@ -18,8 +18,8 @@
|
||||
@if($incident->updates)
|
||||
<div class="timeline">
|
||||
<div class="content-wrapper">
|
||||
@foreach ($incident->updates as $index => $update)
|
||||
<div class="moment {{ $index === 0 ? 'first' : null }}" id="update-{{ $update->id }}">
|
||||
@foreach ($incident->updates as $update)
|
||||
<div class="moment {{ $loop->first ? 'first' : null }}" id="update-{{ $update->id }}">
|
||||
<div class="row event clearfix">
|
||||
<div class="col-sm-1">
|
||||
<div class="status-icon status-{{ $update->status }}" data-toggle="tooltip" title="{{ $update->human_status }}" data-placement="left">
|
||||
|
Loading…
x
Reference in New Issue
Block a user