Sha256: 90dc261d504da7a57a7f00c06e712b2a68762c922f736985419de73aae50e747

Contents?: true

Size: 980 Bytes

Versions: 74

Compression:

Stored size: 980 Bytes

Contents

<%= render :partial => 'home_menu' %>
<div id="overview-wrapper">
<h6>Running tasks</h6>
<table class="overview">
  <% @logs.each do |log| %>
  <tr>
    <td>
      <span class="name"><%= log.name %></span>
      <span class="file"><%= log.file %></span>
    </td>
    <td><%= log.state %></td>
    <td><%= log.job_type %></td>
    <td><%= log.started_at.strftime("%Y-%m-%d %H:%M:%S") %></td>
    <td><%= chronos(@now.to_i - log.started_at.to_i) %></td>
    <td><%= link_to 'kill job', kill_path(log), :class => 'kill'%></td>
  </tr>
  <% end %>
</table>





</div>
<script>
jQuery(function(){
  var toggles = jQuery("a.state-toggle");
  toggles.click(function(e){
    e.preventDefault();
    var link = $(this);
    toggles.removeClass("on");
    link.addClass("on");
    jQuery(link.attr('href')).fadeIn().siblings("li").hide();
  })
  $("a.kill").click(function(e){
    if(confirm("Are you sure you wish to kill this running job?")!=true){e.preventDefault();}
  })
})
</script>

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
myreplicator-1.1.73 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.71 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.69 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.68 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.67 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.66 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.65 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.64 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.63 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.62 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.61 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.58 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.57 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.56 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.55 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.54 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.53 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.52 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.51 app/views/myreplicator/home/index.html.erb
myreplicator-1.1.50 app/views/myreplicator/home/index.html.erb