Sha256: 20afcb85e527365b46f656bc67f95b082b6454dd619d98d3faa908d7a4b5ed74

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

<h1><%= Gossiper::Notification.model_name.human.pluralize %></h1>

<% if notice.present? %>
<div class="alert alert-success"><%= notice %></div>
<% end %>

<table class="table table-striped table-bordered">
  <tr>
    <th><%= t('.kind') %></th>
    <th><%= t('.email') %></th>
    <th><%= t('.delivered_at') %></th>
    <th><%= t('.status') %></th>
    <th><%= t('.read') %></th>
    <th><%= t('.actions') %></th>
  </tr>
  <% @notifications.each do |notification| %>
    <% decorator = Gossiper::NotificationDecorator.new(notification) %>
    <tr>
      <td><%= decorator.kind %></td>
      <td><%= decorator.to %></td>
      <td><%= decorator.delivered_at %></td>
      <td><%= decorator.status %></td>
      <td><%= decorator.read? %></td>
      <td class="actions">
        <%= link_to(
          t('.deliver', default: 'Deliver'),
          deliver_notification_path(notification),
          data: {
            confirm: t('.confirm_delivery', default: t('gossiper.notifications.confirm_delivery')),
            method: :post,
          },
          class: 'btn pull-right'
        ) %>
        <%= link_to(t('.show', default: t('gossiper.notifications.show')), notification_path(notification), class: 'btn pull-right') %>
      </td>
    </tr>
  <% end %>
</table>

<%= paginate(@notifications, theme: :gossiper) %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gossiper-0.5.2 app/views/gossiper/notifications/index.html.erb
gossiper-0.5.1 app/views/gossiper/notifications/index.html.erb
gossiper-0.5.0 app/views/gossiper/notifications/index.html.erb