Changeset 514
- Timestamp:
- 09/21/04 01:27:07 (4 years ago)
- Location:
- trunk
- Files:
-
- 6 modified
-
Changes (modified) (1 diff)
-
MANIFEST (modified) (1 diff)
-
README.CSS (modified) (2 diffs)
-
templates/display_categories.tt (modified) (1 diff)
-
templates/display_metadata.tt (modified) (1 diff)
-
templates/node.tt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Changes
r510 r514 11 11 Also fixed the RSS reader macro - use this as eg 12 12 @RSS http://london.openguides.org/?action=rss;username=Kake 13 More semantic markup for metadata display - see README.CSS 13 14 14 15 0.40 18 September 2004 -
trunk/MANIFEST
r512 r514 29 29 templates/delete_password_wrong.tt 30 30 templates/differences.tt 31 templates/display_categories.tt32 31 templates/display_metadata.tt 33 32 templates/edit_conflict.tt -
trunk/README.CSS
r438 r514 38 38 Purpose: A label for the search box that will be hidden for users with 39 39 a CSS-conforming user agent 40 41 li.categories_list 42 li.locales_list 43 li.telephone 44 li.address 45 li.map 46 li.postcode 47 li.website_link 48 li.opening_hours 49 Used in: display_metadata.tt 50 Purpose: List items containing various metadata bits. 40 51 41 52 h2.nodename … … 74 85 Used in: banner.tt 75 86 Purpose: The site banner/title 76 77 div#categories_and_locales78 Used in: display_categories.tt79 Purpose: Displays the index a node belongs to80 87 81 88 div#content -
trunk/templates/display_categories.tt
r311 r514 1 <!-- START CATEGORIES AND LOCALES -->2 <div id="categories_and_locales">3 [% IF categories.size AND categories.size > 0 %]4 <strong>Categories:</strong>5 [% FOREACH category = categories %]6 <a href="[% category.url %]">[% category.name %]</a> [%- "/" UNLESS loop.last %]7 [% END %]8 <br />9 [% END %]10 11 [% IF locales.size AND locales.size > 0 %]12 <strong>Locale:</strong>13 [% FOREACH locale = locales %]14 <a href="[% locale.url %]">[% locale.name %]</a> [%- "/" UNLESS loop.last %]15 [% END %]16 17 [% END %]18 </div>19 <!-- END CATEGORIES AND LOCALES --> -
trunk/templates/display_metadata.tt
r508 r514 4 4 <div id="metadata"> 5 5 [% IF phone OR fax OR address OR postcode OR formatted_website_text 6 OR hours_text OR map_link %] 6 OR hours_text OR map_link OR (categories.size AND categories.size > 0) 7 OR (locales.size AND locales.size > 0) %] 7 8 <ul> 9 10 [% IF categories.size AND categories.size > 0 %] 11 <li class="categories_list"> 12 <label>Categories:</label> 13 [% FOREACH category = categories %] 14 <a href="[% category.url %]">[% category.name %]</a> 15 [%- "/" UNLESS loop.last %] 16 [% END %] 17 </li> 18 [% END %] 19 20 [% IF locales.size AND locales.size > 0 %] 21 <li class="locales_list"> 22 <label>Locale:</label> 23 [% FOREACH locale = locales %] 24 <a href="[% locale.url %]">[% locale.name %]</a> 25 [%- "/" UNLESS loop.last %] 26 [% END %] 27 </li> 28 [% END %] 29 8 30 [% IF phone %] 9 <li><strong>Telephone:</strong> [% CGI.escapeHTML(phone) %]</li> 31 <li class="telephone"> 32 <label>Telephone:</label> [% CGI.escapeHTML(phone) %] 33 </li> 10 34 [% END %] 11 35 [% IF fax %] 12 <li><strong>Fax:</strong> [% CGI.escapeHTML(fax) %]</li> 36 <li class="fax"> 37 <label>Fax:</label> [% CGI.escapeHTML(fax) %] 38 </li> 13 39 [% END %] 14 40 [% IF address %] 15 <li><strong>Address:</strong> 16 [% IF map_link %] 17 [<a href="[% map_link %]">[% CGI.escapeHTML(address) %]</a>]</li> 18 [% ELSE %] 19 [% CGI.escapeHTML(address) %]</li> 20 [% END %] 41 <li class="address"> 42 <label>Address:</label> 43 [% IF map_link %] 44 [<a href="[% map_link %]">[% CGI.escapeHTML(address) %]</a>] 45 [% ELSE %] 46 [% CGI.escapeHTML(address) %] 47 [% END %] 48 </li> 21 49 [% ELSIF map_link %] 22 <li><strong>Map:</strong> 23 [<a href="[% map_link %]">[% CGI.escapeHTML(map_link) %]</a>]</li> 50 <li class="map"> 51 <label>Map:</label> 52 [<a href="[% map_link %]">[% CGI.escapeHTML(map_link) %]</a>] 53 </li> 24 54 [% END %] 25 55 [% IF postcode %] 26 <li><strong>Postcode:</strong> [% CGI.escapeHTML(postcode) %]</li> 56 <li class="postcode"> 57 <label>Postcode:</label> 58 [% CGI.escapeHTML(postcode) %] 59 </li> 27 60 [% END %] 28 61 [% IF formatted_website_text %] 29 <li><strong>Website:</strong> [% formatted_website_text %]</li> 62 <li class="website_link"> 63 <label>Website:</label> [% formatted_website_text %] 64 </li> 30 65 [% END %] 31 66 [% IF hours_text %] 32 <li><strong>Opening Hours:</strong> [% CGI.escapeHTML(hours_text) %]</li> 67 <li class="opening_hours"> 68 <label>Opening Hours:</label> 69 [% CGI.escapeHTML(hours_text) %] 70 </li> 33 71 [% END %] 34 72 </ul> -
trunk/templates/node.tt
r508 r514 14 14 [% END %] 15 15 [% INCLUDE display_metadata.tt %] 16 [% INCLUDE display_categories.tt %]17 16 18 17 <!-- NODE CONTENT STARTS -->
