check.html.erb - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
 (HTM) git clone git://jay.scot/warvox
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       check.html.erb (3034B)
       ---
            1 
            2 <h1>Getting Started Checklist</h1>
            3 
            4 <!--
            5                 @has_project  = ( Project.count > 0 )
            6                 @has_provider = ( Provider.count > 0 )
            7                 @has_job      = ( Job.count > 0 )
            8                 @has_result   = ( Call.where(:completed => true ).count > 0 )
            9                 @has_analysis = ( Call.where(:processed => true ).count > 0 )
           10 -->
           11 
           12 <br/>
           13 
           14 <div class="check-item">1. Create a project to encapsulate your work</div>
           15 <div class="check-result">
           16         <% if @has_project %>
           17                 <div class="alert alert-success">
           18                         <strong>Looks good!</strong>
           19                         <p>You have created a new project.</p>
           20                 </div>
           21         <% else %>
           22                 <div class="alert alert-error">
           23                         <strong>Woops!</strong>
           24                         <p>You need to <a href="<%= new_project_path %>">create a project</a> first.</p>
           25                 </div>
           26         <% end %>
           27 </div>
           28 
           29 
           30 <div class="check-item">2. Configure at least one VoIP Provider</div>
           31 <div class="check-result">
           32         <% if @has_provider %>
           33                 <div class="alert alert-success">
           34                         <strong>Perfect!</strong>
           35                         <p>You have a VoIP provider configured.</p>
           36                 </div>
           37         <% else %>
           38                 <div class="alert alert-error">
           39                         <strong>This is the hard one</strong>
           40                         <p>You need to <a href="<%= providers_path %>">configure a valid VoIP provider</a> first.</p>
           41                 </div>
           42         <% end %>
           43 </div>
           44 
           45 
           46 <div class="check-item">3. Dial a list of telephone numbers</div>
           47 <div class="check-result">
           48         <% if @has_job %>
           49                 <div class="alert alert-success">
           50                         <strong>Congratulations!</strong>
           51                         <p>You have already launched a dialer job.</p>
           52                 </div>
           53         <% else  %>
           54                 <div class="alert alert-error">
           55                         <strong>Ring Ring!</strong>
           56                         <% if @has_project %>
           57                                 <p>You need to <a href="<%= new_job_path(Project.last) %>">dial your target range</a> to gather audio data.</p>
           58                         <% else %>
           59                                 <p>You need to <a href="<%= new_project_path %>">create a project</a>.</p>
           60                         <% end %>
           61                 </div>
           62         <% end %>
           63 </div>
           64 
           65 
           66 <div class="check-item">4. Gather an audio sample from at least one line</div>
           67 <div class="check-result">
           68         <% if @has_result %>
           69                 <div class="alert alert-success">
           70                         <strong>Woohoo!</strong>
           71                         <p>You have already captured some audio data.</p>
           72                 </div>
           73         <% else %>
           74                 <div class="alert alert-error">
           75                         <strong>Sad Trombone!</strong>
           76                         <% if @has_project %>
           77                                 <p>You need to dial some numbers that answer.
           78                                 Double check your VoIP settings and make sure the target numbers are picking up.</p>
           79                         <% else %>
           80                                 <p>You need to <a href="<%= new_project_path %>">create a project</a> first.</p>
           81                         <% end %>
           82                 </div>
           83         <% end %>
           84 </div>
           85 
           86 
           87 <div class="check-item">5. Analyze captured audio samples and extract signatures</div>
           88 <div class="check-result">
           89         <% if @has_analysis %>
           90                 <div class="alert alert-success">
           91                         <strong>Dayum!</strong>
           92                         <p>You are good to go.</p>
           93                 </div>
           94         <% else %>
           95                 <div class="alert alert-error">
           96                         <strong>Crunch Time</strong>
           97                         <% if @has_project and @has_result %>
           98                                 <p>Access the <a href="<%= analyze_path(Project.last) %>">Analysis</a> tab and start crunching audio samples.</p>
           99                         <% else %>
          100                                 <p>You need to create a project and successfully dial some numbers first.</p>
          101                         <% end %>
          102                 </div>
          103         <% end %>
          104 </div>