Changeset 431


Ignore:
Timestamp:
09/07/08 16:58:16 (5 years ago)
Author:
dgynn
Message:

CSS cleanup to remove redundancies and fix cases

Location:
trunk/plugins/usermanagerplugin/tracusermanager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/usermanagerplugin/tracusermanager/htdocs/css/macros_um_profile.css

    r22 r431  
    11 
    2 DIV.um_profile_macro TABLE{ 
     2div.um_profile_macro table{ 
    33        border-collapse:separate; 
    44} 
    55 
    6 DIV.um_profile_macro TABLE TD{ 
    7         padding:0px; 
    8         border-width:0px 1px; 
     6div.um_profile_macro table td, div.um_profile_macro table tr{ 
     7        padding:0; 
     8        border-width:0 1px; 
    99} 
    1010 
    11 DIV.um_profile_macro TABLE TR{ 
    12         border-width:0px 1px; 
    13 } 
    14  
    15 DIV.um_profile_macro TABLE TFOOT TH{ 
    16         padding:5px; 
     11div.um_profile_macro table tfoot th{ 
    1712        background-color:#F7F7F0; 
    1813        text-align:right; 
    19         /*border-color:rgb(215, 215, 215) rgb(215, 215, 215) rgb(153, 153, 153); 
    20         border-style:solid; 
    21         border-width:1px;*/ 
    2214        font-size:11px; 
    2315        font-weight:bold; 
    2416        padding:2px 0.5em; 
    25         vertical-align:bottom; 
    2617} 
    2718 
    28 DIV.um_profile_macro span.expander{ 
     19div.um_profile_macro span.expander{ 
    2920        cursor:pointer; 
    30         _cursor:hand; 
    3121        background:url(../img/expander_normal.png) no-repeat 0% 50% ; 
    3222        padding-left:16px; 
    3323} 
    3424 
    35 DIV.um_profile_macro span.expander_open{ 
    36         cursor:pointer; 
    37         _cursor:hand; 
     25div.um_profile_macro span.expander_open{ 
    3826        background:url(../img/expander_open.png) no-repeat 0% 50% ; 
    39         padding-left:16px; 
    4027} 
    4128 
    42 DIV.um_profile_macro .um_profile{ 
    43         /*display:none;*/ 
     29div.um_profile_macro .um_profile{ 
    4430        background:#F7F7F7 none repeat scroll 0%; 
    4531        padding:10px; 
     
    4733} 
    4834 
    49 DIV.um_profile_macro .um_profile .um_profile_picture{ 
     35div.um_profile_macro .um_profile .um_profile_picture{ 
    5036        float:left; 
    5137        width:100px; 
     
    5541} 
    5642 
    57 DIV.um_profile_macro .um_profile .um_profile_picture IMG{ 
     43div.um_profile_macro .um_profile .um_profile_picture img{ 
    5844        width:100px; 
    5945        height:auto; 
    6046} 
    6147 
    62 DIV.um_profile_macro .um_profile .um_profile_field{ 
     48div.um_profile_macro .um_profile .um_profile_field{ 
    6349        list-style-type:none; 
    6450        margin-bottom:2px; 
     
    6652} 
    6753 
    68 DIV.um_profile_macro .um_profile .um_profile_field LABEL { 
     54div.um_profile_macro .um_profile .um_profile_field label { 
    6955        margin:0px 5px; 
    7056        font-weight:bold;        
  • trunk/plugins/usermanagerplugin/tracusermanager/templates/macro_um_profile.html

    r241 r431  
    1 <html xmlns="http://www.w3.org/1999/xhtml" 
    2       xmlns:py="http://genshi.edgewall.org/" 
    3       py:strip=""> 
     1<html xmlns:py="http://genshi.edgewall.org/" py:strip=""> 
    42    <div class="um_profile_macro"> 
    5                 <table class="listing" cellpading="0" cellspacing="0">   
     3                <table class="listing"> 
    64                        <thead> 
    75                                <tr> 
    8                                         <th width="1%" align="left"></th> 
    9                                         <th align="left">User</th> 
    10                                         <th align="left" py:for="cell_dict in sorted(users.cells, lambda x,y:x['order']-y['order'])">${cell_dict.label}</th> 
    11                                 </tr>            
     6                                        <th width="1%"></th> 
     7                                        <th>User</th> 
     8                                        <th py:for="cell_dict in sorted(users.cells, lambda x,y:x['order']-y['order'])">${cell_dict.label}</th> 
     9                                </tr> 
    1210                        </thead> 
    1311                        <tbody> 
     
    1513                                <tr> 
    1614                                        <th rowspan="2"><img src="${href.chrome('tracusermanager')+'/img/user.png'}" /></th> 
    17                                         <th rowspan="1" valign="top" align="left"><span class="expander" for="um_profile_${user.username}" title="Expand Profile">${user.username}</span></th> 
    18                                         <th align="left" py:for="cell_dict in sorted(users.cells, lambda x,y:x['order']-y['order'])" title="${cell_dict.label}">${cell_dict.render_method(cell_dict.name, user)}</th> 
     15                                        <th><span class="expander" for="um_profile_${user.username}" title="Expand Profile">${user.username}</span></th> 
     16                                        <th py:for="cell_dict in sorted(users.cells, lambda x,y:x['order']-y['order'])" title="${cell_dict.label}">${cell_dict.render_method(cell_dict.name, user)}</th> 
    1917 
    2018                                </tr> 
     
    2826                                                        <div class="um_profile_field" py:for="field, attributes in sorted(users.user_profile_fields.items(), lambda x,y:x[1]['order']-y[1]['order'])"> 
    2927                                                                <label>${attributes.label}:</label> 
    30                                                                 <py:choose>                                                                      
     28                                                                <py:choose>      
    3129                                                                        <span py:when="attributes.type=='wikitext'">${users.wiki_to_html(user[field])}</span> 
    3230                                                                        <span py:when="attributes.type=='multichecks'">${user[field] and str(user[field]).replace('|',',') or _('[Blank]')}</span> 
     
    4038                        <tr py:if="len(users.user_profiles)==0"> 
    4139                                <td colspan="${len(users.cells)+2}" align="center">( Empty )</td> 
    42                         </tr>    
     40                        </tr> 
    4341                </tbody> 
    4442                <tfoot> 
Note: See TracChangeset for help on using the changeset viewer.