Changeset 859


Ignore:
Timestamp:
Sep 12, 2006, 10:27:28 PM (15 years ago)
Author:
Dominic Hargreaves
Message:

Provide feedback to users about moderation (closes #139)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/edit_form.tt

    r857 r859  
    2222        [% CATCH %]
    2323        [% END %]
     24        [% IF moderate %]
     25        <p>Please note that this node is moderated so your changes will not
     26        appear immediately. Please be patient.</p>
     27        [% END %]
    2428      </td>
    2529    </tr>
    2630    <tr>
    2731      <td align="center"><input type="submit" name="preview" value="Preview changes" class="form_button" /></td>
    28       <td align="center"><input type="submit" name="Save" value="Save changes" class="form_button" /></td>
     32      <td align="center">
     33      [% IF moderate %]
     34      <input type="submit" name="Save" value="Save changes for moderation" class="form_button" />
     35      [% ELSE %]
     36      <input type="submit" name="Save" value="Save changes" class="form_button" />
     37      [% END %]
     38      </td>
    2939    </tr>
    3040    <tr>
     
    112122    <tr>
    113123      <td align="center"><input type="submit" name="preview" value="Preview changes" class="form_button" /></td>
    114       <td align="center"><input type="submit" name="Save" value="Save changes" class="form_button" /></td>
     124      <td align="center">
     125      [% IF moderate %]
     126      <input type="submit" name="Save" value="Save changes for moderation" class="form_button" />
     127      [% ELSE %]
     128      <input type="submit" name="Save" value="Save changes" class="form_button" />
     129      [% END %]
     130      </td>
    115131    </tr>
    116132    <tr>
  • trunk/wiki.cgi

    r855 r859  
    263263
    264264    if ($wiki->verify_checksum($node, $checksum)) {
     265        my $moderate = $wiki->node_required_moderation($node);
    265266        my %tt_vars = (
    266267            %tt_metadata_vars,
     
    269270            preview_html           => $wiki->format($content),
    270271            preview_above_edit_box => get_cookie( "preview_above_edit_box" ),
    271             checksum               => $q->escapeHTML($checksum)
     272            checksum               => $q->escapeHTML($checksum),
     273            moderate               => $moderate
    272274        );
    273275        process_template("edit_form.tt", $node, \%tt_vars);
     
    311313
    312314    $metadata_vars{website} ||= 'http://';
     315    my $moderate = $wiki->node_required_moderation($node);
    313316
    314317    my %tt_vars = ( content         => $q->escapeHTML($content),
     
    318321                    username        => $username,
    319322                    edit_type       => $edit_type,
     323                    moderate        => $moderate,
    320324                    deter_robots    => 1,
    321325    );
Note: See TracChangeset for help on using the changeset viewer.