source: trunk/templates/node.tt @ 644

Last change on this file since 644 was 634, checked in by Earle Martin, 17 years ago

fix RDF test failures; new redirection message

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1[% USE CGI %]
2[% INCLUDE header.tt %]
3[% INCLUDE banner.tt %]
4<div id="content">
5[% INCLUDE navbar.tt %]
6<div id="maincontent">
7[% IF oldid %]
8<div id="redirect_message">(redirected from <a href="[% full_cgi_url %]?action=edit&id=[% oldid %]">[% oldid %]</a></div>
9[% END %]
10
11[% IF current %]
12  [% IF backlinks_in_title AND is_indexable_node %]
13    <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>
14  [% ELSIF backlinks_in_title %]
15    <h2 class="node_name"><a href="[% cgi_url %]?action=show_backlinks&id=[% CGI.escape(node_name) %]">[% node_name %]</a></h2>
16  [% ELSE %]
17    <h2 class="node_name">[% node_name %]</h2>
18  [% END %]
19[% ELSE %]
20  <h2>
21    <em>Historical version [% version %] of
22    <span class="node_name">[% node_name %]</span></em>
23  </h2>
24[% END %]
25[% INCLUDE display_metadata.tt %]
26
27<!-- NODE CONTENT STARTS -->
28[% content %]
29<!-- NODE CONTENT ENDS -->
30
31[% IF coord_field_1_value AND coord_field_2_value %]
32  <br clear="all" />
33  <div id="find_within_distance">
34    <form action="supersearch.cgi">
35      <label for="distance">Find all things within</label>
36      <select name="[% dist_field %]" id="distance">
37        <option value="500">500 metres</option>
38        <option value="1000">1 kilometre</option>
39        <option value="1500">1.5 kilometres</option>
40        <option value="2000">2 kilometres</option>
41      </select>
42      of here.
43      <input type="hidden" name="[% coord_field_1 %]" value="[% coord_field_1_value %]" />
44      <input type="hidden" name="[% coord_field_2 %]" value="[% coord_field_2_value %]" />
45      <input type="submit" name="Go" value="Go" class="form_button" />
46    </form>
47  </div>
48[% END %]
49[% IF (latitude AND longitude) OR (os_x AND os_y) %]
50<div id="coordinates">
51[% END %]
52[% IF os_x AND os_y %]
53  <small>OS X co-ord: [% CGI.escapeHTML(os_x) %]</small>
54  &nbsp;&nbsp;&nbsp;
55  <small>OS Y co-ord: [% CGI.escapeHTML(os_y) %]</small>
56  &nbsp;&nbsp;&nbsp;
57[% END %]
58[% IF latitude AND longitude %]
59  <small>(Latitude: [% latitude %] Longitude: [% longitude %])</small>
60[% END %]
61[% IF (latitude AND longitude) OR (os_x AND os_y) %]
62</div>
63[% END %]
64<div id="rdf_link">
65  <a href="[% cgi_url %]?id=[% node_param %];format=rdf">RDF/XML for this
66  node</a>
67  [% IF rss_locale_url %]
68    / <a href="[% rss_locale_url %]">RSS feed for this locale</a>
69  [% END %]
70  [% IF rss_category_url %]
71    / <a href="[% rss_category_url %]">RSS feed for this category</a>
72  [% END %]
73</div>
74<div id="version">
75[% IF current %]
76  Last edited [% last_modified %]
77  [% IF version == 1 %]
78    (version [% version %])
79  [% ELSE %]
80    (version [% version %];
81    <a href="[% cgi_url %]?id=[% node_param %];version=[% version - 1 %];diffversion=[% version %]">diff</a>).
82  [% END %]
83[% ELSE %]
84  This is version [% version %] (as of [% last_modified %]).
85  <a href="[% cgi_url %]?[% node_param %]">View current version.</a>
86[% END %]
87[% IF version AND version > 1 %]
88<a href="[% cgi_url %]?action=list_all_versions;id=[% node_param %]">List all
89versions.</a>
90[% END %]
91</div>
92
93</div>
94[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.