source: trunk/templates/home_node.tt

Last change on this file was 1279, checked in by Dominic Hargreaves, 12 years ago

Add read_only config option to turn off edits on a guide completely (fixes #276)

  • 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 AND !read_only %]
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[% UNLESS read_only %]
43      <p><b><a href="[% cgi_url %]?action=edit;id=[% node_param %]">Edit
44      this page</a></b></p>
45[% END %]
46
47    </div>
48  [% END %]
49
50  [% content %]
51
52</div>
53
54[% IF navbar_on_home_page AND config.content_above_navbar_in_html %]
55  [% INCLUDE navbar.tt %]
56[% END %]
57
58[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.