add mobile view links; closes #44

This commit is contained in:
Dane Everitt 2016-01-25 20:50:44 -05:00
parent 4a7fdaedde
commit 4030eb4994
2 changed files with 74 additions and 2 deletions

View file

@ -53,6 +53,47 @@
<a class="navbar-brand" href="/">{{ Settings::get('company') }}</a>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
@section('navbar-links')
<ul class="nav navbar-nav hidden-md hidden-lg">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Management <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/admin">Admin Index</a></li>
<li><a href="/admin/settings">General Settings</a></li>
<li><a href="/admin/api">API Management</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Accounts <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/admin/accounts">Find Account</a></li>
<li><a href="/admin/accounts/new">New Account</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Servers <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/admin/servers">Find Server</a></li>
<li><a href="/admin/servers/new">New Server</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Nodes <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/admin/nodes">List Nodes</a></li>
<li><a href="/admin/locations">Manage Locations</a></li>
<li><a href="/admin/nodes/new">New Node</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Services <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/admin/services">List Services</a></li>
<li><a href="/admin/services/new">Add Service</a></li>
</ul>
</li>
</ul>
@show
@section('right-nav')
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
@ -71,8 +112,9 @@
</ul>
</li>
<li class="hidden-xs"><a href="/"><i class="fa fa-server"></i></a></li>
<li class="visible-xs"><a href="/"><i class="fa fa-server"></i> Server View</a></li>
<li class="hidden-xs"><a href="/auth/logout"><i class="fa fa-power-off"></i></a></li>
<li class="visible-xs"><a href="/auth/logout"><i class="fa fa-power-off"></i> Logout</a></li>
</ul>
@show
</div>

View file

@ -176,6 +176,35 @@
</ul>
@endif
@show
@section('navbar-links')
<ul class="nav navbar-nav hidden-md hidden-lg">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ trans('pagination.sidebar.account_controls') }} <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/account">{{ trans('pagination.sidebar.account_settings') }}</a></li>
<li><a href="/account/totp">{{ trans('pagination.sidebar.account_security') }}</a></li>
<li><a href="/index">{{ trans('pagination.sidebar.servers') }}</a></li>
</ul>
</li>
@if (isset($server->name) && isset($node->name))
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ trans('pagination.sidebar.server_controls') }} <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="server-index"><a href="/server/{{ $server->uuidShort }}">{{ trans('pagination.sidebar.overview') }}</a></li>
@can('list-files', $server)<li class="server-files"><a href="/server/{{ $server->uuidShort }}/files">{{ trans('pagination.sidebar.files') }}</a></li>@endcan
@can('list-subusers', $server)<li class="server-users"><a href="/server/{{ $server->uuidShort }}/users">{{ trans('pagination.sidebar.subusers') }}</a></li>@endcan
@can('view-sftp', $server)
<li class="server-settings"><a href="/server/{{ $server->uuidShort }}/settings">{{ trans('pagination.sidebar.manage') }}</a></li>
@else
@can('view-startup', $server)
<li class="server-settings"><a href="/server/{{ $server->uuidShort }}/settings">{{ trans('pagination.sidebar.manage') }}</a></li>
@endcan
@endcan
</ul>
</li>
@endif
</ul>
@show
@section('right-nav')
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
@ -195,9 +224,10 @@
</li>
@if (null !== Auth::user() && Auth::user()->root_admin == 1)
<li class="hidden-xs"><a href="/admin/"><i class="fa fa-cogs"></i></a></li>
<li class="visible-xs"><a href="/admin/"><i class="fa fa-cogs"></i> Admin Control Panel</a></li>
@endif
<li class="hidden-xs"><a href="/auth/logout"><i class="fa fa-power-off"></i></a></li>
<li class="visible-xs"><a href="/auth/logout"><i class="fa fa-power-off"></i> Logout</a></li>
</ul>
@show
</div>