change remote subscribe to link
darcs-hash:20080630195032-84dde-941bafd039cd6483c5eee0ec9acde9df911a3d14.gz
This commit is contained in:
parent
c784f60a40
commit
d0e8f8d8a2
@ -129,7 +129,7 @@ class ShowstreamAction extends StreamAction {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$this->show_remote_subscribe_form($profile);
|
||||
$this->show_remote_subscribe_link($profile);
|
||||
}
|
||||
common_element_end('div');
|
||||
|
||||
@ -169,21 +169,11 @@ class ShowstreamAction extends StreamAction {
|
||||
common_element_end('form');
|
||||
}
|
||||
|
||||
function show_remote_subscribe_form($profile) {
|
||||
common_element_start('form', array('id' => 'remotesubscribe',
|
||||
'method' => 'POST',
|
||||
'action' => common_local_url('remotesubscribe')));
|
||||
common_hidden('nickname', $profile->nickname);
|
||||
common_element('input', array('name' => 'profile_url',
|
||||
'type' => 'text',
|
||||
'id' => 'profile_url',
|
||||
'size' => '15'));
|
||||
common_element('input', array('type' => 'submit',
|
||||
'id' => 'submit',
|
||||
'name' => 'submit',
|
||||
'value' => _t('Subscribe'),
|
||||
'class' => 'submit'));
|
||||
common_element_end('form');
|
||||
function show_remote_subscribe_link($profile) {
|
||||
$url = common_local_url('remotesubscribe',
|
||||
array('nickname' => $profile->nickname);
|
||||
common_element('a', array('href' => $url),
|
||||
_t('Subscribe'));
|
||||
}
|
||||
|
||||
function show_unsubscribe_form($profile) {
|
||||
|
Loading…
Reference in New Issue
Block a user