arteman (arteman) wrote in changelog,
arteman
arteman
changelog

[livejournal] r22765: LJSUP-11508: Rejected moderated entry no...

Committer: azateev
LJSUP-11508: Rejected moderated entry notifications need opt in/out options available to users
U   trunk/htdocs/community/manage.bml
U   trunk/htdocs/community/manage.bml.text
Modified: trunk/htdocs/community/manage.bml
===================================================================
--- trunk/htdocs/community/manage.bml	2012-08-29 11:12:18 UTC (rev 22764)
+++ trunk/htdocs/community/manage.bml	2012-08-29 11:22:51 UTC (rev 22765)
@@ -166,9 +166,13 @@
 
      my $mod_emails = $POST{modemail} ? 1 : 0;
      $remote->set_prop( 'opt_nomodemail' => $mod_emails ? undef : 1 );
+     
+     my $mod_reject = $POST{modreject} ? 1 : 0;
+     $remote->set_prop( 'opt_modrejectemail' => $mod_reject );
  }
 
  my $mod_emails = $remote->prop("opt_nomodemail") ? 0 : 1;
+ my $mod_reject = $remote->prop("opt_modrejectemail") ? 1 : 0;
 
  $ret .= "<div class='columns-2 pkg' style='margin-bottom: 15px;'>\n";
  $ret .= "<div class='columns-2-left'>\n";
@@ -189,6 +193,11 @@
                           value => '0', selected => !$mod_emails });
  $ret .= "<label for='modemail_no'>$ML{'.modemail.no'}</label><br />";
  $ret .= "</fieldset> ";
+ $ret .= "<fieldset class='nostyle' style='margin: 0 0 15px 30px;'>";
+ $ret .= LJ::html_check({ type => 'checkbox', name => 'modreject', id => 'modreject', 
+                          value => '1', selected => $mod_reject });
+ $ret .= "<label for='modreject'>$ML{'.modreject'}</label><br />";
+ $ret .= "</fieldset> ";
  $ret .= "<?standout " . LJ::html_submit($ML{'.joinmail.save'}) . " standout?>";
  $ret .= "</form>";
  $ret .= "</div><!-- end .columns-2-left -->";

Modified: trunk/htdocs/community/manage.bml.text
===================================================================
--- trunk/htdocs/community/manage.bml.text	2012-08-29 11:12:18 UTC (rev 22764)
+++ trunk/htdocs/community/manage.bml.text	2012-08-29 11:22:51 UTC (rev 22765)
@@ -79,6 +79,8 @@
 
 .modemail.yes=Email me every time someone submits a post to the queue
 
+.modreject=Email me when submission has been rejected from the moderation queue
+
 .title=Community Management
 
 .title2|staleness=1

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