Sha256: e3083199a10c66fdb590015cdfab8bbf3c448efc6ca750bac16beb55e9ed4456

Contents?: true

Size: 1.69 KB

Versions: 3

Compression:

Stored size: 1.69 KB

Contents

<li class="job" id="message_<%= message.message_id %>">
  <input type="checkbox" class="bulk_check" id="batch_action_item_<%= message.message_id %>" value="<%= message.message_id %>/<%= queue[:name] %>" name="message_collection[]" form="bulk_action_form"/>
  <dl>
    <dt>ID</dt>
    <dd>
      <a name="<%= message.message_id %>"></a>
      <a href="#<%= message.message_id %>"><%=h message.message_id %></a>
      <div class="controls">
        <form action="<%= u("remove/#{queue[:name]}/#{message.message_id}") %>" method="post">
          <%= csrf_token_tag %>
          <input class="remove_single" type="submit" value="Remove" />
        </form>
        or
        <form action="<%= u("requeue/#{queue[:name]}/#{message.message_id}") %>" method="post">
          <%= csrf_token_tag %>
          <input type="submit" value="Move to Source Queue" />
        </form>
      </div>
    </dd>
    <% if message.attributes["ApproximateReceiveCount"] %>
      <dt>Receive Count</dt>
      <dd><%=h message.attributes["ApproximateReceiveCount"] %></dd>
    <% end %>
    <dt>Queue Name</dt>
    <dd><%=h queue[:name] %></dd>
    <dt>Origin Queue</dt>
    <dd><%=h queue[:source_url] %></dd>
    <dt>Message Body</dt>
    <dd>
    <pre><%=h message.body %></pre>
    </dd>
    <dt>Raw Message</dt>
    <dd>
      <div class="backtrace">
        <pre><%=h message.inspect.to_yaml[0..100] + '...' %></pre>
      </div>
      <a class="backtrace" href="#">Toggle full message</a>
      <div class="backtrace full hide">
        <pre><%=h message.inspect.to_yaml %></pre>
      </div>
    </dd>
    <dt>Enqueued At</dt>
    <dd class="time">
      <%=h Time.at(message.attributes["SentTimestamp"].to_i/1000).rfc822 %>
    </dd>
  </dl>
</li>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sqs_web-0.0.4 lib/sqs_web/application/views/message.erb
sqs_web-0.0.3 lib/sqs_web/application/views/message.erb
sqs_web-0.0.2 lib/sqs_web/application/views/message.erb