source: trunk/templates/node.tt @ 581

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

Add span.node_name class for inline non-hyperlink references to node names.

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