Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroennoten committed Apr 19, 2016
2 parents 4d7eca2 + f65941d commit ab19fbf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
17 changes: 16 additions & 1 deletion config/adminlte.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@
[
'text' => 'Pages',
'url' => 'admin/pages',
'icon' => 'file'
'icon' => 'file',
'label' => 4,
'label_color' => 'success',
],
'ACCOUNT SETTINGS',
[
Expand Down Expand Up @@ -133,6 +135,19 @@
],
],
],
'LABELS',
[
'text' => 'Important',
'icon_color' => 'red',
],
[
'text' => 'Warning',
'icon_color' => 'yellow',
],
[
'text' => 'Information',
'icon_color' => 'aqua',
],
],

];
6 changes: 4 additions & 2 deletions resources/views/partials/menu-item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
@else
<li {{ isset($item['submenu']) ? 'class="treeview"' : '' }}>
<a href="{{ isset($item['url']) ? url($item['url']) : '#' }}">
<i class="fa fa-fw fa-{{ $item['icon'] or 'circle-o' }}"></i>
<i class="fa fa-fw fa-{{ $item['icon'] or 'circle-o' }} {{ isset($item['icon_color']) ? 'text-' . $item['icon_color'] : '' }}"></i>
<span>{{ $item['text'] }}</span>
@if (isset($item['submenu']))
@if (isset($item['label']))
<span class="label label-{{ $item['label_color'] or 'primary' }} pull-right">{{ $item['label'] }}</span>
@elseif (isset($item['submenu']))
<i class="fa fa-angle-left pull-right"></i>
@endif
</a>
Expand Down

0 comments on commit ab19fbf

Please sign in to comment.