source: trunk/templates/site_index.tt @ 819

Last change on this file since 819 was 819, checked in by nick, 15 years ago

Include atom rc link, and optionally atom+rss links for the current page (if requested)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1[% IF criterion %]
2  [% INCLUDE header.tt
3      page_title = "Index of $criterion.name - $site_name"
4          feed_base = "$cgi_url?action=index;index_type=$criterion.type;index_value=$criterion.value"
5   %]
6[% ELSE %]
7  [% INCLUDE header.tt page_title = "Things within $limit of $origin - $site_name" %]
8[% END %]
9[% INCLUDE banner.tt %]
10<div id="content">
11[% INCLUDE navbar.tt %]
12<div id="maincontent">
13<h2>Node List
14  [%- IF criterion -%]
15    [%- IF criterion.url -%]
16      - <a href="[% criterion.url %]">[%- criterion.name -%]</a>
17    [%- ELSE -%]
18      - [%- criterion.name -%]
19    [%- END -%]
20  [%- END -%]
21  [%- IF origin -%]
22    - Things within [%- limit -%] of <a href="[% cgi_url %]?[%- origin_param -%]">[%- origin -%]</a>
23  [%- END -%]
24</h2>
25<ol>
26  [% FOREACH node = nodes %]
27     <li><a href="[% cgi_url %]?[% node.param %]">[% node.name %]</a>
28         [% IF node.distance %]([% node.distance %] metres away)[% END %]
29     </li>
30  [% END %]
31</ol>
32</div>
33
34<p>
35  This list is available as
36  <a href="[% cgi_url %]?action=index;index_type=[% criterion.type %];index_value=[% criterion.value %];format=rdf">rdf</a>,
37  or as a
38  <a href="[% cgi_url %]?action=index;index_type=[% criterion.type %];index_value=[% criterion.value %];format=rss">rss feed</a>,
39  or as an
40  <a href="[% cgi_url %]?action=index;index_type=[% criterion.type %];index_value=[% criterion.value %];format=atom">atom feed</a>.
41</p>
42
43[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.