Changeset 4926

Show
Ignore:
Timestamp:
10/29/09 09:21:58 (4 weeks ago)
Author:
asawada
Message:

Don't show errors and warnings for current theme. bugzid:102934.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/greyhound/tmpl/cms/list_theme.tmpl

    r4923 r4926  
    5151 
    5252    <div class="theme-status"> 
    53  
    54     <mt:if name="errors"> 
    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> 
    60     </mt:if> 
    61  
     53    <mt:unless name="current"> 
     54        <mt:if name="errors"> 
     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> 
     60        </mt:if> 
     61    </mt:unless> 
    6262    <mt:if name="blog_id"> 
    6363        <mt:unless name="current"> 
     
    112112    </mt:if> 
    113113 
    114     <mt:if name="errors"> 
    115         <p class="error-text"><a href="#theme-<mt:var name="id">-errors" class="theme-detail-link"><__trans phrase="This theme cannot be applied to the website due to [_1] errors" params="<mt:var name="error_count">"></p> 
    116     </mt:if> 
    117  
     114    <mt:unless name="current"> 
     115        <mt:if name="errors"> 
     116            <p class="error-text"><a href="#theme-<mt:var name="id">-errors" class="theme-detail-link"><__trans phrase="This theme cannot be applied to the website due to [_1] errors" params="<mt:var name="error_count">"></p> 
     117        </mt:if> 
     118    </mt:unless> 
    118119    </div> 
    119120 
     
    121122 
    122123        <ul class="theme-tabs-list"> 
    123     <mt:if name="errors"> 
    124             <li><a href="#theme-<mt:var name="id">-errors"><__trans phrase="Errors"></a></li> 
    125     </mt:if> 
    126     <mt:if name="warnings"> 
    127             <li><a href="#theme-<mt:var name="id">-warnings"><__trans phrase="Warnings"></a></li> 
    128     </mt:if> 
     124    <mt:unless name="current"> 
     125        <mt:if name="errors"> 
     126                <li><a href="#theme-<mt:var name="id">-errors"><__trans phrase="Errors"></a></li> 
     127        </mt:if> 
     128        <mt:if name="warnings"> 
     129                <li><a href="#theme-<mt:var name="id">-warnings"><__trans phrase="Warnings"></a></li> 
     130        </mt:if> 
     131    </mt:unless> 
    129132    <mt:if name="info"> 
    130133            <li><a href="#theme-<mt:var name="id">-info"><__trans phrase="Info"></a></li> 
     
    132135        </ul> 
    133136 
    134     <mt:if name="errors"> 
    135         <div id="theme-<mt:var name="id">-errors" class="theme-errors theme-info"> 
    136             <h4><__trans phrase="Theme Errors"></h4> 
    137             <mtapp:statusmsg 
    138                 id="saved-added" 
    139                 class="error" 
    140                 can_close="0"> 
    141                 <p><__trans phrase="This theme cannot be applied to the website due to [_1] errors" params="<mt:var name="error_count">"></p> 
    142             </mtapp:statusmsg> 
    143             <ul> 
    144             <mt:loop name="errors"> 
    145                <li><mt:var name="__value__"></li> 
    146             </mt:loop> 
    147             </ul> 
    148         </div> 
    149     </mt:if> 
    150  
    151     <mt:if name="warnings"> 
    152         <div id="theme-<mt:var name="id">-warnings" class="theme-warnings theme-info"> 
    153             <h4><__trans phrase="Theme Warnings"></h4> 
    154             <mtapp:statusmsg 
    155                 id="saved-added" 
    156                 class="alert" 
    157                 can_close="0"> 
    158                 <p><__trans phrase="Portions of this theme cannot be applied to the website. [_1] elements will be skipped." params="<mt:var name="warning_count">"></p> 
    159             </mtapp:statusmsg> 
    160             <ul> 
    161             <mt:loop name="warnings"> 
    162                 <li><mt:var name="__value__"></li> 
    163             </mt:loop> 
    164             </ul> 
    165         </div> 
    166     </mt:if> 
     137    <mt:unless name="current"> 
     138        <mt:if name="errors"> 
     139            <div id="theme-<mt:var name="id">-errors" class="theme-errors theme-info"> 
     140                <h4><__trans phrase="Theme Errors"></h4> 
     141                <mtapp:statusmsg 
     142                    id="saved-added" 
     143                    class="error" 
     144                    can_close="0"> 
     145                    <p><__trans phrase="This theme cannot be applied to the website due to [_1] errors" params="<mt:var name="error_count">"></p> 
     146                </mtapp:statusmsg> 
     147                <ul> 
     148                <mt:loop name="errors"> 
     149                   <li><mt:var name="__value__"></li> 
     150                </mt:loop> 
     151                </ul> 
     152            </div> 
     153        </mt:if> 
     154     
     155        <mt:if name="warnings"> 
     156            <div id="theme-<mt:var name="id">-warnings" class="theme-warnings theme-info"> 
     157                <h4><__trans phrase="Theme Warnings"></h4> 
     158                <mtapp:statusmsg 
     159                    id="saved-added" 
     160                    class="alert" 
     161                    can_close="0"> 
     162                    <p><__trans phrase="Portions of this theme cannot be applied to the website. [_1] elements will be skipped." params="<mt:var name="warning_count">"></p> 
     163                </mtapp:statusmsg> 
     164                <ul> 
     165                <mt:loop name="warnings"> 
     166                    <li><mt:var name="__value__"></li> 
     167                </mt:loop> 
     168                </ul> 
     169            </div> 
     170        </mt:if> 
     171    </mt:unless> 
    167172 
    168173    <mt:if name="info">