Interface improvements https://github.com/LibreTime/libretime/issues/313
This commit is contained in:
parent
e2d5e6934c
commit
81896723ca
1 changed files with 11 additions and 1 deletions
|
@ -1,5 +1,15 @@
|
|||
<ol class="navigation">
|
||||
<?php foreach ($this->container as $page) : ?>
|
||||
<?php
|
||||
// Admin and PM have access to the General Preferences. We need to set that menu item to point to General Preferences, instead of My Profile
|
||||
$user = Application_Model_User::getCurrentUser();
|
||||
$isHost = $user->isUserType(array(UTYPE_HOST));
|
||||
if ($isHost && $page->getTitle() === 'Settings') {
|
||||
$page->set('resource', 'usersettings');
|
||||
$page->set('controller', 'user');
|
||||
$page->set('action','edit-user');
|
||||
}
|
||||
?>
|
||||
<?php if($this->navigation()->accept($page)) : ?>
|
||||
<li class="top <?php if($page->isActive(true)){echo 'active';} ?>">
|
||||
<?php if($page->hasPages()) : ?>
|
||||
|
@ -29,4 +39,4 @@
|
|||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</ol>
|
Loading…
Add table
Add a link
Reference in a new issue