Sha256: 00e2c6257788d0b6c7105786c30eb2aeb53d73da3d5a91f03c586063782922bd

Contents?: true

Size: 1.09 KB

Versions: 7

Compression:

Stored size: 1.09 KB

Contents

<% decorator = Gossiper::NotificationDecorator.new(@notification) %>

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

<table class="table table-striped table-bordered">
  <% %w(kind subject to user_class user_id delivered_at status read created_at updated_at).each do |attribute| %>
    <tr>
      <th class="title"><%= Gossiper::Notification.human_attribute_name(attribute) rescue t(".#{attribute}") %></th>
      <td><%= decorator.send(attribute) %></td>
    </tr>
  <% end %>

    <tr>
      <th class="title"><%= Gossiper::Notification.human_attribute_name('email_body') rescue t("email_body") %></th>
      <td><pre><%= decorator.email_object %></pre></td>
    </tr>

</table>

<div class="form-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('.back', default: t('gossiper.notifications.back')), :notifications, class: "btn pull-right") %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gossiper-0.3.6 app/views/gossiper/notifications/show.html.erb
gossiper-0.3.5 app/views/gossiper/notifications/show.html.erb
gossiper-0.3.4 app/views/gossiper/notifications/show.html.erb
gossiper-0.3.3 app/views/gossiper/notifications/show.html.erb
gossiper-0.3.2 app/views/gossiper/notifications/show.html.erb
gossiper-0.3.1 app/views/gossiper/notifications/show.html.erb
gossiper-0.3.0 app/views/gossiper/notifications/show.html.erb