Move sections of HTML into imports directory.
This commit is contained in:
12
app/views/imports/components.blade.php
Normal file
12
app/views/imports/components.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@if($components->count() > 0)
|
||||
<div class='page-header'>
|
||||
<ul class='list-group components'>
|
||||
@foreach($components as $component)
|
||||
<li class='list-group-item component '>
|
||||
<h4>{{ $component->name }} <small class='{{ $component->color }}'>{{ $component->humanStatus }}</small></h4>
|
||||
<p>{{ $component->description }}</p>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
6
app/views/imports/support-link.blade.php
Normal file
6
app/views/imports/support-link.blade.php
Normal file
@@ -0,0 +1,6 @@
|
||||
@if(Setting::get('show_support'))
|
||||
<hr />
|
||||
<div class='footer'>
|
||||
<p>{{ Setting::get('app_name') }} Status Page is powered by <a href='https://github.com/jbrooksuk/Cachet' target="_blank">Cachet</a>.</p>
|
||||
</div>
|
||||
@endif
|
||||
@@ -7,27 +7,11 @@
|
||||
<p>You're logged in. This will be a link to the Dashboard.</p>
|
||||
@endif
|
||||
|
||||
@if($components->count() > 0)
|
||||
<div class='page-header'>
|
||||
<ul class='list-group components'>
|
||||
@foreach($components as $component)
|
||||
<li class='list-group-item component '>
|
||||
<h4>{{ $component->name }} <small class='{{ $component->color }}'>{{ $component->humanStatus }}</small></h4>
|
||||
<p>{{ $component->description }}</p>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
@include('imports.components')
|
||||
|
||||
@for($i=0; $i <= 7; $i++)
|
||||
@include('incident', array('i', $i))
|
||||
@include('imports.incident', array('i', $i))
|
||||
@endfor
|
||||
|
||||
@if(Setting::get('show_support'))
|
||||
<hr />
|
||||
<div class='footer'>
|
||||
<p>{{ Setting::get('app_name') }} Status Page is powered by <a href='https://github.com/jbrooksuk/Cachet' target="_blank">Cachet</a>.</p>
|
||||
</div>
|
||||
@endif
|
||||
@include('imports.support-link')
|
||||
@stop
|
||||
|
||||
Reference in New Issue
Block a user