Sha256: 4b2cc45dc99f19393eca076894e0514c7201221e1d84b2928fee35ac958dad16

Contents?: true

Size: 1.88 KB

Versions: 3

Compression:

Stored size: 1.88 KB

Contents

        <div id="page-intro">
            <h2>Reports</h2>
            <p>This page allows you to review the results of the scans you have performed and export them in various formats.
            <br/><br/>
            </p>

            <% if report_count > 0 %>
                <form action="/reports/formats" method="get">
                    <input type="submit" value="View formats" />
                </form>

                <form action="/reports/delete" method="post">
                    <%= csrf_tag %>
                    <input type="submit" value="Delete all" />
                </form>
            <% end %>

        </div>
        <%= erb :flash, {:layout => false} %>

        <% if !reports.empty? %>
        <table>
            <tr>
                <th>ID</th>
                <th>Host</th>
                <th>Issue count</th>
                <th>Audit date</th>
                <th>Report formats</th>
            </tr>
        <% reports.each do |report| %>
            <tr>


                <td><%=report.id%></td>
                <td><%=report.host%></td>
                <td><%=report.issue_count%></td>
                <td><%=report.datestamp.to_time%></td>

                <td>
                    <ul class="reports">
                    <% available.each do |avail| %>
                    <li><a href="/report/<%=report.id%>.<%=avail['rep_name']%>"><%=escape(avail['name'])%></a></li>
                    <%end%>
                    </ul>
                </td>

                <td>
                    <form action="/report/<%=report.id%>/delete" method="post">
                        <%= csrf_tag %>
                        <input type="submit" value="Delete" />
                    </form>
                </td>
            </tr>
        <% end %>
        </table>
        <% else %>
        <span class="notice"> There are no available reports at the moment.</span>
        <% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arachni-0.4.0.2 lib/arachni/ui/web/server/views/reports.erb
arachni-0.4.0.1 lib/arachni/ui/web/server/views/reports.erb
arachni-0.4 lib/arachni/ui/web/server/views/reports.erb