Changeset 941 for trunk/templates

Show
Ignore:
Timestamp:
03/17/07 15:05:27 (21 months ago)
Author:
kake
Message:

Add config option to omit recent changes from home page (ticket #187).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/templates/home_node.tt

    r756 r941  
    2424[% END %] 
    2525 
     26[% IF !navbar_on_home_page AND !config.recent_changes_on_home_page %] 
     27  <div id="home_page_edit_link"> 
     28    <a href="[% cgi_url %]?action=edit;id=[% node_param %]">Edit this page</a> 
     29  </div> 
     30[% END %] 
     31 
    2632<div id="maincontent"> 
    27 <div id="recent"> 
     33  [% IF config.recent_changes_on_home_page %] 
     34    <div id="recent"> 
    2835 
    29 <h3>Ten most <a href="[% cgi_url %]?action=rc">recent changes</a> 
    30     (<a href="[% full_cgi_url %]?action=rc;format=rss">RSS</a>):</h3> 
     36      <h3>Ten most <a href="[% cgi_url %]?action=rc">recent changes</a> 
     37          (<a href="[% full_cgi_url %]?action=rc;format=rss">RSS</a>):</h3> 
    3138 
    32 <dl> 
    33   [% FOREACH node = recent_changes %] 
    34   <dt><a href="[% node.url %]">[% node.name %]</a> 
    35   [% IF node.version == "1" %] 
    36     [new] 
     39      <dl> 
     40        [% FOREACH node = recent_changes %] 
     41          <dt><a href="[% node.url %]">[% node.name %]</a> 
     42            [% IF node.version == "1" %] 
     43              [new] 
     44            [% END %] 
     45          </dt> 
     46          [% IF node.comment or node.username %] 
     47            <dd> 
     48              [% node.comment %] 
     49              [% IF node.username %] 
     50                <b><small>([% node.username %])</small></b> 
     51              [% END %] 
     52            </dd> 
     53          [% END %] 
     54        [% END %] 
     55      </dl> 
     56 
     57      <p><b><a href="[% cgi_url %]?action=edit;id=[% node_param %]">Edit 
     58      this page</a></b></p> 
     59 
     60    </div> 
    3761  [% END %] 
    38   </dt> 
    39   [% IF node.comment or node.username %] 
    40     <dd> 
    41       [% node.comment %] 
    42       [% IF node.username %] 
    43         <b><small>([% node.username %])</small></b> 
    44       [% END %] 
    45     </dd> 
    46   [% END %] 
    47 [% END %] 
    48 </dl> 
    4962 
    50 <p><b><a href="[% cgi_url %]?action=edit;id=[% node_param %]">Edit this page</a></b></p> 
    51  
    52 </div> 
    53 [% content %] 
     63  [% content %] 
    5464 
    5565</div>