Changeset 1313


Ignore:
Timestamp:
01/29/07 14:45:00 (13 years ago)
Author:
tarmo
Message:

Using macros to lessen copy-paste.

Location:
trunk/skins/lemill
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/skins/lemill/lemill_activities_view.pt

    r1310 r1313  
    1313    <ul class="coverimages"> 
    1414        <li tal:repeat="sample samples"> 
    15             <div> 
     15            <div metal:define-macro="featured"> 
    1616              <a href="#" tal:attributes="href sample/getURL" tal:define="obj sample/getObject; piccy obj/getCoverImage"> 
    1717                <span class="coverimg"><span></span> 
  • trunk/skins/lemill/lemill_tools_view.pt

    r1310 r1313  
    1313    <ul class="coverimages"> 
    1414        <li tal:repeat="sample samples"> 
    15             <div> 
    16               <a href="#" tal:attributes="href sample/getURL" tal:define="obj sample/getObject; piccy obj/getCoverImage"> 
    17                 <span class="coverimg"><span></span> 
    18                     <img tal:attributes="src piccy/absolute_url | nothing; onclick string:document.location='${sample_link}'" src="images/default_learningresource.png" style="cursor: pointer;" tal:define="obj sample/getObject; piccy obj/getCoverImage; sample_link sample/getURL;" /> 
    19                 </span> 
    20                 <span class="caption" tal:content="sample/Title" /> 
    21               </a> 
    22             </div> 
     15            <div metal:use-macro="here/lemill_activities_view/macros/featured"/> 
    2316        </li> 
    2417    </ul> 
Note: See TracChangeset for help on using the changeset viewer.