forked from GNUsocial/gnu-social
don't show full profile menu all the time
This commit is contained in:
parent
64a1c9e376
commit
c4b53b4aef
@ -56,9 +56,6 @@ class DefaultLocalNav extends Menu
|
||||
if (!empty($user)) {
|
||||
$pn = new PersonalGroupNav($this->action);
|
||||
$this->submenu(_m('Home'), $pn);
|
||||
|
||||
$sn = new SubGroupNav($this->action, $user);
|
||||
$this->submenu(_m('Profile'), $sn);
|
||||
}
|
||||
|
||||
$bn = new PublicGroupNav($this->action);
|
||||
|
@ -71,6 +71,12 @@ class PersonalGroupNav extends Menu
|
||||
_('Home'),
|
||||
sprintf(_('%s and friends'), $name),
|
||||
$action == 'all', 'nav_timeline_personal');
|
||||
$this->out->menuItem(common_local_url('showstream', array('nickname' =>
|
||||
$this->user->nickname)),
|
||||
_('Profile'),
|
||||
(empty($profile)) ? $this->user->nickname : $profile->getBestName(),
|
||||
$action == 'showstream',
|
||||
'nav_profile');
|
||||
$this->out->menuItem(common_local_url('replies', array('nickname' =>
|
||||
$nickname)),
|
||||
_('Replies'),
|
||||
|
Loading…
Reference in New Issue
Block a user