source: trunk/templates/node.tt @ 490

Last change on this file since 490 was 490, checked in by kake, 17 years ago

RSS feeds for contributors, locales and categories.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1[% USE CGI %]
2[% INCLUDE header.tt %]
3[% INCLUDE banner.tt %]
4<div id="content">
5[% INCLUDE navbar.tt %]
6[% IF current %]
7  [% IF is_indexable_node %]
8    <h2 class="node_name"><a href="[% cgi_url %]?action=index;index_type=[% CGI.escape(index_type) %];index_value=[% CGI.escape(index_value) %]">[% node_name %]</a></h2>
9  [% ELSE %]
10    <h2 class="node_name"><a href="[% cgi_url %]?action=show_backlinks&id=[% CGI.escape(node_name) %]">[% node_name %]</a></h2>
11  [% END %]
12[% ELSE %]
13  <h2><em>Historical version [% version %] of [% node_name %]</em></h2>
14[% END %]
15[% INCLUDE display_metadata.tt %]
16[% INCLUDE display_categories.tt %]
17
18<!-- NODE CONTENT STARTS -->
19[% content %]
20<!-- NODE CONTENT ENDS -->
21
22[% IF os_x AND os_y %]
23<br clear="all" />
24<div id="find_within_distance">
25  <form action="[% cgi_url %]">
26    <label for="distance">Find all things within</label>
27    <select name="distance_in_metres" id="distance">
28      <option value="200">200 metres</option>
29      <option value="500">500 metres</option>
30      <option value="1000">1 kilometre</option>
31      <option value="2000">2 kilometres</option>
32    </select>
33    of here.
34    <input type="hidden" name="id" value="[% node_name %]" />
35    <input type="hidden" name="action" value="find_within_distance" />
36    <input type="submit" name="Go" value="Go" class="form_button" />
37  </form>
38</div>
39[% END %]
40[% IF (latitude AND longitude) OR (os_x AND os_y) %]
41<div id="coordinates">
42[% END %]
43[% IF os_x AND os_y %]
44  <small>OS X co-ord: [% CGI.escapeHTML(os_x) %]</small>
45  &nbsp;&nbsp;&nbsp;
46  <small>OS Y co-ord: [% CGI.escapeHTML(os_y) %]</small>
47  &nbsp;&nbsp;&nbsp;
48[% END %]
49[% IF latitude AND longitude %]
50  <small>(Latitude: [% latitude %] Longitude: [% longitude %])</small>
51[% END %]
52[% IF (latitude AND longitude) OR (os_x AND os_y) %]
53</div>
54[% END %]
55<div id="rdf_link">
56  <a href="[% cgi_url %]?id=[% node_param %];format=rdf">RDF/XML for this
57  node</a>
58  [% IF rss_link %]
59    <a href="[% rss_link %]">RSS feed for this node</a>
60  [% END %]
61</div>
62<div id="version">
63[% IF current %]
64Last edited [% last_modified %] (version [% version %]; <a href="[% cgi_url %]?id=[% node_param %]&version=[% version - 1 %]&diffvers
65ion=[% version %]">diff</a>).
66[% ELSE %]
67This is version [% version %] (as of [% last_modified %]).
68<a href="[% cgi_url %]?[% node_param %]">View current version.</a> 
69[% END %]
70[% IF version AND version > 1 %]
71<a href="[% cgi_url %]?action=list_all_versions;id=[% node_param %]">List all
72versions.</a>
73[% END %]
74</div>
75
76[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.