Sha256: 34e1256c962f2e5074c7528d273e9123dae901e54797a7d8da85673df8e7b793

Contents?: true

Size: 1.67 KB

Versions: 13

Compression:

Stored size: 1.67 KB

Contents

<div class="subnav subnav-fixed">
  <ul class="nav nav-pills">
    <% failed.sort_by { |f| -f['total'] }.each do |f| %>
    <li><a href="#<%= sanitize_attr(f['type']) %>" data-toggle="tab"><%= f['type'] %> (<%= f['total'] %>)</a></li>
    <% end %>
  </ul>
</div>

<div id="alerts" style="margin-top: 40px"></div>

<% if failed.empty? %>
  <div class="page-header">
    <h1>No Failed Jobs <small>You Have Done Well!</small></h1>
  </div>
<% else %>
  <div class="page-header">
    <h1>Failed Jobs <small>Failure is a Part of Success!</small></h1>
  </div>
<% end %>

<div class="tab-content">
  <% failed.sort_by { |f| -f['total'] }.each do |f| %>
  <div class="tab-pane active" id="<%= sanitize_attr(f['type']) %>">
    <div class="page-header">
      <div class="row">
        <div class="span8">
          <h2>
            <a href="<%= u "/failed/#{f['type']}" %>"><%= f['type'] %></a> | <%= f['total'] %> <small>Jobs</small
          </h2>
        </div>
        <div class="span4">
          <div class="btn-group" style="float:right; margin-top: 5px">
            <button class="btn btn-danger" title="cancel" onclick="confirmation(this, 'Cancel?', function() { cancelall('<%= f['type'] %>', fade) })"><i class="icon-remove"></i></button>
            <button class="btn btn-success" title="retry all" onclick="retryall('<%= f['type'] %>', fade)"><i class="icon-repeat"></i></button>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="span12">
        <% f['jobs'][0..5].each do |job| %>
        <%= erb :_job, :layout => false, :locals => { :job => job, :queues => queues, :brief => true } %>
        <% end %>
      </div>
    </div>
  </div>
  <% end %>
</div>

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
reqless-0.0.5 lib/reqless/server/views/failed.erb
reqless-0.0.4 lib/reqless/server/views/failed.erb
reqless-0.0.3 lib/reqless/server/views/failed.erb
reqless-0.0.2 lib/reqless/server/views/failed.erb
reqless-0.0.1 lib/reqless/server/views/failed.erb
qless-0.10.5 lib/qless/server/views/failed.erb
qless-0.10.4 lib/qless/server/views/failed.erb
qless-0.10.3 lib/qless/server/views/failed.erb
qless-0.10.2 lib/qless/server/views/failed.erb
qless-0.10.1 lib/qless/server/views/failed.erb
qless-0.10.0 lib/qless/server/views/failed.erb
qless-0.9.3 lib/qless/server/views/failed.erb
qless-0.9.2 lib/qless/server/views/failed.erb