Display an Incident and Component count in the sidebar.

This commit is contained in:
James Brooks
2015-03-05 19:53:32 +00:00
parent 9db90c1b81
commit b1746d1b9e
6 changed files with 39 additions and 2 deletions
+10
View File
@@ -85,6 +85,16 @@ body.dashboard {
&:hover {
text-decoration: none;
}
span {
&.label {
float: right;
margin: 6px 0;
&.label-info {
background-color: $cachet-primary;
}
}
}
}
&.sub-nav-item {
@@ -39,6 +39,7 @@
<a href="{{ route('dashboard.incidents') }}">
<i class="icon ion-android-alert"></i>
<span>{{ trans('dashboard.incidents.incidents') }}</span>
<span class="label label-info">{{ $incidentCount }}</span>
</a>
</li>
<li {{ set_active('dashboard/templates*') }}>
@@ -51,6 +52,7 @@
<a href="{{ route('dashboard.components') }}">
<i class="icons ion-outlet"></i>
<span>{{ trans('dashboard.components.components') }}</span>
<span class="label label-info">{{ $componentCount }}</span>
</a>
</li>
<li {{ set_active('dashboard/team*') }}>