Changeset 442


Ignore:
Timestamp:
07/14/06 02:14:51 (13 years ago)
Author:
hans
Message:

Refactoring the portlet

File:
1 edited

Legend:

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

    r418 r442  
    1010        isManager python:here.amIManager()"> 
    1111 
    12 <div class="tb-portlet"> 
    13     <div class="portlet-title"> 
    14     <a href="#" tal:attributes="href blogurl;" class="linkonbackground" tal:content="blogtitle">blog name</a> 
    15     </div> 
    16 </div> 
    17  
    18 <div class="tb-portlet" tal:condition="python: not isMember and not isAnon"> 
    19     <div class="portlet-title"> 
    20     <a href="#" tal:attributes="href string:$blogurl/join_group" class="linkonbackground"><img src="placeholder_24x24.png" alt="" class="smallicon" border="0" /> Join this group</a> 
    21     </div> 
    22 </div> 
    23  
    24 <div class="tb-portlet" tal:condition="isAnon"> 
    25     <div class="portlet-title"> 
    26     <a href="#" tal:attributes="href string:$blogurl/join_form" class="linkonbackground"><img src="placeholder_24x24.png" alt="" class="smallicon" border="0" /> Join this group</a> 
    27     </div> 
    28 </div> 
    29  
    30  
    3112<div class="tb-portlet" metal:define-macro="image_div"> 
    3213    <img src="default.png" tal:attributes="src blogobj/getCoverImageURL" height="120" width="160" style="padding: 10px 19px"/> 
    33     <!-- ul displayed for a group --> 
    3414    <ul tal:condition="isMember"> 
    3515        <li><a href="" tal:attributes="href string:$blogurl/change_coverimage">Change cover image</a></li> 
     
    3717        <li><a href="" tal:attributes="href string:$blogurl/leave_group">Leave group</a></li> 
    3818    </ul> 
    39  
     19    <ul tal:condition="python: not isMember and not isAnon"> 
     20        <li><a href="#" tal:attributes="href string:$blogurl/join_group">Join this group</a></li> 
     21    </ul> 
     22    <ul tal:condition="isAnon"> 
     23        <li><a href="#" tal:attributes="href string:$blogurl/join_form">Join this group</a></li> 
     24    </ul> 
    4025</div> 
    4126 
     
    4631</div> 
    4732 
    48  
    4933<div class="tb-portlet" tal:condition="isMember" metal:define-macro="group_members"> 
    5034    <div class="portlet-title"> 
    51     Group members 
     35    <img src="transparent.png" alt="" class="smallicon" /> 
     36    Members 
    5237    </div> 
    5338 
     
    7257<div class="tb-portlet" tal:condition="blogobj/links" metal:define-macro="group_links"> 
    7358    <div class="portlet-title"> 
    74     Group links (Blogroll) 
     59    <img src="transparent.png" alt="" class="smallicon" /> 
     60    Blogroll 
    7561    </div> 
    7662 
Note: See TracChangeset for help on using the changeset viewer.