anchor.diff:                                  <input type="submit" value="Attach" />
                               </form>
   
  -                            <%if !job['paused'] %>
  +                            <%if job['status'].downcase == 'busy' %>
                               <form action="/dispatchers/<%=port_to_url( job['port'], d_url, true )%>/pause" method="post">
                                   <%= csrf_tag %>
                                   <input type="submit" value="Pause" />
                               </form>
                               <%end%>
   
  -                            <%if job['paused'] %>
  +                            <%if job['status'].downcase == 'paused' %>
                               <form action="/dispatchers/<%=port_to_url( job['port'], d_url, true )%>/resume" method="post">
                                   <%= csrf_tag %>
                                   <input type="submit" value="Resume" />
  
positive.code:                 <td><%=job['port']%></td>
                  <td><%=escape( job['owner'] )%></td>
  
                  <%if !job['paused'] %>
                      <td>Running</td>
                  <% else %>
                      <td>Paused</td>
                  <% end %>
  
                  <td><%=job['starttime'].to_time%></td>
                  <td><%=job['currtime'].to_time%></td>
  
negative.code:         <% end %>
          </table>
          <% else %>
          <br/><br/>
          <span class="notice"> There are no running scans at the moment.</span>
          <% end %>
  
          <br/><br/>
  
          <% end %>
  
              <script type="text/javascript">
                  //<![CDATA[
  
                  function showDialog( id ){
                      $( id ).dialog({
                          height: 350,
                          width: 300,
                          modal: true
                      });
                  }
               //]]>
              </script>
  