Sha256: 37522c9f35038b2d977fa577a48245e496596fde88bda835235503f5aff70a85
Contents?: true
Size: 1.35 KB
Versions: 6
Compression:
Stored size: 1.35 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> <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><%= msg.last_message.subject.html_safe %></td> <td><%= msg.last_message.body.html_safe %></td> <td> <%= link_to hyrax.notification_path(msg.id), class: "itemicon itemtrash", title: t('hyrax.mailbox.delete'), method: :delete do %> <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
6 entries across 6 versions & 1 rubygems