Sha256: fffe95c758fcfaf9b9f6014a5819667bfd41ddbd1be8c264b7ca2316cd935b0c

Contents?: true

Size: 1.61 KB

Versions: 15

Compression:

Stored size: 1.61 KB

Contents

<div class="messages-show-container">

  <div class="details">
    <h3><%= t('jera_push.active_record.model.message.one') %></h3>

    <span class="field">
      <%= t('jera_push.active_record.messages.attributes.id') %>
    </span>
    <blockquote class="json-message"><%= @message.id %></blockquote>

    <span class="field">
      <%= t('jera_push.active_record.messages.attributes.content') %>
    </span>
    <blockquote class="json-message"><%= @message.display_content %></blockquote>

    <% unless @message.kind.broadcast? %>
      <span class="field">
        <%= t('jera_push.active_record.messages.attributes.status') %>
      </span>
      <blockquote class="json-message">
        <%= @message.status %>
        <%= t('jera_push.admin.messages.failures', value: @message.failure_count) %>
        <%= t('jera_push.admin.messages.success', value: @message.success_count) %>
      </blockquote>
    <% end %>
  </div>

  <% if @message.kind.broadcast? %>
    <h3><%= JeraPush::Message.kind.broadcast.text %></h3>

    <div class="message-info">
      <%= render partial: 'jera_push/admin/messages/broadcast_message', message: @message %>
    </div>
  <% else %>
    <div class="devices">
      <h3><%= t('jera_push.active_record.model.device.other') %></h3>

      <%= render partial: 'jera_push/admin/devices/filter', locals: {filter_path: message_devices_filter_jera_push_admin_message_path(@message), filter: @filter} %>

      <div class="devices-list" id="device_list">
        <%= render partial: 'jera_push/admin/messages/message_device', locals: {message_devices: @message_devices} %>
      </div>
    </div>
  <% end -%>

</div>

Version data entries

15 entries across 15 versions & 1 rubygems

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