Sha256: e475f14f2238078b0820acfafb1728ca57833b06b8910e2419b7808df69e0bc2

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

-count=0
-skip = params[:skip].to_i
%div(data-role="page" data-add-back-btn="true")
  %div(data-role="header")
    %h1
      Queue:
      &=@title=@database.name+" / #{channel_name_for(@queue.name)}"
    %div{:"data-role" => "navbar"}
      %ul
        %li
          %a(href="#{queue_path(@queue)}/failed" data-icon="alert")
            Failed
        %li
          %a(href="#{queue_path(@queue)}/stats" data-icon="grid")
            Stats


  %div(data-role="content")
    %h1
      Pending Jobs
      ==(#{@messages.count})
    -@messages.each do |document|
      -message = document["message"]
      -count+=1
      %div(data-role="collapsible" data-collapsed=true)
        %h1
          &= "[#{document["priority"]}] #{message.first}: #{humanize_messages(message.last)}"
        =haml :"shared/values", :layout => false, :locals => {:hash => document}

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
magent-0.7.0 lib/magent_web/views/queues/show.haml
magent-0.6.2 lib/magent_web/views/queues/show.haml