source: trunk/templates/home_node.tt @ 1034

Last change on this file since 1034 was 962, checked in by kake, 15 years ago

Add config option to place content above navbar in HTML.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1[% INCLUDE header.tt %]
2
3[% INCLUDE banner.tt %]
4
5<div id="content">
6
7[% IF navbar_on_home_page AND !config.content_above_navbar_in_html %]
8  [% INCLUDE navbar.tt %]
9[% END %]
10
11[% IF !navbar_on_home_page AND !config.recent_changes_on_home_page %]
12  <div id="home_page_edit_link">
13    <a href="[% cgi_url %]?action=edit;id=[% node_param %]">Edit this page</a>
14  </div>
15[% END %]
16
17<div id="maincontent">
18  [% IF config.recent_changes_on_home_page %]
19    <div id="recent">
20
21      <h3>Ten most <a href="[% cgi_url %]?action=rc">recent changes</a>
22          (<a href="[% full_cgi_url %]?action=rc;format=rss">RSS</a>):</h3>
23
24      <dl>
25        [% FOREACH node = recent_changes %]
26          <dt><a href="[% node.url %]">[% node.name %]</a>
27            [% IF node.version == "1" %]
28              [new]
29            [% END %]
30          </dt>
31          [% IF node.comment or node.username %]
32            <dd>
33              [% node.comment %]
34              [% IF node.username %]
35                <b><small>([% node.username %])</small></b>
36              [% END %]
37            </dd>
38          [% END %]
39        [% END %]
40      </dl>
41
42      <p><b><a href="[% cgi_url %]?action=edit;id=[% node_param %]">Edit
43      this page</a></b></p>
44
45    </div>
46  [% END %]
47
48  [% content %]
49
50</div>
51
52[% IF navbar_on_home_page AND config.content_above_navbar_in_html %]
53  [% INCLUDE navbar.tt %]
54[% END %]
55
56[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.