Sha256: 36cddba6590f5c9dc1cf5138e5ee1db89c24b0523420385294b7e050b46e29ba

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

-count=0
-skip = params[:skip].to_i
%div(data-role="page" data-add-back-btn="true")
  %div(data-role="header")
    %h1
      Failed Jobs for
      &= channel_name_for(@queue.name)
  %div(data-role="content")
    %h1
      Failed Jobs
      ==(#{@errors.count})
    -@errors.each do |document|
      -message = document["message"]
      -count+=1
      %div(data-role="collapsible" data-collapsed=true)
        %h1
          &= "#{humanize_messages(document["message"].last)}: #{document["error"]}"
        =haml :"shared/values", :layout => false, :locals => {:hash => document}
        %div(data-role="navbar" data-iconpos="bottom")
          %ul
            %li
              %a(href="/queues/#{@queue.name}/retry/#{document["_id"]}" data-icon="refresh")
                Retry
            %li
              %a(href="/queues/#{@queue.name}/delete/#{document["_id"]}" data-icon="delete" data-theme="e")
                Delete


  %div(data-role="footer")
    -if skip > 0
      %a(href="/queues/#{@queue.name}/failed?skip=#{params[:skip].to_i-25}")
        Previous
    -if count >= 25
      %a(href="/queues/#{@queue.name}/failed?skip=#{params[:skip].to_i+25}")
        Next

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
magent-0.6.1 lib/magent_web/views/queues/failed.haml
magent-0.6.0 lib/magent_web/views/queues/failed.haml