Changeset 20473


Ignore:
Timestamp:
2011/03/03 16:35:02 (13 years ago)
Author:
kimoto
Message:

smartyのdebugコンソールが動かないのを修正
admin_modeの際に埋め込み

Location:
branches/version-2_5-dev/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/admin/main_frame.tpl

    r20407 r20473  
    155155 
    156156</div> 
     157    <!--{if $smarty.const.ADMIN_MODE == 1}--> 
     158    <!--{debug output='html'}--> 
     159    <!--{/if}--> 
    157160</body> 
    158161</html> 
  • branches/version-2_5-dev/data/module/Smarty/libs/debug.tpl

    r20119 r20473  
    1010<style type="text/css"> 
    1111/* <![CDATA[ */ 
    12 body, h1, h2, td, th, p { 
    13     font-family: sans-serif; 
    14     font-weight: normal; 
    15     font-size: 0.9em; 
    16     margin: 1px; 
    17     padding: 0; 
    18 } 
    19  
    20 h1 { 
    21     margin: 0; 
    22     text-align: left; 
    23     padding: 2px; 
    24     background-color: #f0c040; 
    25     color:  black; 
    26     font-weight: bold; 
    27     font-size: 1.2em; 
    28  } 
    29  
    30 h2 { 
    31     background-color: #9B410E; 
    32     color: white; 
    33     text-align: left; 
    34     font-weight: bold; 
    35     padding: 2px; 
    36     border-top: 1px solid black; 
    37 } 
    38  
    39 body { 
    40     background: black;  
    41 } 
    42  
    43 p, table, div { 
    44     background: #f0ead8; 
    45 }  
    46  
    47 p { 
    48     margin: 0; 
    49     font-style: italic; 
    50     text-align: center; 
    51 } 
    52  
    53 table { 
    54     width: 100%; 
    55 } 
    56  
    57 th, td { 
    58     font-family: monospace; 
    59     vertical-align: top; 
    60     text-align: left; 
    61     width: 50%; 
    62 } 
    63  
    64 td { 
    65     color: green; 
    66 } 
    67  
    68 .odd { 
    69     background-color: #eeeeee; 
    70 } 
    71  
    72 .even { 
    73     background-color: #fafafa; 
    74 } 
    75  
    7612.exectime { 
    7713    font-size: 0.8em; 
     
    10137    <font color={if $_debug_tpls[templates].type eq "template"}brown{elseif $_debug_tpls[templates].type eq "insert"}black{else}green{/if}> 
    10238        {$_debug_tpls[templates].filename|escape:html}</font> 
    103     {if isset($_debug_tpls[templates].exec_time)} 
     39    {if isset($_debug_tpls[templates].exec_time|smarty:nodefaults)} 
    10440        <span class="exectime"> 
    10541        ({$_debug_tpls[templates].exec_time|string_format:"%.5f"}) 
     
    13975</html> 
    14076{/capture} 
    141 {if isset($_smarty_debug_output) and $_smarty_debug_output eq "html"} 
     77{if isset($_smarty_debug_output|smarty:nodefaults) and $_smarty_debug_output eq "html"} 
    14278    {$debug_output} 
    14379{else} 
Note: See TracChangeset for help on using the changeset viewer.