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-05-16 05:17 am

[dw-free] Navstrip for communities doesn't contain link to track journal

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

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

Add "Track this community" link

Patch by [staff profile] denise.

Files modified:
  • bin/upgrading/en.dat
  • cgi-bin/weblib.pl
--------------------------------------------------------------------------------
diff -r 5142cf283270 -r fad8e11bd5c3 bin/upgrading/en.dat
--- a/bin/upgrading/en.dat	Sat May 16 05:08:30 2009 +0000
+++ b/bin/upgrading/en.dat	Sat May 16 05:16:49 2009 +0000
@@ -3675,6 +3675,8 @@ web.controlstrip.links.stylemystyle=View
 
 web.controlstrip.links.styleorigstyle=View in original style
 
+web.controlstrip.links.trackcomm=Track this community
+
 web.controlstrip.links.trackuser=Track this user
 
 web.controlstrip.links.viewreadingpage=Reading Page
diff -r 5142cf283270 -r fad8e11bd5c3 cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl	Sat May 16 05:08:30 2009 +0000
+++ b/cgi-bin/weblib.pl	Sat May 16 05:16:49 2009 +0000
@@ -2548,6 +2548,7 @@ sub control_strip
             $links{'edit_community_profile'} = "<a href='$LJ::SITEROOT/manage/profile/?authas=$journal->{user}'>$BML::ML{'web.controlstrip.links.editcommprofile'}</a>";
             $links{'edit_community_invites'} = "<a href='$LJ::SITEROOT/community/sentinvites.bml?authas=$journal->{user}'>$BML::ML{'web.controlstrip.links.managecomminvites'}</a>";
             $links{'edit_community_members'} = "<a href='$LJ::SITEROOT/community/members.bml?authas=$journal->{user}'>$BML::ML{'web.controlstrip.links.editcommmembers'}</a>";
+            $links{'track_community'} = "<a href='$LJ::SITEROOT/manage/subscriptions/user.bml?journal=$journal->{user}'>$BML::ML{'web.controlstrip.links.trackcomm'}</a>";
         }
     }
     my $journal_display = LJ::ljuser($journal);
@@ -2747,6 +2748,7 @@ sub control_strip
                     $ret .= "$links{post_to_community}&nbsp;&nbsp; ";
                 }
                 $ret .= $links{leave_community};
+                $ret .= "&nbsp;&nbsp;" . $links{track_community};
             } elsif ($watching) {
                 $ret .= "$statustext{watcher}<br />";
                 if ($haspostingaccess) {
@@ -2754,12 +2756,14 @@ sub control_strip
                 }
                 $ret .= "$links{join_community}&nbsp;&nbsp; " unless $remote->is_identity;
                 $ret .= $links{unwatch_community};
+                $ret .= "&nbsp;&nbsp;" . $links{track_community};
             } elsif ($memberof) {
                 $ret .= "$statustext{member}<br />";
                 if ($haspostingaccess) {
                     $ret .= "$links{post_to_community}&nbsp;&nbsp; ";
                 }
                 $ret .= "$links{watch_community}&nbsp;&nbsp; $links{'leave_community'}";
+                $ret .= "&nbsp;&nbsp;" . $links{track_community};
             } else {
                 $ret .= "$statustext{community}<br />";
                 if ($haspostingaccess) {
@@ -2767,6 +2771,7 @@ sub control_strip
                 }
                 $ret .= "$links{join_community}&nbsp;&nbsp; " unless $remote->is_identity;
                 $ret .= $links{watch_community};
+                $ret .= "&nbsp;&nbsp;" . $links{track_community};
             }
         } elsif ($journal->is_syndicated) {
             $ret .= "$statustext{syn}<br />";
--------------------------------------------------------------------------------

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