implements a modular view system
This commit is contained in:
5
resources/views/partials/modules/components.blade.php
Normal file
5
resources/views/partials/modules/components.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
@if(!$component_groups->isEmpty() || !$ungrouped_components->isEmpty())
|
||||
<div class="section-components">
|
||||
@include('partials.components')
|
||||
</div>
|
||||
@endif
|
||||
3
resources/views/partials/modules/messages.blade.php
Normal file
3
resources/views/partials/modules/messages.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="section-messages">
|
||||
@include('dashboard.partials.errors')
|
||||
</div>
|
||||
5
resources/views/partials/modules/metrics.blade.php
Normal file
5
resources/views/partials/modules/metrics.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
@if($display_metrics && $app_graphs)
|
||||
<div class="section-metrics">
|
||||
@include('partials.metrics')
|
||||
</div>
|
||||
@endif
|
||||
5
resources/views/partials/modules/scheduled.blade.php
Normal file
5
resources/views/partials/modules/scheduled.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
@if(!$scheduled_maintenance->isEmpty())
|
||||
<div class="section-scheduled">
|
||||
@include('partials.schedule')
|
||||
</div>
|
||||
@endif
|
||||
3
resources/views/partials/modules/status.blade.php
Normal file
3
resources/views/partials/modules/status.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="section-status">
|
||||
<div class="alert alert-{{ $system_status }}">{{ $system_message }}</div>
|
||||
</div>
|
||||
27
resources/views/partials/modules/timeline.blade.php
Normal file
27
resources/views/partials/modules/timeline.blade.php
Normal file
@@ -0,0 +1,27 @@
|
||||
@if($days_to_show > 0)
|
||||
<div class="section-timeline">
|
||||
<h1>{{ trans('cachet.incidents.past') }}</h1>
|
||||
@foreach($all_incidents as $date => $incidents)
|
||||
@include('partials.incidents', [compact($date), compact($incidents)])
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<nav>
|
||||
<ul class="pager">
|
||||
@if($can_page_backward)
|
||||
<li class="previous">
|
||||
<a href="{{ route('status-page') }}?start_date={{ $previous_date }}" class="links">
|
||||
<span aria-hidden="true">←</span> {{ trans('cachet.incidents.previous_week') }}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@if($can_page_forward)
|
||||
<li class="next">
|
||||
<a href="{{ route('status-page') }}?start_date={{ $next_date }}" class="links">
|
||||
{{ trans('cachet.incidents.next_week') }} <span aria-hidden="true">→</span>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</nav>
|
||||
@endif
|
||||
Reference in New Issue
Block a user