[dw-free] add a link to the account settings page to the navbar
[commit: http://hg.dwscoalition.org/dw-free/rev/e6d980963fc6]
http://bugs.dwscoalition.org/show_bug.cgi?id=2173
Adds "Settings" link to the left section of the navbar.
Patch by
yvi.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2173
Adds "Settings" link to the left section of the navbar.
Patch by
Files modified:
- bin/upgrading/en.dat
- cgi-bin/weblib.pl
--------------------------------------------------------------------------------
diff -r 6c17f0cdf9f4 -r e6d980963fc6 bin/upgrading/en.dat
--- a/bin/upgrading/en.dat Fri Jan 08 10:54:46 2010 -0600
+++ b/bin/upgrading/en.dat Fri Jan 08 12:48:48 2010 -0600
@@ -3721,6 +3721,8 @@ web.controlstrip.links.removecomm=Unsubs
web.controlstrip.links.removefeed=Remove it from your reading page
+web.controlstrip.links.settings=Settings
+
web.controlstrip.links.stylemystyle=View in my style
web.controlstrip.links.styleorigstyle=View in original style
diff -r 6c17f0cdf9f4 -r e6d980963fc6 cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl Fri Jan 08 10:54:46 2010 -0600
+++ b/cgi-bin/weblib.pl Fri Jan 08 12:48:48 2010 -0600
@@ -2630,6 +2630,7 @@ sub control_strip
$links{inbox} .= " ($unread)" if $unread;
$links{inbox} .= "</a>";
+ $links{settings} = "<a href='$LJ::SITEROOT/manage/settings'>$BML::ML{'web.controlstrip.links.settings'}</a>";
$links{'view_friends_page'} = "<a href='" . $remote->journal_base . "/read'>$BML::ML{'web.controlstrip.links.viewreadingpage'}</a>";
$links{'add_friend'} = "<a href='$LJ::SITEROOT/manage/circle/add?user=$journal->{user}'>$BML::ML{'web.controlstrip.links.addtocircle'}</a>";
$links{'edit_friend'} = "<a href='$LJ::SITEROOT/manage/circle/add?user=$journal->{user}'>$BML::ML{'web.controlstrip.links.modifycircle'}</a>";
@@ -2729,7 +2730,7 @@ sub control_strip
$ret .= " $links{confirm}" unless $remote->is_validated;
$ret .= "</div></form>\n";
$ret .= "$links{home} $links{post_journal} " unless $remote->is_identity;
- $ret .= "$links{view_friends_page} $links{inbox}";
+ $ret .= "$links{view_friends_page} $links{settings} $links{inbox}";
$ret .= "</td>\n";
$ret .= "<td id='lj_controlstrip_actionlinks' nowrap='nowrap'>";
--------------------------------------------------------------------------------
