source: trunk/templates/display_metadata.tt @ 644

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

note to user

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1[% USE CGI %]
2<!-- METADATA STARTS -->
3
4<div id="metadata">
5[% IF phone OR fax OR address OR postcode OR formatted_website_text
6      OR hours_text OR map_link %]
7  <ul id="general_metadata">
8
9    [% IF phone %]
10      <li class="telephone">
11        <span class="metadata_label">Telephone:</span> [% CGI.escapeHTML(phone) %]
12      </li>
13    [% END %]
14    [% IF fax %]
15      <li class="fax">
16        <span class="metadata_label">Fax:</span> [% CGI.escapeHTML(fax) %]
17      </li>
18    [% END %]
19    [% IF address %]
20      <li class="address">
21        <span class="metadata_label">Address:</span>
22        [% CGI.escapeHTML(address) %]<!--, [% default_city %] --> [%# uncomment at left to show city %]
23        [% IF map_link %]
24          <a href="[% map_link %]">(map of this place)</a>
25        [% END %]
26      </li>
27    [% ELSIF map_link %]
28      <li class="map">
29        <span class="metadata_label"><a href="[% map_link %]">Map of this place</a></span>
30      </li>
31    [% END %]
32    [% IF postcode %]
33      <li class="postcode">
34        <span class="metadata_label">Postcode:</span>
35        [% CGI.escapeHTML(postcode) %]
36      </li>
37    [% END %]
38    [% IF formatted_website_text %]
39      <li class="website_link">
40        <span class="metadata_label">Website:</span> [% formatted_website_text %]
41      </li>
42    [% END %]
43    [% IF hours_text %]
44      <li class="opening_hours">
45        <span class="metadata_label">Opening Hours:</span>
46        [% CGI.escapeHTML(hours_text) %]
47      </li>
48    [% END %]
49  </ul>
50[% END %]
51
52[% IF (categories.size AND categories.size > 0)
53   OR (locales.size AND locales.size > 0) %]
54  <ul id="categories_and_locales">
55    [% IF categories.size AND categories.size > 0 %]
56      <li class="categories_list">
57        <span class="metadata_label">Categories:</span>
58        [% FOREACH category = categories %]
59          <a href="[% category.url %]">[% category.name %]</a>[%- "," UNLESS loop.last %]
60        [% END %]
61      </li>
62    [% END %]
63
64    [% IF locales.size AND locales.size > 0 %]
65      <li class="locales_list">
66        <span class="metadata_label">Locales:</span>
67        [% FOREACH locale = locales %]
68          <a href="[% locale.url %]">[% locale.name %]</a>[%- "," UNLESS loop.last %]
69        [% END %]
70      </li>
71    [% END %]
72  </ul>
73[% END %]
74</div>
75
76<!-- METADATA ENDS -->
Note: See TracBrowser for help on using the repository browser.