Files
cachet-docker/resources/views/index.blade.php
Adam Lavin 4c4a32da3d Refactored the way incidents are pulled out of the database
Incidents are now pulled out via the database, grouped together via php, then missing days are added to the data
2015-04-20 23:28:53 +01:00

59 lines
1.9 KiB
PHP

@extends('layout.master')
@section('content')
@if($bannerImage = Setting::get('app_banner'))
<div class="row app-banner">
<div class="col-md-12 text-center">
<?php $bannerType = Setting::get('app_banner_type') ?>
@if($appUrl = Setting::get('app_domain'))
<a href="{{ $appUrl }}"><img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive"></a>
@else
<img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive">
@endif
</div>
</div>
@endif
<div class="alert alert-{{ $systemStatus }}">{{ $systemMessage }}</div>
@if($aboutApp)
<div class="about-app">
<h1>{{ trans('cachet.about_this_site') }}</h1>
<p>{{ $aboutApp }}</p>
</div>
@endif
@include('partials.components')
@if($displayMetrics && Setting::get('display_graphs'))
@include('partials.metrics')
@endif
@if(!$scheduledMaintenance->isEmpty())
@include('partials.schedule')
@endif
<h1>{{ trans('cachet.incidents.past') }}</h1>
@foreach($allIncidents as $date => $incidents)
@include('partials.incidents', compact('date', 'incidents'))
@endforeach
<hr>
<nav>
<ul class="pager">
<li class="previous">
<a href="{{ route('status-page') }}?start_date={{ $previousDate }}">
<span aria-hidden="true">&larr;</span> {{ trans('cachet.incidents.previous_week') }}
</a>
</li>
@if($canPageForward)
<li class="next">
<a href="{{ route('status-page') }}?start_date={{ $nextDate }}">
{{ trans('cachet.incidents.next_week') }} <span aria-hidden="true">&rarr;</span>
</a>
</li>
@endif
</ul>
</nav>
@stop