afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-04-05 05:01 pm

[dw-free] Add confirm email link to navstrip

[commit: http://hg.dwscoalition.org/dw-free/rev/e655231982ac]

http://bugs.dwscoalition.org/show_bug.cgi?id=625

Add confirm email link to navstrip

Patch by [personal profile] rho.

Files modified:
  • bin/upgrading/en.dat
  • cgi-bin/weblib.pl
--------------------------------------------------------------------------------
diff -r 70f722681886 -r e655231982ac bin/upgrading/en.dat
--- a/bin/upgrading/en.dat	Sun Apr 05 14:29:56 2009 +0000
+++ b/bin/upgrading/en.dat	Sun Apr 05 16:59:28 2009 +0000
@@ -3241,6 +3241,8 @@ web.controlstrip.links.addtocircle=Add t
 
 web.controlstrip.links.changecommsettings=Change Settings
 
+web.controlstrip.links.confirm=Confirm email address
+
 web.controlstrip.links.create=Create a [[sitename]] Account
 
 web.controlstrip.links.editcommmembers=Edit Members
diff -r 70f722681886 -r e655231982ac cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl	Sun Apr 05 14:29:56 2009 +0000
+++ b/cgi-bin/weblib.pl	Sun Apr 05 16:59:28 2009 +0000
@@ -2941,6 +2941,7 @@ sub control_strip
                  'syndicated_list'   => "<a href='$LJ::SITEROOT/syn/list.bml'>$BML::ML{'web.controlstrip.links.popfeeds'}</a>",
                  'learn_more'        => LJ::run_hook('control_strip_learnmore_link') || "<a href='$LJ::SITEROOT/'>$BML::ML{'web.controlstrip.links.learnmore'}</a>",
                  'explore'           => "<a href='$LJ::SITEROOT/explore/'>" . BML::ml('web.controlstrip.links.explore', { sitenameabbrev => $LJ::SITENAMEABBREV }) . "</a>",
+                 'confirm'           => "<a href='$LJ::SITEROOT/register.bml'>$BML::ML{'web.controlstrip.links.confirm'}</a>",
                  );
 
     if ($remote) {
@@ -3034,6 +3035,7 @@ sub control_strip
             if $remote->session;
         my $logout = "<input type='submit' value=\"$BML::ML{'web.controlstrip.btn.logout'}\" id='Logout' />";
         $ret .= "$remote_display $logout";
+        $ret .= "&nbsp;&nbsp; $links{confirm}" unless $remote->is_validated;
         $ret .= "</div></form>\n";
         $ret .= "$links{'home'}&nbsp;&nbsp; $links{'post_journal'}&nbsp;&nbsp; $links{'view_friends_page'}&nbsp;&nbsp;$links{'inbox'}";
         $ret .= "</td>\n";
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org