source: trunk/templates/site_index.tt

Last change on this file was 1355, checked in by kake, 10 years ago

Added a start at a form for indexing via locale+category.

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