$nickname = $user->nickname;
$name = $user_profile->getBestName();
+ $action = $this->actionName;
+ $mine = ($this->action->arg('nickname') == $nickname); // @fixme kinda vague
+
$this->out->elementStart('ul', array('class' => 'nav'));
if (Event::handle('StartPersonalGroupNav', array($this))) {
$nickname)),
_('Home'),
sprintf(_('%s and friends'), $name),
- $action == 'all', 'nav_timeline_personal');
+ $mine && $action =='all', 'nav_timeline_personal');
+ $this->out->menuItem(common_local_url('showstream', array('nickname' =>
+ $nickname)),
+ _('Profile'),
+ _('Your profile'),
+ $mine && $action =='showstream',
+ 'nav_profile');
$this->out->menuItem(common_local_url('replies', array('nickname' =>
$nickname)),
_('Replies'),
sprintf(_('Replies to %s'), $name),
- $action == 'replies', 'nav_timeline_replies');
+ $mine && $action =='replies', 'nav_timeline_replies');
$this->out->menuItem(common_local_url('showfavorites', array('nickname' =>
$nickname)),
_('Favorites'),
sprintf(_('%s\'s favorite notices'), ($user_profile) ? $name : _('User')),
- $action == 'showfavorites', 'nav_timeline_favorites');
+ $mine && $action =='showfavorites', 'nav_timeline_favorites');
+ $this->out->menuItem(common_local_url('peopletagsbyuser', array('nickname' =>
+ $nickname)),
+ _('People tags'),
+ sprintf(_('People tags by %s'), ($user_profile) ? $name : _('User')),
+ in_array($action, array('peopletagsbyuser', 'peopletagsforuser')),
+ 'nav_timeline_peopletags');
$cur = common_current_user();
$this->out->menuItem(common_local_url('inbox', array('nickname' =>
$nickname)),
- _('Inbox'),
+ _('Messages'),
_('Your incoming messages'),
- $action == 'inbox');
- $this->out->menuItem(common_local_url('outbox', array('nickname' =>
- $nickname)),
- _('Outbox'),
- _('Your sent messages'),
- $action == 'outbox');
+ $mine && $action =='inbox');
}
+
Event::handle('EndPersonalGroupNav', array($this));
}
$this->out->elementEnd('ul');