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

[livejournal] r18473: LJSV-1453. Separate text variables at ht...

Committer: gprochaev
LJSV-1453. Separate text variables at http://www.livejournal.com/manage/tags.bml

U   trunk/htdocs/manage/tags.bml
U   trunk/htdocs/manage/tags.bml.text
Modified: trunk/htdocs/manage/tags.bml
===================================================================
--- trunk/htdocs/manage/tags.bml	2011-03-04 04:09:18 UTC (rev 18472)
+++ trunk/htdocs/manage/tags.bml	2011-03-04 04:39:49 UTC (rev 18473)
@@ -293,7 +293,6 @@
         push @groups, ("private", $ML{'.setting.private'});
     } else {
         push @groups, ("friends", $ML{'.setting.members'});
-        push @groups, ("private", $ML{'.setting.maintainers'});
     }
 
     my $grouplist = LJ::get_friend_group($u);
@@ -305,7 +304,9 @@
     my $security = LJ::Tags::get_permission_levels($u);
 
     $ret .= "<div class='tagsec'> "
-        . LJ::html_select({ name => 'control_level', selected => $security->{control} }, @groups)
+        . LJ::html_select(
+                        { name => 'control_level', selected => $security->{control} }, 
+                        @groups, $u->is_community ? ("private", $ML{'.setting.maintainers'}) : ())
         . " $ML{'.setting.desc.control'} </div>";
 
 
@@ -313,6 +314,7 @@
     ## by moderator or a community can be applied to communities only
     if ($u->is_community) {
         # insert after (public, friends, private)
+        push @groups, ("private", $ML{'.setting.moderators'});
         splice @groups, 3*2, 0, ("author_moder", $ML{'.setting.author'});
     }
     

Modified: trunk/htdocs/manage/tags.bml.text
===================================================================
--- trunk/htdocs/manage/tags.bml.text	2011-03-04 04:09:18 UTC (rev 18472)
+++ trunk/htdocs/manage/tags.bml.text	2011-03-04 04:39:49 UTC (rev 18473)
@@ -44,6 +44,8 @@
 
 .setting.maintainers=Only maintainers
 
+.setting.moderators=Maintainers and moderators
+
 .setting.members=Members only
 
 .setting.private=Only you

Tags: bml, livejournal, text, 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