debug.tpl 983 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {*
  2. * Debug
  3. *
  4. * Debug log template
  5. *
  6. * @author Christopher Han <xiphux@gmail.com>
  7. * @copyright Copyright (c) 2013 Christopher Han
  8. * @packge GitPHP
  9. * @subpackage Template
  10. *}
  11. <table class"debug">
  12. <tbody>
  13. {foreach from=$debuglog->GetEntries() item=entry}
  14. <tr>
  15. <td class="debug_key">
  16. {$entry.name|escape}
  17. </td>
  18. <td class="debug_value">
  19. {if $entry.value}
  20. {if strlen($entry.value) > 512}
  21. {$entry.value|truncate:512:'...'|escape}
  22. <br />
  23. <span class="debug_addl">{strlen($entry.value)-512} bytes more in output</span>
  24. {else}
  25. {$entry.value|escape}
  26. {/if}
  27. <br />
  28. {/if}
  29. <span class="debug_toggle">trace</span>
  30. <div class="debug_bt">{$entry.bt|escape}</div>
  31. </td>
  32. <td class="debug_time">
  33. {if $entry.time}
  34. {$entry.time*1000|string_format:"%.1f"} {if $entry.reltime}ms from start{else}ms{/if}
  35. {/if}
  36. </td>
  37. </tr>
  38. {/foreach}
  39. </tbody>
  40. </table>