Space dashboard blades out a bit better

This commit is contained in:
Kevin MacMartin 2016-12-19 21:21:14 -05:00
parent 4daba21001
commit b4523938f5
3 changed files with 8 additions and 1 deletions

View file

@ -61,6 +61,7 @@
<input class="image-upload" type="file" name="image-upload" id="image-upload" />
@set('current_image', "/uploads/$model/$id.jpg")
@if(file_exists(base_path() . '/public' . $current_image))
<div class="current-image" style="background-image: url({{ $current_image }});" />
@else

View file

@ -4,5 +4,9 @@
])
@foreach($menu as $menu_item)
<li class="{{ $menu_class }}"><a href="{{ url('/dashboard/' . $menu_item[1]) }}">{{ $menu_item[0] }}</a></li>
<li class="{{ $menu_class }}">
<a href="{{ url('/dashboard/' . $menu_item[1]) }}">
{{ $menu_item[0] }}
</a>
</li>
@endforeach

View file

@ -17,12 +17,14 @@
<ul class="nav navbar-nav navbar-right">
@if (Auth::guest())
<li><a href="{{ url('/login') }}">Login</a></li>
@if(env('REGISTRATION', false))
<li><a href="{{ url('/register') }}">Register</a></li>
@endif
@else
@set('menu_class', 'nav-item')
@include('dashboard.elements.menu')
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
{{ Auth::user()->name }} <span class="caret"></span>