Sha256: 67d881719ed5aa4dfbd0dd822246639c77f226bf4e4d27e969c07883c2f47222

Contents?: true

Size: 1.98 KB

Versions: 26

Compression:

Stored size: 1.98 KB

Contents

<link rel="stylesheet" href="/css/ramaze_error.css" />
<script type="text/javascript" src="/js/jquery.js"></script>

<p>The backtrace gives filenames and line numbers for all parts of the call stack.<br />
Click on any of them to view the surrounding source code.</p>

<h3>#@title</h3>

<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 class="line" id="#{hash}">
      <td>#{file}</td><td class="lineno">#{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 class="editor" colspan="2">
                #{@editor} #{file} +#{lineno}
                <div style="float: right">
                  <a href="txmt://open?url=file://#{file}&line=#{lineno}">open in textmate</a>
                </div>
              </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>
      </td>
    </tr>
  <?r end ?>
</table>

<?r
  { 'Session'   => Ramaze::STATE[:session],
    'Request'   => Ramaze::STATE[:request],
    'Response'  => Ramaze::STATE[:response],
    'Global'    => Global,
  }.each do |title, content|
    hash = [title, content].object_id.abs
  ?>
  <div class="additional">
    <h3 id="#{hash}">#{title}</h3>
    <pre style="display:none" id="is_#{hash}">#{Rack::Utils.escape_html(content.pretty_inspect)}</pre>
  </div>
<?r end ?>

<script type="text/javascript">
  $("tr.line").click(function(){
    $("tr#source_"+this.id).toggle()
  });

  $("div.additional > h3").click(function(){
    $("pre#is_"+this.id).toggle()
  });
</script>

Version data entries

26 entries across 26 versions & 6 rubygems

Version Path
Pistos-ramaze-2008.09 lib/proto/view/error.xhtml
Pistos-ramaze-2008.12 lib/proto/view/error.xhtml
Pistos-ramaze-2009.01 lib/proto/view/error.xhtml
Pistos-ramaze-2009.02 lib/proto/view/error.xhtml
manveru-ramaze-2008.08 lib/proto/view/error.xhtml
manveru-ramaze-2008.09 lib/proto/view/error.xhtml
manveru-ramaze-2008.10 lib/proto/view/error.xhtml
manveru-ramaze-2008.12 lib/proto/view/error.xhtml
manveru-ramaze-2009.01 lib/proto/view/error.xhtml
ptomato-ramaze-2009.02.1 lib/proto/view/error.xhtml
ptomato-ramaze-2009.02 lib/proto/view/error.xhtml
starapor-slippers-0.0.2 examples/forms/view/error.xhtml
starapor-slippers-0.0.3 examples/forms/view/error.xhtml
starapor-slippers-0.0.5 examples/forms/view/error.xhtml
starapor-slippers-0.0.6 examples/forms/view/error.xhtml
starapor-slippers-0.0.8 examples/forms/view/error.xhtml
starapor-slippers-0.0.9 examples/forms/view/error.xhtml
slippers-0.0.14 examples/forms/view/error.xhtml
slippers-0.0.13 examples/forms/view/error.xhtml
slippers-0.0.12 examples/forms/view/error.xhtml