Split up component groups to make it more obvious

This commit is contained in:
James Brooks 2016-02-24 13:36:27 +00:00
parent f92761437d
commit 9a3b073fc6
3 changed files with 26 additions and 10 deletions

View File

@ -83,6 +83,10 @@ body.status-page {
font-weight: 600;
}
h4 + .timeline {
margin-bottom: 10px;
}
.timeline {
.content-wrapper {
margin-top: 40px;
@ -296,7 +300,14 @@ body.status-page {
&.components {
@extend .panel;
border-color: $cachet_gray_light;
margin-bottom: 30px;
&:last-child {
margin-bottom: 30px;
}
+ .components {
margin-top: 5px;
}
p {
margin-bottom: 10px;

View File

@ -12,6 +12,9 @@
return [
// Components
'components' => [
'group' => [
'other' => 'Other Components',
],
'status' => [
1 => 'Operational',
2 => 'Performance Issues',

View File

@ -1,6 +1,6 @@
@if($component_groups->count() > 0)
@foreach($component_groups as $componentGroup)
<ul class="list-group components">
@if($component_groups->count() > 0)
@foreach($component_groups as $componentGroup)
@if($componentGroup->enabled_components->count() > 0)
<li class="list-group-item group-name">
<i class="{{ $componentGroup->collapse_class }} group-toggle"></i>
@ -17,15 +17,17 @@
@endforeach
</div>
@endif
@endforeach
@if($ungrouped_components->count() > 0)
<li class="list-group-item break"></li>
@endif
@endif
</ul>
@endforeach
@endif
@if($ungrouped_components->count() > 0)
@if($ungrouped_components->count() > 0)
<ul class="list-group components">
<li class="list-group-item group-name">
<strong>{{ trans('cachet.components.group.other') }}</strong>
</li>
@foreach($ungrouped_components as $component)
@include('partials.component', compact($component))
@endforeach
@endif
</ul>
@endif