Add placeholder text explaining how to get a code on /create.

        Patch by 900degrees. 

diffs (46 lines):

diff -r 56e73178fde7 -r e95a0115cf00 bin/upgrading/en.dat
--- a/bin/upgrading/en.dat      Wed Jun 02 12:27:54 2010 +0800
+++ b/bin/upgrading/en.dat      Wed Jun 02 12:48:56 2010 +0800
@@ -4123,9 +4123,13 @@ widget.createaccountentercode.comm=If yo
 
 widget.createaccountentercode.comm.loggedout=You should create or log into a 
personal account to be the maintainer. If you don't have a personal account 
yet, you will need a code to create that account, but you don't need one for 
the community itself.
 
+widget.createaccountentercode.getcode= If you do not have an account creation 
code, you can obtain one this way.
+
 widget.createaccountentercode.info=To create a new account, enter an account 
creation code:
 
-widget.createaccountentercode.pay=If you do not have an account creation code, 
you can <a [[aopts]]>purchase a [[sitename]] account</a>.
+widget.createaccountentercode.pay=
+
+widget.createaccountentercode.pay2=Alternatively, you can <a 
[[aopts]]>purchase a [[sitename]] account</a>.
 
 widget.createaccountinviter.addcomms=Join and watch [[user]] ([[name]]).
 
diff -r 56e73178fde7 -r e95a0115cf00 cgi-bin/LJ/Widget/CreateAccountEnterCode.pm
--- a/cgi-bin/LJ/Widget/CreateAccountEnterCode.pm       Wed Jun 02 12:27:54 
2010 +0800
+++ b/cgi-bin/LJ/Widget/CreateAccountEnterCode.pm       Wed Jun 02 12:48:56 
2010 +0800
@@ -68,15 +68,17 @@ sub render_body {
     $ret .= LJ::html_hidden( ssl => $get->{ssl} ) if $get->{ssl};
     $ret .= "</form>";
 
+    $ret .= "<p style='margin-top: 10px;'>";
+
+    $ret .= $class->ml( 'widget.createaccountentercode.getcode' );
     if ( LJ::is_enabled( 'payments' ) ) {
-        $ret .= "<p style='margin-top: 10px;'>";
-        $ret .= $class->ml( 'widget.createaccountentercode.pay', { aopts => 
"href='$LJ::SITEROOT/shop/account?for=new'", sitename => $LJ::SITENAMESHORT } );
-        my $remote = LJ::get_remote(); 
-        $ret .= " " . $class->ml( 'widget.createaccountentercode.comm', { 
aopts => "href='$LJ::SITEROOT/community/create'" } );
-        $ret .= " " . $class->ml( 
'widget.createaccountentercode.comm.loggedout', { aopts => 
"href='$LJ::SITEROOT/community/create'" } ) unless $remote;
+        $ret .= " " . $class->ml( 'widget.createaccountentercode.pay2', { 
aopts => "href='$LJ::SITEROOT/shop/account?for=new'", sitename => 
$LJ::SITENAMESHORT } );
+    }
+    my $remote = LJ::get_remote(); 
+    $ret .= " " . $class->ml( 'widget.createaccountentercode.comm', { aopts => 
"href='$LJ::SITEROOT/community/create'" } );
+    $ret .= " " . $class->ml( 'widget.createaccountentercode.comm.loggedout', 
{ aopts => "href='$LJ::SITEROOT/community/create'" } ) unless $remote;
         
-        $ret .= "</p>";
-    }
+    $ret .= "</p>";
 
     return $ret;
 }
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to