Changeset 831


Ignore:
Timestamp:
Aug 10, 2006, 3:29:14 PM (15 years ago)
Author:
nick
Message:

Tweak display of un-moderated pages, and listings of them

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides.pm

    r830 r831  
    174174    my $content    = $wiki->format($raw);
    175175    my $modified   = $node_data{last_modified};
     176    my $moderated  = $node_data{moderated};
    176177    my %metadata   = %{$node_data{metadata}};
    177178
     
    200201                   node          => $id,
    201202                   language      => $config->default_language,
     203                   moderated     => $moderated,
    202204                   oldid         => $oldid,
    203205                   enable_gmaps  => 1,
  • trunk/templates/admin_home.tt

    r824 r831  
    2020     <td><a href="[% node.view_url %]">[% node.name %]</a></td>
    2121     <td>[% node.version %]</td>
    22      <td>[% node.moderate %]</td>
     22     <td>[% IF node.moderate %]yes[% ELSE %]no[% END %]</td>
    2323     <td><a href="[% node.view_url %]">View</a> or
    2424                 <a href="[% node.versions_url %]">View all versions</a> or
  • trunk/templates/needing_moderation.tt

    r821 r831  
    88These are nodes which have been created/edited, but not yet moderated.
    99</p>
    10 <table id="wanted_pages" style="width:80%">
     10<table id="needing_moderation" style="width:90%">
    1111<tr><th>Node name</th><th>Pending Version</th><th>Latest Moderated Version</th><th>Action</th></tr>
    1212  [% FOREACH node = nodes %]
    1313     <tr>
    1414     <td>[% node.name %]</td>
    15      <td>[% node.version %]</td>
    16      <td>[% node.moderated_version %]</td>
     15     <td align="center">[% node.version %]</td>
     16     <td align="center">[% node.moderated_version %]</td>
    1717     <td><a href="[% node.moderate_url %]">Moderate this version</a>
     18         or <a href="[% node.view_url %]">View this version</a>
    1819         or <a href="[% node.diff_url %]">See changes</a>
    1920     </td>
  • trunk/templates/node.tt

    r811 r831  
    3535  [% END %]
    3636[% ELSE %]
    37   <h2>
    38     <em>Historical version [% version %] of
     37  <h2><em>
     38  [% IF moderated %]
     39    Historical
     40  [% ELSE %]
     41    Un-moderated
     42  [% END %]
     43    version [% version %] of
    3944    <span class="node_name">[% node_name %]</span></em>
    4045  </h2>
  • trunk/wiki.cgi

    r829 r831  
    393393    my @nodes = $wiki->list_unmoderated_nodes;
    394394
    395     # Build the moderate link
     395    # Build the moderate links
    396396    foreach my $node (@nodes) {
    397397        my $node_param =
    398398            uri_escape($formatter->node_name_to_node_param($node->{'name'}));
    399399        $node->{'moderate_url'} = $script_url . "?action=moderate&id=".$node_param."&version=".$node->{'version'};
     400        $node->{'view_url'} = $script_url . "?id=".$node_param."&version=".$node->{'version'};
    400401        $node->{'diff_url'} = $script_url . "?id=".$node_param."&version=".$node->{'moderated_version'}."&diffversion=".$node->{'version'};
    401402    }
Note: See TracChangeset for help on using the changeset viewer.