[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
denise.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1095
Add "Track this community" link
Patch by
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} ";
}
$ret .= $links{leave_community};
+ $ret .= " " . $links{track_community};
} elsif ($watching) {
$ret .= "$statustext{watcher}<br />";
if ($haspostingaccess) {
@@ -2754,12 +2756,14 @@ sub control_strip
}
$ret .= "$links{join_community} " unless $remote->is_identity;
$ret .= $links{unwatch_community};
+ $ret .= " " . $links{track_community};
} elsif ($memberof) {
$ret .= "$statustext{member}<br />";
if ($haspostingaccess) {
$ret .= "$links{post_to_community} ";
}
$ret .= "$links{watch_community} $links{'leave_community'}";
+ $ret .= " " . $links{track_community};
} else {
$ret .= "$statustext{community}<br />";
if ($haspostingaccess) {
@@ -2767,6 +2771,7 @@ sub control_strip
}
$ret .= "$links{join_community} " unless $remote->is_identity;
$ret .= $links{watch_community};
+ $ret .= " " . $links{track_community};
}
} elsif ($journal->is_syndicated) {
$ret .= "$statustext{syn}<br />";
--------------------------------------------------------------------------------
