URI: 
       index.html.erb - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
  HTML git clone git://jay.scot/warvox
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
       index.html.erb (2033B)
       ---
            1 <% if @jobs.length > 0 %>
            2 <h1 class='title'>Completed Jobs</h1>
            3 
            4 <%= will_paginate @jobs, :renderer => BootstrapPagination::Rails %>
            5 <table class='table table-striped table-condensed' width='90%'>
            6   <thead>
            7   <tr>
            8     <th>ID</th>
            9     <th>Range</th>
           10   <th>CallerID</th>
           11     <th>Connected</th>
           12     <th>Date</th>
           13     <th>Actions</th>
           14   </tr>
           15   </thead>
           16   <tbody>
           17 
           18 <% @jobs.each do |job|  %>
           19   <tr>
           20     <td><%= job.id %></td>
           21     <td><%= job.range %></td>
           22     <td><%= job.cid_mask %></td>
           23     <td><%= (
           24     job.calls.where("analysis_completed_at IS NOT NULL").count.to_s +
           25     "/" +
           26     job.calls.count.to_s
           27   )%></td>
           28     <td><%= job.started_at.localtime.strftime("%Y-%m-%d %H:%M:%S") %></td>
           29 
           30     <td>
           31 
           32         <a role="button" class="btn" href="<%= view_call_path(@project,job) %>" rel="tooltip" title="View Call Connections"><i class="fa fa-bar-chart"></i></a>
           33 
           34     <% if job.calls.where("analysis_completed_at IS NOT NULL").count > 0 %>
           35       <a role="button" class="btn" href="<%= analyze_call_path(@project,job) %>" rel="tooltip" title="View Call Analysis"><i class="fa fa-pie-chart"></i></a>
           36       <a role="button" class="btn" href="<%= reanalyze_call_path(@project,job) %>" data-confirm="Reprocess this job?" rel="nofollow tooltip" title="Rerun Call Analysis"><i class="fa fa-refresh"></i></a>
           37     <% else %>
           38       <a role="button" class="btn" href="<%= analyze_call_path(@project,job) %>" data-confirm="Analyze this job?" rel="nofollow tooltip" title="Run Call Analysis"><i class="fa fa-bolt"></i></a>
           39     <% end %>
           40 
           41       <a role="button" class="btn" href="<%= call_path(@project,job) %>" data-confirm="Delete all data for this job?" data-method="delete" rel="nofollow tooltip" title="Delete Call Data"><i class="fa fa-trash"></i></a>
           42   </td>
           43   </tr>
           44 
           45 <% end %>
           46 </tbody>
           47 </table>
           48 
           49 <%= will_paginate @jobs, :renderer => BootstrapPagination::Rails %>
           50 
           51 <% else %>
           52 
           53 <h1 class='title'>No Completed Jobs</h1>
           54 <br/>
           55 
           56 <% end %>
           57 
           58 <a role="button" class="btn" href="<%= new_dialer_job_path %>"><i class="fa fa-plus"></i> Start Job </a>