Sha256: f958e7077e3a07b9bed995e925d104b6fe431b565b90b9db5d6207aa7482475a

Contents?: true

Size: 1.51 KB

Versions: 42

Compression:

Stored size: 1.51 KB

Contents

<% if messages.present? %>
  <div class="table-responsive">
    <table class="table table-striped datatable">
      <thead>
        <tr>
          <th><%= t('hyrax.mailbox.date') %></th>
          <th><%= t('hyrax.mailbox.subject') %></th>
          <th><%= t('hyrax.mailbox.message') %></th>
          <th><span class="sr-only"><%= t('hyrax.mailbox.delete') %></span></th>
        </tr>
      </thead>
      <tbody>
        <% messages.each do |msg| %>
          <tr>
            <td data-sort="<%= msg.last_message.created_at.getutc.iso8601(5) %>">
              <relative-time datetime="<%= msg.last_message.created_at.getutc.iso8601 %>" title="<%= msg.last_message.created_at.to_formatted_s(:standard) %>">
                <%= msg.last_message.created_at.to_formatted_s(:long_ordinal) %>
              </relative-time>
            </td>
            <td><%= sanitize msg.last_message.subject %></td>
            <td><%= sanitize msg.last_message.body %></td>
            <td>
              <%= link_to hyrax.notification_path(msg.id),
                      class: "itemicon itemtrash",
                      title: t('hyrax.mailbox.delete'),
                      method: :delete do %>
                  <span class="sr-only"><%= I18n.t('hyrax.dashboard.delete_notification') %></span>
                <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
                <% end %>
            </td>
          </tr>
          <% end %>
      </tbody>
    </table>
  </div>
<% else %>
  <p><%= t('hyrax.mailbox.empty') %></p>
<% end %>

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/views/hyrax/notifications/_notifications.html.erb
hyrax-3.5.0 app/views/hyrax/notifications/_notifications.html.erb
hyrax-3.4.2 app/views/hyrax/notifications/_notifications.html.erb
hyrax-3.4.1 app/views/hyrax/notifications/_notifications.html.erb
hyrax-3.4.0 app/views/hyrax/notifications/_notifications.html.erb
hyrax-3.3.0 app/views/hyrax/notifications/_notifications.html.erb
hyrax-3.2.0 app/views/hyrax/notifications/_notifications.html.erb
hyrax-2.9.6 app/views/hyrax/notifications/_notifications.html.erb
hyrax-3.1.0 app/views/hyrax/notifications/_notifications.html.erb
hyrax-2.9.5 app/views/hyrax/notifications/_notifications.html.erb
hyrax-3.0.2 app/views/hyrax/notifications/_notifications.html.erb
hyrax-3.0.1 app/views/hyrax/notifications/_notifications.html.erb
hyrax-3.0.0 app/views/hyrax/notifications/_notifications.html.erb
hyrax-3.0.0.pre.rc4 app/views/hyrax/notifications/_notifications.html.erb
hyrax-2.9.4 app/views/hyrax/notifications/_notifications.html.erb
hyrax-3.0.0.pre.rc3 app/views/hyrax/notifications/_notifications.html.erb
hyrax-2.9.3 app/views/hyrax/notifications/_notifications.html.erb
hyrax-2.9.2 app/views/hyrax/notifications/_notifications.html.erb
hyrax-2.9.1 app/views/hyrax/notifications/_notifications.html.erb
hyrax-2.9.0 app/views/hyrax/notifications/_notifications.html.erb