wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17388: LJSUP-6835

Committer: gprochaev
LJSUP-6835

U   trunk/htdocs/community/pending.bml
Modified: trunk/htdocs/community/pending.bml
===================================================================
--- trunk/htdocs/community/pending.bml	2010-09-16 06:22:01 UTC (rev 17387)
+++ trunk/htdocs/community/pending.bml	2010-09-16 06:44:38 UTC (rev 17388)
@@ -66,8 +66,6 @@
 
         if ($POST{'reject_select'} eq '1') {
             $ret .= '<div class="b-pending">';
-            $ret .= "<h3>".$ML{'.following_users'}."</h3>";
-            $ret .= '<p class="i-bubble b-bubble-alert b-bubble-noarrow b-bubble-intext">' . $ML{'.you_can_remove'} . '</p>';
 
             my @userids = split(',', $POST{'ids'});
 
@@ -93,6 +91,8 @@
             if ($POST{"approve"}) {
                 $ret .= "<?p " . BML::ml('.success.added', { num => $added }) . " p?>" if $added;
             } else {
+                $ret .= "<h3>".$ML{'.following_users'}."</h3>";
+                $ret .= '<p class="i-bubble b-bubble-alert b-bubble-noarrow b-bubble-intext">' . $ML{'.you_can_remove'} . '</p>';
                 $ret .= "<form method='post' action='pending.bml?authas=$cname'>\n";
                 $ret .= LJ::form_auth();
                 $ret .= '<ul class="b-pending-users"><li>' . join (",</li><li>", map { "<span><a href='" . $_->profile_url . "' target='_blank'>" . $_->display_name . "</a><i id=\"reject_user_id_".$_->{userid}."\" class='i-pending-close' title='" . $ML{'.button.remove'} . "'></i></span>" } @to_show) . "</li></ul>\n";

Tags: bml, livejournal, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments