Add check so that the second set of buttons don't show for communities 
and syndicated accounts

        Patch by wyntarvox. 

diffs (34 lines):

diff -r ad399b7250f0 -r 2e3952840e21 htdocs/manage/circle/add.bml
--- a/htdocs/manage/circle/add.bml      Sat May 16 06:00:55 2009 +0000
+++ b/htdocs/manage/circle/add.bml      Sat May 16 06:32:06 2009 +0000
@@ -183,8 +183,13 @@
 
     my $trust_groups = $remote->trust_groups;
 
-    ## extra add and cancel buttons only if there are filters to list
-    if ( keys %$trust_groups ) {
+    ## let them pick friend groups
+    # FIXME: Add support for reading groups once those exist
+    my $err;
+
+    if ( $remote->can_trust( $u ) && keys %$trust_groups ) {
+
+        ## extra add and cancel buttons
         $body .= "<br /><br />";
         if ($u->is_visible) {
             my $btn = ( $watched || $trusted ) ? $ML{'.btn.modify'} :  
BML::ml( '.btn.add', { user => $u->display_name } );
@@ -199,14 +204,7 @@
        document.write(\"<input type='button' value='$cancel_btn' 
onclick='history.go(-1); return false;'>\");
         \n // -->\n ";
         $body .= '</script>';
-    }
 
-
-    ## let them pick friend groups
-    # FIXME: Add support for reading groups once those exist
-    my $err;
-
-    if ( $remote->can_trust( $u ) && keys %$trust_groups ) {
         $body .= "<?p &nbsp;<br />";
         $body .= "$ML{'.groups.text1'} " . LJ::help_icon('customgroups', 
'&nbsp;') . "p?>\n";
         $body .= "<blockquote>\n";
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to