From 0780e404a80af10989a949edcd16ac9b73f6d67f Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 5 Dec 2016 20:19:15 +0000 Subject: [PATCH] Simplify the incidents templates --- resources/views/partials/incident.blade.php | 36 -------------------- resources/views/partials/incidents.blade.php | 34 +++++++++++++++++- 2 files changed, 33 insertions(+), 37 deletions(-) delete mode 100644 resources/views/partials/incident.blade.php diff --git a/resources/views/partials/incident.blade.php b/resources/views/partials/incident.blade.php deleted file mode 100644 index 4b11a063..00000000 --- a/resources/views/partials/incident.blade.php +++ /dev/null @@ -1,36 +0,0 @@ -
-
- @if($current_user) - - @endif - @if($incident->component) - {{ $incident->component->name }} - @endif - {{ $incident->name }}{{ $incident->isScheduled ? trans("cachet.incidents.scheduled_at", ["timestamp" => $incident->scheduled_at_diff]) : null }} -
- - @if($with_link) - - @else - - @endif - -
-
- {!! $incident->formatted_message !!} -
- @if($incident->updates->count()) -
- @foreach($incident->updates as $update) - - {{ Str::limit($update->raw_message, 20) }} - {{ $update->created_at_diff }} - - - @endforeach -
- @endif -
diff --git a/resources/views/partials/incidents.blade.php b/resources/views/partials/incidents.blade.php index a668e886..8428e72d 100644 --- a/resources/views/partials/incidents.blade.php +++ b/resources/views/partials/incidents.blade.php @@ -10,7 +10,39 @@
- @include('partials.incident', ['incident' => $incident, 'with_link' => true]) +
+
+ @if($current_user) + + @endif + @if($incident->component) + {{ $incident->component->name }} + @endif + {{ $incident->name }}{{ $incident->isScheduled ? trans("cachet.incidents.scheduled_at", ["timestamp" => $incident->scheduled_at_diff]) : null }} +
+ + + +
+
+ {!! $incident->formatted_message !!} +
+ @if($incident->updates->count()) +
+ @foreach($incident->updates as $update) + + {{ Str::limit($update->raw_message, 20) }} + {{ $update->created_at_diff }} + + + @endforeach +
+ @endif +
+