Skip to content
Snippets Groups Projects
Commit a06ecac0 authored by Robert Lange's avatar Robert Lange Committed by Dorian Merz
Browse files

refs #18492 [finc] handle disabled account capabilities

* hide toggler
* remove myresearch from breadcrumbs
parent b0877275
Branches
Tags
No related merge requests found
...@@ -3,16 +3,20 @@ ...@@ -3,16 +3,20 @@
// Set page title. // Set page title.
$this->headTitle($this->translate('Search History')); $this->headTitle($this->translate('Search History'));
$loginEnabled = is_object($account = $this->auth()->getManager()) && $account->loginEnabled();
// Set up breadcrumbs: // Set up breadcrumbs:
$this->layout()->breadcrumbs = '<li><a href="' . $this->url('myresearch-home') . '">' . $this->transEsc('Your Account') . '</a></li>' $this->layout()->breadcrumbs = ($loginEnabled ? '<li><a href="' . $this->url('myresearch-home') . '">' . $this->transEsc('Your Account') . '</a></li>'
. '<li class="active">' . $this->transEsc('History') . '</li>'; : '') . '<li class="active">' . $this->transEsc('History') . '</li>';
$saveSupported = $this->accountCapabilities()->getSavedSearchSetting() === 'enabled'; $saveSupported = $this->accountCapabilities()->getSavedSearchSetting() === 'enabled';
?> ?>
<a class="search-filter-toggle visible-xs" href="#myresearch-sidebar" data-toggle="offcanvas" title="Expand Sidebar"> <?php if ($saveSupported): ?>
<?=$this->transEsc('Your Account') ?> <a class="search-filter-toggle visible-xs" href="#myresearch-sidebar" data-toggle="offcanvas" title="Expand Sidebar">
</a> <?=$this->transEsc('Your Account') ?>
</a>
<?php endif; ?>
<div class="<?=$this->layoutClass('mainbody')?>"> <div class="<?=$this->layoutClass('mainbody')?>">
<?=$this->flashmessages()?> <?=$this->flashmessages()?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment