better instructions for login
darcs-hash:20080701180611-84dde-ca0ed035476469fea28edfb2e1b8cbc2aa3e9d41.gz
This commit is contained in:
parent
fe7beeb64b
commit
5593d4a50b
|
@ -82,13 +82,22 @@ class LoginAction extends Action {
|
||||||
common_show_footer();
|
common_show_footer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_instructions() {
|
||||||
|
return _t('Login with your username and password. ' .
|
||||||
|
'Don\'t have a username yet? ' .
|
||||||
|
'[Register](%%action.register%%) a new account, or ' .
|
||||||
|
'try [OpenID](%%action.openidlogin%%). ');
|
||||||
|
}
|
||||||
|
|
||||||
function show_top($error=NULL) {
|
function show_top($error=NULL) {
|
||||||
if ($error) {
|
if ($error) {
|
||||||
common_element('p', 'error', $error);
|
common_element('p', 'error', $error);
|
||||||
} else {
|
} else {
|
||||||
common_element('p', 'instructions',
|
$instr = $this->get_instructions();
|
||||||
_t('Login with your username and password. ' .
|
$output = common_markup_to_html($instr);
|
||||||
'Don\'t have a username yet? Choose register above. '));
|
common_element_start('p', 'instructions');
|
||||||
|
common_raw($output);
|
||||||
|
common_element_end('p');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user