source: trunk/templates/node.tt @ 559

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

Huge-ass pile of changes to make geo stuff work worldwide.

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