view_matches.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
---
view_matches.html.erb (2301B)
---
1 <% include_view_javascript %>
2
3 <% call = @result %>
4
5 <h1 class='title'>
6 <%= @result.number %>
7 <% if @job_id %>
8 (<a href="<%= view_analyze_path(@project.id, call.job_id)%>">Back to Job Analysis</a>)
9 <% else %>
10 (<a href="<%= analyze_path(@project.id)%>">Back to Project Analysis</a>)
11 <% end %>
12 </h1>
13
14 <table class='table table-striped table-condensed'>
15 <thead>
16 <tr>
17 <th>Number</th>
18 <th>Type</th>
19 <th>Signal</th>
20 </tr>
21 </thead>
22 <tbody>
23 <tr>
24 <td align='center'>
25 <%= render :partial => 'shared/call_info', :locals => { :call => call } %>
26 </td>
27 <td align='center'>
28 <%= render :partial => 'shared/call_type', :locals => { :call => call } %>
29 </td>
30 <td align='center'>
31 <%= render :partial => 'shared/call_signal', :locals => { :call => call } %>
32 </td>
33 </tr>
34 </tbody>
35 </table><br/><br/>
36
37 <% if @results.length > 0 %>
38
39
40
41 <h1 class='title'><%= pluralize(@results.total_entries, 'Possible Match') %> for <%= @result.number %></h1>
42
43
44 <div class='pull-right'>
45 <%= select_match_scope(@match_scopes, params) %>
46 </div>
47
48 <%= will_paginate @results, :renderer => BootstrapPagination::Rails %>
49
50 <table class='table table-striped table-condensed'>
51 <thead>
52 <tr>
53 <th>Score</th>
54 <th>Number</th>
55 <% case @match_scope %>
56 <% when 'project' %>
57 <th>Job</th>
58 <% when 'global' %>
59 <th>Project</th>
60 <% end %>
61 <th>Type</th>
62 <th>Signal</th>
63 </tr>
64 </thead>
65 <tbody>
66 <% @results.each do |call| %>
67 <tr>
68 <td align='center'>
69 <%= raw(fwd_match_html(call.matchscore)) %>
70 </td>
71 <td align='center'>
72 <%= render :partial => 'shared/call_info', :locals => { :call => call } %>
73 </td>
74 <% case @match_scope %>
75 <% when 'project' %>
76 <td align='center'><%= call.job.id %></td>
77 <% when 'global' %>
78 <td align='center'><%= link_to h(call.project.name), project_path(call.project) %></td>
79 <% end %>
80 <td align='center'>
81 <%= render :partial => 'shared/call_type', :locals => { :call => call } %>
82 </td>
83 <td align='center'>
84 <%= render :partial => 'shared/call_signal', :locals => { :call => call } %>
85 </td>
86 </tr>
87 <% end %>
88 </tbody>
89 </table>
90
91 <%= will_paginate @results, :renderer => BootstrapPagination::Rails %>
92
93
94 <% else %>
95
96 <h1 class='title'>No Matches for <%= @result.number %> (<%= @result.created_at.strftime("%Y-%m-%d") %>)</h1>
97
98 <% end %>