Sha256: 39752118b9913263acd249ec555d0fe7027fff4e208a03d87bacc483bb55424b
Contents?: true
Size: 2 KB
Versions: 2
Compression:
Stored size: 2 KB
Contents
<html> <head> <title>#{@title}</title> <link rel="stylesheet" href="/css/ramaze_error.css" /> <script type="text/javascript" src="/js/jquery.js"></script> </head> <body> <h1>#{@title}</h1> <table class="main"> <tr class="head"> <td>File</td><td>Line</td><td>Method</td> </tr> <?r @backtrace.each do |lines, hash, file, lineno, meth| ?> <tr id="line_#{hash}" style="background:rgb(#{@colors.shift},200,200);"> <td>#{file}</td><td>#{lineno}</td><td><pre>#{meth}</pre></td> </tr> <tr id="source_#{hash}" style="display:none;"> <td colspan="3"> <div class="source"> <table style="width:100%;"> <tr> <td colspan="2">#{@editor} #{file} +#{lineno}</td> </tr> <?r lines.each do |llineno, lcode, lcurrent| ?> <tr class="source" #{'style="background:#faa;"' if lcurrent}> <td class="lineno">#{llineno}</td> <td class="code"><pre>#{lcode.to_s.rstrip}</pre></td> </tr> <?r end ?> </table> </div> <script type="text/javascript"> $("tr#line_#{hash}").click(function(){$("tr#source_#{hash}").toggle()}); </script> </td> </tr> <?r end ?> </table> <?r { 'Session' => Thread.current[:session], 'Request' => Thread.current[:request], 'Response' => Thread.current[:response], 'Global' => Global, }.each do |title, content| hash = [title, content].object_id.abs ?> <div class="additional"> <h3 id="show_#{hash}">#{title}</h3> <pre style="display:none" id="is_#{hash}">#{CGI.escapeHTML(content.pretty_inspect)}</pre> <script type="text/javascript"> $("h3#show_#{hash}").click(function(){$("pre#is_#{hash}").toggle()}); </script> </div> <?r end ?> </body> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.1.1 | lib/proto/public/error.zmr |
ramaze-0.1.2 | lib/proto/public/error.zmr |