mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 11:20:39 -06:00
Menu responds way better.
This commit is contained in:
parent
affa9014d2
commit
87044e6b8e
@ -30,6 +30,10 @@
|
||||
<!-- /.dropdown -->
|
||||
</ul>
|
||||
<!-- /.navbar-top-links -->
|
||||
<?php
|
||||
$r = Route::getCurrentRoute()->getName();
|
||||
|
||||
?>
|
||||
|
||||
<div class="navbar-default sidebar" role="navigation">
|
||||
<div class="sidebar-nav navbar-collapse">
|
||||
@ -46,19 +50,23 @@
|
||||
<!-- /input-group -->
|
||||
</li>
|
||||
<li>
|
||||
<a class="active" href="{{route('index')}}"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
|
||||
<a @if($r == 'index') class="active" @endif href="{{route('index')}}"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
|
||||
</li>
|
||||
<li>
|
||||
<li
|
||||
@if(!(strpos($r,'accounts') === false))
|
||||
class="active"
|
||||
@endif
|
||||
>
|
||||
<a href="#"><i class="fa fa-credit-card fa-fw"></i> Accounts<span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-second-level">
|
||||
<li>
|
||||
<a href="{{route('accounts.asset')}}"><i class="fa fa-money fa-fw"></i> Asset accounts</a>
|
||||
<a @if($r == 'accounts.asset') class="active" @endif href="{{route('accounts.asset')}}"><i class="fa fa-money fa-fw"></i> Asset accounts</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{route('accounts.expense')}}"><i class="fa fa-shopping-cart fa-fw"></i> Expense accounts</a>
|
||||
<a @if($r == 'accounts.expense') class="active" @endif href="{{route('accounts.expense')}}"><i class="fa fa-shopping-cart fa-fw"></i> Expense accounts</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{route('accounts.revenue')}}"><i class="fa fa-download fa-fw"></i> Revenue accounts</a>
|
||||
<a @if($r == 'accounts.revenue') class="active" @endif href="{{route('accounts.revenue')}}"><i class="fa fa-download fa-fw"></i> Revenue accounts</a>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- /.nav-second-level -->
|
||||
@ -117,9 +125,11 @@
|
||||
<li>
|
||||
<a href="{{route('transactions.create','transfer')}}"><i class="fa fa-arrows-h fa-fw"></i> Transfer</a>
|
||||
</li>
|
||||
<!--
|
||||
<li>
|
||||
<a href="{{route('accounts.create')}}"><i class="fa fa-money fa-fw"></i> Account</a>
|
||||
</li>
|
||||
-->
|
||||
<li>
|
||||
<a href="{{route('budgets.create')}}"><i class="fa fa-tasks fa-fw"></i> Budget</a>
|
||||
</li>
|
||||
|
Loading…
Reference in New Issue
Block a user