Changeset 856


Ignore:
Timestamp:
Sep 12, 2006, 9:37:13 AM (15 years ago)
Author:
Dominic Hargreaves
Message:

Fix bugs introduced by me (readd moderate variable, fix up template to use correct variables

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides.pm

    r855 r856  
    14331433    my @locales;
    14341434    for my $node (@all_nodes) {
     1435        # Add moderation status
     1436        $node->{'moderate'} = $wiki->node_required_moderation($node->{'name'});
     1437
    14351438        # Make the URLs
    14361439        my $node_param = uri_escape( $formatter->node_name_to_node_param( $node->{'name'} ) );
  • trunk/templates/admin_home.tt

    r853 r856  
    66[% IF completed_action %]
    77        <br />
    8         <div style="color: #A0C745">[% completed_action %]</div>
     8        <div class="admin_completed_action">[% completed_action %]</div>
    99[% END %]
    1010<h2>Site Administration</h2>
     
    4646     <td class="admin_version">[% locale.version %]</td>
    4747     <td class="admin_lastmode">[% locale.last_modified %]</td>
    48      <td class="admin_moderate">[% IF node.moderate %]yes[% ELSE %]no[% END %]</td>
     48     <td class="admin_moderate">[% IF locale.moderate %]yes[% ELSE %]no[% END %]</td>
    4949     <td class="admin_action">
    5050        <a href="[% locale.versions_url %]">View all versions</a> or
     
    6565     <td class="admin_version">[% cat.version %]</td>
    6666     <td class="admin_lastmode">[% cat.last_modified %]</td>
    67      <td class="admin_moderate">[% IF node.moderate %]yes[% ELSE %]no[% END %]</td>
     67     <td class="admin_moderate">[% IF cat.moderate %]yes[% ELSE %]no[% END %]</td>
    6868     <td class="admin_action">
    6969         <a href="[% cat.versions_url %]">View all versions</a> or
Note: See TracChangeset for help on using the changeset viewer.