Add "Track this community" link

        Patch by denise. 

diffs (54 lines):

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 />";
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to