Showing remote subscription button on the personal timeline

This commit is contained in:
Sarven Capadisli 2010-03-02 12:35:27 -05:00
parent 5abff91041
commit 88c33bbb57
2 changed files with 22 additions and 0 deletions

View File

@ -721,6 +721,24 @@ class OStatusPlugin extends Plugin
return true;
}
function onStartShowAllContent($action)
{
$user = common_current_user();
if ($user && ($user->id == $action->profile->id)) {
$action->elementStart('div', 'entity_actions');
$action->elementStart('p', array('id' => 'entity_remote_subscribe',
'class' => 'entity_subscribe'));
$action->element('a', array('href' => common_local_url('ostatussub'),
'class' => 'entity_remote_subscribe')
, _m('Subscribe to remote user'));
$action->elementEnd('p');
$action->elementEnd('div');
}
return true;
}
/**
* Ping remote profiles with updates to this profile.
* Salmon pings are queued for background processing.

View File

@ -46,3 +46,7 @@ float:right;
.entity_remote_subscribe {
float:right;
}
#all #entity_remote_subscribe {
margin-top:-52px;
}