Break up incidents on the same day

This commit is contained in:
James Brooks
2014-11-19 14:41:04 +00:00
parent 132c18d65a
commit 189890154e
6 changed files with 22 additions and 2 deletions

View File

@@ -10,10 +10,13 @@
<p>No incidents reported.</p>
@endunless
@foreach($incidents as $incident)
@foreach($incidents as $incidentID => $incident)
<span class='badge badge-{{ $incident->color }}'><i class='glyphicon {{ $incident->icon }}'></i></span>
<h4>{{ $incident->name }}</h4>
<time>{{ $incident->created_at->format('H:i:s A') }} {{ Config::get('app.timezone') }}</time>
<p>{{ $incident->message }}</p>
@if($incidentID < ($incident->count() - 1))
<hr />
@endif
@endforeach
</li>

View File

@@ -3,6 +3,11 @@ body {
font-size: 1.4em;
}
hr {
margin-top: 10px;
margin-bottom: 10px;
}
.alert {
&.alert-success {
background-color: #8DCD8D;

View File

@@ -2,6 +2,10 @@ body {
color: #333333;
font-size: 1.4em; }
hr {
margin-top: 10px;
margin-bottom: 10px; }
.alert.alert-success {
background-color: #8DCD8D;
border-color: #4cae4c;

View File

@@ -2,6 +2,10 @@ body {
color: #333333;
font-size: 1.4em; }
hr {
margin-top: 10px;
margin-bottom: 10px; }
.alert.alert-success {
background-color: #8DCD8D;
border-color: #4cae4c;

View File

@@ -1,3 +1,3 @@
{
"css/application.css": "css/application-bb5fc830.css"
"css/application.css": "css/application-c3c6ec34.css"
}

View File

@@ -2,6 +2,10 @@ body {
color: #333333;
font-size: 1.4em; }
hr {
margin-top: 10px;
margin-bottom: 10px; }
.alert.alert-success {
background-color: #8DCD8D;
border-color: #4cae4c;