mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-18 09:04:35 +01:00
removing the dashboard link from breadcrumbs
This commit is contained in:
parent
af2289206f
commit
dde02a4fb6
@ -167,12 +167,6 @@ HTML::macro('breadcrumbs', function() {
|
|||||||
// Get the breadcrumbs by exploding the current path.
|
// Get the breadcrumbs by exploding the current path.
|
||||||
$crumbs = explode('/', str_replace(Utils::basePath(), '', $_SERVER['REQUEST_URI']));
|
$crumbs = explode('/', str_replace(Utils::basePath(), '', $_SERVER['REQUEST_URI']));
|
||||||
|
|
||||||
// Include the link to Dashboard by default only if the user is not on the
|
|
||||||
// dashboard page.
|
|
||||||
if (!Request::is('dashboard')) {
|
|
||||||
$str .= '<li>' . link_to('dashboard', 'Dashboard') . '</li>';
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($crumbs as $key => $val)
|
foreach ($crumbs as $key => $val)
|
||||||
{
|
{
|
||||||
if (is_numeric($val))
|
if (is_numeric($val))
|
||||||
|
Loading…
Reference in New Issue
Block a user