Don't show the link to join the community if you're already a member.
Patch by kareila.
diffs (15 lines):
diff -r bc538355bea2 -r aa65b22d509c cgi-bin/LJ/Event/CommunityInvite.pm
--- a/cgi-bin/LJ/Event/CommunityInvite.pm Wed Jun 02 11:27:50 2010 +0800
+++ b/cgi-bin/LJ/Event/CommunityInvite.pm Wed Jun 02 11:46:24 2010 +0800
@@ -119,8 +119,9 @@ sub as_html_actions {
my ($self) = @_;
my $ret .= "<div class='actions'>";
- $ret .= " <a href='" . $self->comm->profile_url . "'>View Profile</a> |";
- $ret .= " <a href='$LJ::SITEROOT/manage/invites'>Join Community</a>";
+ $ret .= " <a href='" . $self->comm->profile_url . "'>View Profile</a>";
+ $ret .= " | <a href='$LJ::SITEROOT/manage/invites'>Join Community</a>"
+ unless $self->u->member_of( $self->comm );
$ret .= "</div>";
return $ret;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog