Sha256: f0e8328be72bfd2b2c1c8eb67c5b2a266d58478810d23b75aa098d619aeaa3f0

Contents?: true

Size: 1.56 KB

Versions: 19

Compression:

Stored size: 1.56 KB

Contents

<table class="highlight">
  <thead>
    <tr>
      <th data-field="resource"><%= t('jera_push.admin.message_devices.attributes.resource') %></th>
      <th data-field="status"><%= t('jera_push.admin.message_devices.attributes.status') %></th>
      <th data-field="message"><%= t('jera_push.admin.message_devices.attributes.metadata') %></th>
      <th data-field="info"><%= t('jera_push.admin.message_devices.attributes.device') %></th>
    </tr>
  </thead>
  <tbody>
    <% message_devices.each do |message_device| %>
      <tr>
        <td>
          <% resource_extras(message_device).each do |attribute| %>
            <div><%= attribute %></div>
          <% end %>
        </td>
        <td>
          <%= message_device.status ? t("jera_push.admin.message_devices.status.#{message_device.status}") : t("jera_push.admin.message_devices.status.undefined") %>
        </td>
        <td>
          <% if message_device.status && message_device.status.error? %>
            <div><%= t('jera_push.admin.message_devices.attributes.error_message') %></div>
            <div><%= message_device.error_message %></div>
          <% end %>

          <% if message_device.status && message_device.status.success? %>
            <div><%= t('jera_push.admin.message_devices.attributes.firebase_id') %></div>
            <div><%= message_device.firebase_id %></div>
          <% end %>
        </td>
        <td>
          <div><%= message_device.device.platform %></div>
          <div><%= message_device.device.token.truncate(20) %></div>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
jera_push-2.1.4 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-2.1.3 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-2.1.2 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-2.0.0 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.2.4 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.2.3 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.2.1 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.1.7 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.1.6 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.1.5 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.1.4 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.1.3 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.1.2 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.1.1 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.1.0 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.0.3 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.0.2 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.0.1.1 app/views/jera_push/admin/messages/_message_device.html.erb
jera_push-1.0.1 app/views/jera_push/admin/messages/_message_device.html.erb