inspect.lp 547 B

12345678910111213141516171819202122232425262728293031
  1. <style type="text/css">
  2. #sailor_error_inspect{
  3. border-style: solid;
  4. border-width: 5px;
  5. width: 100%;
  6. }
  7. #sailor_error_inspect td{
  8. padding: 10px;
  9. }
  10. #sailor_error_inspect tr{
  11. background: #ddd;
  12. }
  13. #sailor_error_inspect tr:nth-child(odd){
  14. background: #ddd;
  15. }
  16. #sailor_error_inspect tr:nth-child(even){
  17. background: #fff;
  18. }
  19. </style>
  20. <table id="sailor_error_inspect">
  21. <?lua
  22. for k,v in pairs(page.trace) do ?>
  23. <tr>
  24. <td>
  25. <%= (string.gsub(page:tostring(v),"<br/>","",1)) %>
  26. </td>
  27. </tr>
  28. <?lua end ?>
  29. </table>