]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better instructions for login
authorEvan Prodromou <evan@prodromou.name>
Tue, 1 Jul 2008 18:06:11 +0000 (14:06 -0400)
committerEvan Prodromou <evan@prodromou.name>
Tue, 1 Jul 2008 18:06:11 +0000 (14:06 -0400)
darcs-hash:20080701180611-84dde-ca0ed035476469fea28edfb2e1b8cbc2aa3e9d41.gz

actions/login.php

index 83fa3ed23c262f9f7a09f7a5166ad1c6c1bfb8f0..d47e0579d088f128cc8a6bc367610d243d2c04c3 100644 (file)
@@ -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');
                }
        }
 }