Changeset 4923

Show
Ignore:
Timestamp:
10/29/09 08:25:11 (4 weeks ago)
Author:
kaminogoya
Message:

Added warning count to theme status block. BugzID #102935

Location:
branches/greyhound
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/greyhound/mt-static/css/structure.css

    r4919 r4923  
    34883488} 
    34893489#list-plugins .plugin-status a.button { 
    3490     display: inline-block; 
    34913490    margin: -3px 0 0 5px; 
    34923491    text-align: center; 
     
    35663565    top: 10px; 
    35673566    right: 10px; 
     3567} 
     3568 
     3569#list-themes .theme-status span,  
     3570#list-themes .theme-status a.button { 
     3571    margin: 0 0 0 5px; 
     3572    text-align: center; 
     3573} 
     3574 
     3575#list-themes .theme-status a {  
     3576    color: #2b2b2b; 
    35683577} 
    35693578 
  • branches/greyhound/tmpl/cms/list_theme.tmpl

    r4917 r4923  
    5353 
    5454    <mt:if name="errors"> 
    55         <span class="alert-error-inline icon-left icon-error"><__trans phrase="Failed"></span> 
     55        <span class="alert-erroricon-left icon-error"><__trans phrase="Failed"></span> 
     56    </mt:if> 
     57 
     58    <mt:if name="warnings"> 
     59        <span class="alert-warning icon-left icon-warning"><a href="#" class="theme-detail-link"><__trans phrase="[quant,_1,warning,warnings]" params="<mt:var name="warning_count">"></a></span> 
    5660    </mt:if> 
    5761 
     
    211215 
    212216<mt:setvarblock name="jq_js_include" append="1"> 
    213     jQuery('a.theme-detail-link').click(function() { 
     217    jQuery('a.theme-detail-link').click(function(event) { 
    214218        jQuery('.theme').not($(this).parents('.theme')).removeClass('theme-expanded') 
    215219        jQuery(this).parents('.theme').toggleClass('theme-expanded'); 
    216         return false; 
     220        event.preventDefault(); 
    217221    }); 
    218222