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
+4 -1
View File
@@ -10,10 +10,13 @@
<p>No incidents reported.</p> <p>No incidents reported.</p>
@endunless @endunless
@foreach($incidents as $incident) @foreach($incidents as $incidentID => $incident)
<span class='badge badge-{{ $incident->color }}'><i class='glyphicon {{ $incident->icon }}'></i></span> <span class='badge badge-{{ $incident->color }}'><i class='glyphicon {{ $incident->icon }}'></i></span>
<h4>{{ $incident->name }}</h4> <h4>{{ $incident->name }}</h4>
<time>{{ $incident->created_at->format('H:i:s A') }} {{ Config::get('app.timezone') }}</time> <time>{{ $incident->created_at->format('H:i:s A') }} {{ Config::get('app.timezone') }}</time>
<p>{{ $incident->message }}</p> <p>{{ $incident->message }}</p>
@if($incidentID < ($incident->count() - 1))
<hr />
@endif
@endforeach @endforeach
</li> </li>
+5
View File
@@ -3,6 +3,11 @@ body {
font-size: 1.4em; font-size: 1.4em;
} }
hr {
margin-top: 10px;
margin-bottom: 10px;
}
.alert { .alert {
&.alert-success { &.alert-success {
background-color: #8DCD8D; background-color: #8DCD8D;
@@ -2,6 +2,10 @@ body {
color: #333333; color: #333333;
font-size: 1.4em; } font-size: 1.4em; }
hr {
margin-top: 10px;
margin-bottom: 10px; }
.alert.alert-success { .alert.alert-success {
background-color: #8DCD8D; background-color: #8DCD8D;
border-color: #4cae4c; border-color: #4cae4c;
+4
View File
@@ -2,6 +2,10 @@ body {
color: #333333; color: #333333;
font-size: 1.4em; } font-size: 1.4em; }
hr {
margin-top: 10px;
margin-bottom: 10px; }
.alert.alert-success { .alert.alert-success {
background-color: #8DCD8D; background-color: #8DCD8D;
border-color: #4cae4c; border-color: #4cae4c;
+1 -1
View File
@@ -1,3 +1,3 @@
{ {
"css/application.css": "css/application-bb5fc830.css" "css/application.css": "css/application-c3c6ec34.css"
} }
+4
View File
@@ -2,6 +2,10 @@ body {
color: #333333; color: #333333;
font-size: 1.4em; } font-size: 1.4em; }
hr {
margin-top: 10px;
margin-bottom: 10px; }
.alert.alert-success { .alert.alert-success {
background-color: #8DCD8D; background-color: #8DCD8D;
border-color: #4cae4c; border-color: #4cae4c;