Add a conditional breadcrumb to the myaccount page

This commit is contained in:
Samuel Georges 2015-03-06 22:01:14 +11:00
parent c7fadd3a17
commit 78d689d54e

View File

@ -1,3 +1,12 @@
<?php if ($this->user->hasAccess('backend.manage_users')): ?>
<?php Block::put('breadcrumb') ?>
<ul>
<li><a href="<?= Backend::url('backend/users') ?>"><?= e(trans('backend::lang.user.menu_label')) ?></a></li>
<li><?= e(trans($this->pageTitle)) ?></li>
</ul>
<?php Block::endPut() ?>
<?php endif ?>
<?php if (!$this->fatalError): ?> <?php if (!$this->fatalError): ?>
<?php Block::put('form-contents') ?> <?php Block::put('form-contents') ?>