diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-01 14:06:11 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-01 14:06:11 -0400 |
commit | 5593d4a50ba09b47c99ba5608911d50d99d54f33 (patch) | |
tree | 32d0b4b06cab2bd7fc202e142beb6b81c3da645f | |
parent | fe7beeb64bb2bb43c966c722fd4bc8e43d1c5e52 (diff) |
better instructions for login
darcs-hash:20080701180611-84dde-ca0ed035476469fea28edfb2e1b8cbc2aa3e9d41.gz
-rw-r--r-- | actions/login.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/actions/login.php b/actions/login.php index 83fa3ed23..d47e0579d 100644 --- a/actions/login.php +++ b/actions/login.php @@ -82,13 +82,22 @@ class LoginAction extends Action { 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) { if ($error) { common_element('p', 'error', $error); } else { - common_element('p', 'instructions', - _t('Login with your username and password. ' . - 'Don\'t have a username yet? Choose register above. ')); + $instr = $this->get_instructions(); + $output = common_markup_to_html($instr); + common_element_start('p', 'instructions'); + common_raw($output); + common_element_end('p'); } } } |