Changeset 3035 for trunk


Ignore:
Timestamp:
05/28/10 13:43:19 (10 years ago)
Author:
jukka
Message:

A fix to remove references to real objects when browsing results. Now the browse pages can be built from catalog metadata and cover images can come from cache.

File:
1 edited

Legend:

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

    r3022 r3035  
    99     nicename obj/getNicename | nothing; 
    1010     location_country obj/getLocation_country | nothing; 
    11      messenger real_obj/getMessenger1 | nothing; 
    1211     obj_url obj/getURL; 
    1312     "> 
     
    1514     <div class="coverimage" tal:condition="HasCoverImage"> 
    1615        <span></span> 
    17          <span tal:define="real_object obj/getObject | nothing; 
    18                        piccy real_object/getCoverImage | obj/getCoverImage;" tal:omit-tag=""> 
    1916             <a href="" tal:attributes="href obj_url"> 
    20                  <img src="" alt="Member Folder" tal:attributes="src piccy/absolute_url | python:'images/default_member.png'"/> 
     17                 <img src="" tal:attributes="src string:${obj/getURL}/coverImage;alt nicename"/> 
    2118             </a> 
    22          </span> 
    2319     </div> 
    2420     <div class="coverimage" tal:condition="not:HasCoverImage"> 
     
    3228         <span tal:replace="nicename"></span> 
    3329     </a> 
    34         <a tal:condition="python: messenger and not isAnon" tal:attributes="href messenger"> 
    35             <img src="discussionitem_icon.gif" align="right"/> 
    36         </a>      
    37  
    3830    <div class="metadata"> 
    3931    <ul class="metadata"> 
     
    4335            <span tal:replace="nicename"></span> 
    4436        </a> 
    45         <a tal:condition="python: messenger and not isAnon" tal:attributes="href messenger"> 
    46             <img src="discussionitem_icon.gif" /> 
    47         </a>      
    4837     </li> 
    4938     <li class="browse_info" tal:condition="location_country"> 
     
    7362     <div class="coverimage" tal:condition="HasCoverImage"> 
    7463        <span></span> 
    75          <span tal:define="real_object obj/getObject | nothing; 
    76                            piccy real_object/getCoverImage | obj/getCoverImage;" tal:omit-tag=""> 
    7764             <a href="" tal:attributes="href obj_url"> 
    78                  <img src="" alt="Group Blog" tal:attributes="src piccy/absolute_url | string:images/default_group.png" /> 
     65                 <img src="" alt="Group Blog" tal:attributes="src string:${obj/getURL}/coverImage" /> 
    7966             </a> 
    80          </span> 
    8167     </div> 
    8268     <div class="coverimage" tal:condition="not:HasCoverImage"> 
Note: See TracChangeset for help on using the changeset viewer.