1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for client portal header navigation

This commit is contained in:
Hillel Coren 2016-06-26 19:48:15 +03:00
parent d71cf4dd49
commit af4cb1dac8
2 changed files with 2 additions and 1 deletions

View File

@ -483,6 +483,7 @@ class ClientPortalController extends BaseController
return response()->view('error', [ return response()->view('error', [
'error' => $error ?: trans('texts.invoice_not_found'), 'error' => $error ?: trans('texts.invoice_not_found'),
'hideHeader' => true, 'hideHeader' => true,
'account' => $this->getContact()->account,
]); ]);
} }

View File

@ -84,7 +84,7 @@
<div id="navbar" class="collapse navbar-collapse"> <div id="navbar" class="collapse navbar-collapse">
@if (!isset($account) || $account->isNinjaAccount() || $account->enable_client_portal) @if (!isset($account) || $account->isNinjaAccount() || $account->enable_client_portal)
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
@if (!isset($account) || $account->enable_client_portal_dashboard) @if (isset($account) && $account->enable_client_portal_dashboard)
<li {{ Request::is('*client/dashboard') ? 'class="active"' : '' }}> <li {{ Request::is('*client/dashboard') ? 'class="active"' : '' }}>
{!! link_to('/client/dashboard', trans('texts.dashboard') ) !!} {!! link_to('/client/dashboard', trans('texts.dashboard') ) !!}
</li> </li>