Sha256: c6b4161b4e8d28c9fd0ac22388ea8ccee39134d8b5237838271bd6072b93f494

Contents?: true

Size: 726 Bytes

Versions: 1

Compression:

Stored size: 726 Bytes

Contents

<h1>Device tokens</h1>
<h2><small>Total: <%= @device_tokens.count %></small></h2>

<% if @device_tokens.empty? %>
  
  <%= render partial: 'empty_view' %>
  
<% else %>

  <%= paginate @device_tokens %>

  <table class='table table-striped'>
   <thead>
    <tr>
      <th>Token</th>
      <th>Device ID</th>
      <th>Device Name</th>
      <th width="200px">Date added</th>
    </tr>
   </thead>
   <tbody>
      <% @device_tokens.each do |t| %>
       <tr>
        <td><%= t.token %> </td>
        <td><%= t.device_id %></td>
        <td><%= t.device_name %></td>
        <td><%= t.updated_at.strftime("%d-%m-%Y %H:%M") %></td>
       </tr>
      <% end %>
   </tbody>
  </table>

  <%= paginate @device_tokens %>

<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fwt_push_notification_server-0.0.6 app/views/fwt_push_notification_server/device_tokens/index.html.erb