add new message link to showstream

darcs-hash:20080917175356-5ed1f-5a84dc8363d7c1dbf60a82782aefe5a0bd6f3d59.gz
This commit is contained in:
Evan Prodromou 2008-09-17 13:53:56 -04:00
parent 130ba28886
commit 124762160a
1 changed files with 8 additions and 0 deletions

View File

@ -146,6 +146,14 @@ class ShowstreamAction extends StreamAction {
} else {
$this->show_remote_subscribe_link($profile);
}
$user = User::staticGet('id', $profile->id);
if ($cur->mutuallySubscribed($user)) {
common_element('a', array('href' => common_local_url('newmessage', array('nickname' => $user->nickname))),
_('Send a message'));
}
common_element_end('div');
common_element_start('div', array('id' => 'profile_information'));