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 {
|
} else {
|
||||||
$this->show_remote_subscribe_form($profile);
|
$this->show_remote_subscribe_link($profile);
|
||||||
}
|
}
|
||||||
common_element_end('div');
|
common_element_end('div');
|
||||||
|
|
||||||
@ -169,21 +169,11 @@ class ShowstreamAction extends StreamAction {
|
|||||||
common_element_end('form');
|
common_element_end('form');
|
||||||
}
|
}
|
||||||
|
|
||||||
function show_remote_subscribe_form($profile) {
|
function show_remote_subscribe_link($profile) {
|
||||||
common_element_start('form', array('id' => 'remotesubscribe',
|
$url = common_local_url('remotesubscribe',
|
||||||
'method' => 'POST',
|
array('nickname' => $profile->nickname);
|
||||||
'action' => common_local_url('remotesubscribe')));
|
common_element('a', array('href' => $url),
|
||||||
common_hidden('nickname', $profile->nickname);
|
_t('Subscribe'));
|
||||||
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_unsubscribe_form($profile) {
|
function show_unsubscribe_form($profile) {
|
||||||
|
Loading…
Reference in New Issue
Block a user