source: trunk/templates/node.tt @ 716

Last change on this file since 716 was 716, checked in by Earle Martin, 16 years ago

Renaming OpenGuides::SuperSearch? to OpenGuides::Search and supersearch.cgi to search.cgi - bug #17.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 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 %]?id=[% oldid %];redirect=0">[% oldid.replace('_', ' ') %]</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[% IF not (content || coord_field_1_value || coord_field_2_value || latitude || longitude) %]
26We don't have a node called "[% node_param %]". Would you like to <a href="[% full_cgi_url %]?action=edit;id=[% node_param %]">create it</a>?
27[% ELSE %]
28[% INCLUDE display_metadata.tt %]
29
30<!-- NODE CONTENT STARTS -->
31[% content %]
32<!-- NODE CONTENT ENDS -->
33
34[% TRY %]
35  [% INCLUDE custom_node.tt %]
36[% CATCH %]
37[% END %]
38                         
39[% IF coord_field_1_value AND coord_field_2_value %]
40  <br clear="all" />
41  <div id="find_within_distance">
42    <form action="search.cgi">
43      <label for="distance">Find all things within</label>
44      <select name="[% dist_field %]" id="distance">
45        <option value="500">500 metres</option>
46        <option value="1000">1 kilometre</option>
47        <option value="1500">1.5 kilometres</option>
48        <option value="2000">2 kilometres</option>
49      </select>
50      of here.
51      <input type="hidden" name="[% coord_field_1 %]" value="[% coord_field_1_value %]" />
52      <input type="hidden" name="[% coord_field_2 %]" value="[% coord_field_2_value %]" />
53      <input type="submit" name="Go" value="Go" class="form_button" />
54    </form>
55  </div>
56[% END %]
57[% IF (latitude AND longitude) OR (os_x AND os_y) OR (osie_x AND osie_y) %]
58<div id="coordinates">
59[% END %]
60[% IF os_x AND os_y %]
61  <small>OS X co-ord: [% CGI.escapeHTML(os_x) %]</small>
62  &nbsp;&nbsp;&nbsp;
63  <small>OS Y co-ord: [% CGI.escapeHTML(os_y) %]</small>
64  &nbsp;&nbsp;&nbsp;
65[% ELSIF osie_x AND osie_y %]
66  <small>OS IE X co-ord: [% CGI.escapeHTML(osie_x) %]</small>
67  &nbsp;&nbsp;&nbsp;
68  <small>OS IE Y co-ord: [% CGI.escapeHTML(osie_y) %]</small>
69  &nbsp;&nbsp;&nbsp;
70[% END %]
71[% IF latitude AND longitude %]
72  <small>(Latitude: [% latitude %] Longitude: [% longitude %])</small>
73[% END %]
74[% IF (latitude AND longitude) OR (os_x AND os_y) OR (osie_x AND osie_y)%]
75</div>
76[% END %]
77<div id="rdf_link">
78  <a href="[% cgi_url %]?id=[% node_param %];format=rdf">RDF/XML for this
79  node</a>
80  [% IF rss_locale_url %]
81    / <a href="[% rss_locale_url %]">RSS feed for this locale</a>
82  [% END %]
83  [% IF rss_category_url %]
84    / <a href="[% rss_category_url %]">RSS feed for this category</a>
85  [% END %]
86</div>
87<div id="version">
88[% IF current %]
89  Last edited [% last_modified %]
90  [% IF version == 1 %]
91    (version [% version %])
92  [% ELSE %]
93    (version [% version %];
94    <a href="[% cgi_url %]?id=[% node_param %];version=[% version - 1 %];diffversion=[% version %]">diff</a>).
95  [% END %]
96[% ELSE %]
97  This is version [% version %] (as of [% last_modified %]).
98  <a href="[% cgi_url %]?[% node_param %]">View current version.</a>
99[% END %]
100[% IF version AND version > 1 %]
101<a href="[% cgi_url %]?action=list_all_versions;id=[% node_param %]">List all
102versions.</a>
103[% END %]
104</div>
105[% END %]
106</div>
107[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.