Changeset 108 for ATGoogleMaps


Ignore:
Timestamp:
08/22/06 00:20:00 (5 years ago)
Author:
takanori
Message:

マーカーの表示部分をちょっと変更

Location:
ATGoogleMaps/trunk/skins/googlemaps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ATGoogleMaps/trunk/skins/googlemaps/gmap_view.pt

    r104 r108  
    4848             tal:attributes="id string:marker_html_${here/id}"> 
    4949          <div style="width: 290px;"> 
    50             <div class="documentActions"> 
    51               <a href="" tal:condition="here/url" 
    52                  tal:attributes="href here/url" 
    53                  i18n:translate="" i18n:domain="plone"> 
    54                  Link 
    55               </a> 
    56             </div> 
    5750            <h1 class="documentFirstHeading"> 
    5851              <a href="" tal:content="here/pretty_title_or_id" 
     
    6154              </a> 
    6255            </h1> 
     56 
    6357            <img src="" style="float: left; margin: 5px;" 
    6458                 tal:condition="here/imageurl" 
    6559                 tal:attributes="src here/imageurl" /> 
    6660 
    67             <div class="documentDescription" 
    68                  tal:content="here/Description" 
    69                  tal:condition="here/Description"> 
    70               Description 
    71             </div> 
    72      
    73             <div class="address" 
    74                  tal:content="here/address" 
    75                  tal:condition="here/address"> 
    76               address 
    77             </div> 
    78      
    79             <div class="phone" 
    80                  tal:content="here/phone" 
    81                  tal:condition="here/phone"> 
    82               phone 
    83             </div> 
     61            <div metal:use-macro="here/gmarker_view/macros/gmarker"> 
     62              show related items if they exist 
     63            </div> 
    8464     
    8565            <div style="clear: both;" tal:condition="here/getText" 
     
    9777             tal:condition="here/detail"> 
    9878          <div style="width: 290px;"> 
    99             <div class="documentActions"> 
    100               <a href="" tal:condition="here/url" 
    101                  tal:attributes="href here/url" 
    102                  i18n:translate="" i18n:domain="plone"> 
    103                  Link 
    104               </a> 
    105             </div> 
    10679            <h1 class="documentFirstHeading"> 
    10780              <a href="" tal:content="here/pretty_title_or_id" 
  • ATGoogleMaps/trunk/skins/googlemaps/gmarker_view.pt

    r102 r108  
    5353         tal:condition="here/imageurl" 
    5454         tal:attributes="src here/imageurl" /> 
    55      
    56     <div class="documentDescription" 
    57        tal:content="here/Description" 
    58        tal:condition="here/Description"> 
     55 
     56    <metal:gmarker_macro define-macro="gmarker"> 
     57      <div class="documentDescription" 
     58           tal:content="here/Description" 
     59           tal:condition="here/Description"> 
    5960        Description 
    60     </div> 
     61      </div> 
    6162 
    62     <div class="address" 
    63       tal:condition="here/address"> 
    64       <label i18n:translate="label_address">Address</label> 
    65       <span tal:replace="here/address" /> 
    66     </div> 
     63      <ul> 
     64        <li tal:condition="here/address"> 
     65          <label i18n:translate="label_address">Address</label> 
     66          <span tal:replace="here/address" /> 
     67        </li> 
    6768 
    68     <div class="phone" 
    69       tal:condition="here/phone"> 
    70       <label i18n:translate="label_phone">Phone</label> 
    71       <span tal:replace="here/phone" /> 
    72     </div> 
     69        <li tal:condition="here/phone"> 
     70          <label i18n:translate="label_phone">Phone</label> 
     71          <span tal:replace="here/phone" /> 
     72        </li> 
    7373 
    74     <div class="url" 
    75       tal:condition="here/url"> 
    76       <a href="" 
    77          tal:attributes="href here/url" 
    78          i18n:domain="plone" i18n:translate="Link"> 
    79       Link 
    80       </a> 
    81     </div> 
     74        <li tal:condition="here/url"> 
     75          <label i18n:translate="URL">URL</label> 
     76          <a href="" 
     77             tal:content="here/url" 
     78             tal:attributes="href here/url"> 
     79            Link 
     80          </a> 
     81        </li> 
     82      </ul> 
     83    </metal:gmarker_macro> 
    8284 
    8385    <br style="clear: both;"/> 
     86 
    8487    <div tal:condition="here/getText" 
    8588         tal:content="structure here/getText"> 
Note: See TracChangeset for help on using the changeset viewer.