don't show full profile menu all the time

This commit is contained in:
Evan Prodromou 2011-03-01 16:35:25 -05:00
parent 64a1c9e376
commit c4b53b4aef
2 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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'),