tab/app/views/notifications/_index.html.haml

16 lines
334 B
Text
Raw Normal View History

2017-01-09 16:22:58 +01:00
%h4= title
%table.pure-table
%thead
%tr
%th Message
- if actions
%th Mark as read
%tbody
- (notifications || []).each do |n|
%tr
%td= n.message
- if actions
%td
= link_to notification_read_path(n), method: :post do
%span.glyphicon.glyphicon-ok