Sha256: df74fa04b7c3d6f3a3bf11c14246b31663bbac30d711a227ce3f396348df46e9

Contents?: true

Size: 829 Bytes

Versions: 21

Compression:

Stored size: 829 Bytes

Contents

<% if frame.line.to_i > 0 && frame.url == page.dom.url %>
    <strong>
        <a
        id="<%= id %>-source-page"
        href="<%= id_to_location id %>/source/page">
            Page
        </a>
    </strong>

    <%=
        code_highlight(
                page.body, :html,
                from:      frame.line - 5,
                to:        frame.line + 5,
                anchor_id: "#{id}-source-page",
                breakpoint: frame.line
        )
    %>
<% end %>

<% if !frame.function.source.to_s.empty? %>
    <strong>
        <a
        id="<%= id %>-source-function"
        href="<%= id_to_location id %>/source/function">
            Function
        </a>
    </strong>

    <%= code_highlight( frame.function.source, :javascript,
                        anchor_id: "#{id}-source-function" ) %>
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
arachni-1.6.1.3 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.6.1.2 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.6.1.1 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.6.1 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.6.0 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.5.1 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.5 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.4 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.3.2 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.3.1 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.3 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.2.1 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.2 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.1 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.0.6 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.0.5 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.0.4 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.0.3 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.0.2 components/reporters/html/default/issue/page/sink/frame/source.erb
arachni-1.0.1 components/reporters/html/default/issue/page/sink/frame/source.erb