mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-04-05 08:03 am

[dw-free] Add 'track user' link to the navstrip

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

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

Add 'track this user' link to the navstrip.

Patch by [personal profile] invisionary.

Files modified:
  • bin/upgrading/en.dat
  • cgi-bin/weblib.pl
--------------------------------------------------------------------------------
diff -r 146a581ae25a -r b09300d7c22e bin/upgrading/en.dat
--- a/bin/upgrading/en.dat	Sun Apr 05 07:57:18 2009 +0000
+++ b/bin/upgrading/en.dat	Sun Apr 05 08:03:35 2009 +0000
@@ -3295,6 +3295,8 @@ web.controlstrip.links.stylemystyle=View
 
 web.controlstrip.links.styleorigstyle=View in original style
 
+web.controlstrip.links.trackuser=Track this user
+
 web.controlstrip.links.viewreadingpage=Reading Page
 
 web.controlstrip.links.watchcomm=Subscribe to this community
diff -r 146a581ae25a -r b09300d7c22e cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl	Sun Apr 05 07:57:18 2009 +0000
+++ b/cgi-bin/weblib.pl	Sun Apr 05 08:03:35 2009 +0000
@@ -2952,6 +2952,7 @@ sub control_strip
         $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.bml?user=$journal->{user}'>$BML::ML{'web.controlstrip.links.addtocircle'}</a>";
         $links{'edit_friend'} = "<a href='$LJ::SITEROOT/manage/circle/add.bml?user=$journal->{user}'>$BML::ML{'web.controlstrip.links.modifycircle'}</a>";
+        $links{'track_user'} = "<a href='$LJ::SITEROOT/manage/subscriptions/user.bml?journal=$journal->{user}'>$BML::ML{'web.controlstrip.links.trackuser'}</a>";
         if ($journal->is_syndicated || $journal->is_news) {
             $links{'add_friend'} = "<a href='$LJ::SITEROOT/manage/circle/add.bml?user=$journal->{user}&action=subscribe'>$BML::ML{'web.controlstrip.links.addfeed'}</a>";
             $links{'remove_friend'} = "<a href='$LJ::SITEROOT/manage/circle/add.bml?user=$journal->{user}'>$BML::ML{'web.controlstrip.links.removefeed'}</a>";
@@ -3129,6 +3130,7 @@ sub control_strip
                 }
                 $ret .= "<br />$links{'add_friend'}";
             }
+            $ret .= "&nbsp;&nbsp; $links{'track_user'}";
         } elsif ($journal->is_community) {
             my $watching = $remote->watches( $journal );
             my $memberof = $remote->member_of( $journal );
@@ -3178,7 +3180,9 @@ sub control_strip
             $ret .= "$statustext{news}<br />";
             if ( $remote && !$remote->watches( $journal ) ) {
                 $ret .= $links{add_friend};
+                $ret .= "&nbsp;&nbsp; $links{track_user}";
             } else {
+                $ret .= $links{track_user};
                 $ret .= "&nbsp;";
             }
         } else {
--------------------------------------------------------------------------------

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