<%= t('CurrentMessagesInQueue', :queue => h(@name)) %> <% if @queue.paused? %> <%= t('Paused') %> <% end %> <%= number_with_delimiter(@total_size) %>

<%= erb :_paging, locals: { url: "#{root_path}queues/#{CGI.escape(@name)}" } %>
<% @messages.each_with_index do |msg, index| %> <% if params[:direction] == 'asc' %> <% else %> <% end %> <% end %>
# <%= sort_direction_label %> <%= t('Job') %> <%= t('Arguments') %>
<%= @count * (@current_page - 1) + index + 1 %><%= @total_size - (@count * (@current_page - 1) + index) %> <%= h(msg.display_class) %> <%= display_tags(msg, nil) %> <% a = msg.display_args %> <% if a.inspect.size > 100 %> <%= h(a.inspect[0..100]) + "... " %>
<%= display_args(a) %>
<% else %> <%= display_args(msg.display_args) %> <% end %>
<%= csrf_tag %>
<%= erb :_paging, locals: { url: "#{root_path}queues/#{@name}" } %>