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
No related merge requests found
......@@ -3,16 +3,20 @@
// Set page title.
$this->headTitle($this->translate('Search History'));
$loginEnabled = is_object($account = $this->auth()->getManager()) && $account->loginEnabled();
// Set up breadcrumbs:
$this->layout()->breadcrumbs = '<li><a href="' . $this->url('myresearch-home') . '">' . $this->transEsc('Your Account') . '</a></li>'
. '<li class="active">' . $this->transEsc('History') . '</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>';
$saveSupported = $this->accountCapabilities()->getSavedSearchSetting() === 'enabled';
?>
<a class="search-filter-toggle visible-xs" href="#myresearch-sidebar" data-toggle="offcanvas" title="Expand Sidebar">
<?=$this->transEsc('Your Account') ?>
</a>
<?php if ($saveSupported): ?>
<a class="search-filter-toggle visible-xs" href="#myresearch-sidebar" data-toggle="offcanvas" title="Expand Sidebar">
<?=$this->transEsc('Your Account') ?>
</a>
<?php endif; ?>
<div class="<?=$this->layoutClass('mainbody')?>">
<?=$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