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