Changeset 514


Ignore:
Timestamp:
Sep 21, 2004, 1:27:07 AM (17 years ago)
Author:
kake
Message:

More semantic markup for metadata display.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r513 r514  
    1111        Also fixed the RSS reader macro - use this as eg
    1212          @RSS http://london.openguides.org/?action=rss;username=Kake
     13        More semantic markup for metadata display - see README.CSS
    1314
    14150.40    18 September 2004
  • trunk/MANIFEST

    r513 r514  
    2929templates/delete_password_wrong.tt
    3030templates/differences.tt
    31 templates/display_categories.tt
    3231templates/display_metadata.tt
    3332templates/edit_conflict.tt
  • trunk/README.CSS

    r513 r514  
    3838    Purpose: A label for the search box that will be hidden for users with
    3939             a CSS-conforming user agent
     40
     41li.categories_list
     42li.locales_list
     43li.telephone
     44li.address
     45li.map
     46li.postcode
     47li.website_link
     48li.opening_hours
     49    Used in: display_metadata.tt
     50    Purpose: List items containing various metadata bits.
    4051
    4152h2.nodename
     
    7485    Used in: banner.tt
    7586    Purpose: The site banner/title
    76 
    77 div#categories_and_locales
    78     Used in: display_categories.tt
    79     Purpose: Displays the index a node belongs to
    8087
    8188div#content
  • trunk/templates/display_categories.tt

    r513 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

    r513 r514  
    44<div id="metadata">
    55[% 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) %]
    78  <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
    830    [% IF phone %]
    9       <li><strong>Telephone:</strong> [% CGI.escapeHTML(phone) %]</li>
     31      <li class="telephone">
     32        <label>Telephone:</label> [% CGI.escapeHTML(phone) %]
     33      </li>
    1034    [% END %]
    1135    [% IF fax %]
    12       <li><strong>Fax:</strong> [% CGI.escapeHTML(fax) %]</li>
     36      <li class="fax">
     37        <label>Fax:</label> [% CGI.escapeHTML(fax) %]
     38      </li>
    1339    [% END %]
    1440    [% 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>
    2149    [% 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>
    2454    [% END %]
    2555    [% 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>
    2760    [% END %]
    2861    [% 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>
    3065    [% END %]
    3166    [% 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>
    3371    [% END %]
    3472  </ul>
  • trunk/templates/node.tt

    r513 r514  
    1414[% END %]
    1515[% INCLUDE display_metadata.tt %]
    16 [% INCLUDE display_categories.tt %]
    1716
    1817<!-- NODE CONTENT STARTS -->
Note: See TracChangeset for help on using the changeset viewer.