<% content_for :notification_content, flush: true do %>

<%= notification.notifier.name %> updated his or her article "<%= notification.notifiable.title %>".
<%= notification.created_at.strftime("%b %d %H:%M") %>

<% end %>
<% if notification.unopened? %> <%= link_to open_notification_path_for(notification, parameters.slice(:routing_scope, :devise_default_routes).merge(reload: false)), method: :put, remote: true, class: "unopened_wrapper" do %>

Open

<% end %> <%= link_to open_notification_path_for(notification, parameters.slice(:routing_scope, :devise_default_routes).merge(move: true)), method: :put do %> <%= yield :notification_content %> <% end %>
<% else %> <%= link_to move_notification_path_for(notification, parameters.slice(:routing_scope, :devise_default_routes)) do %> <%= yield :notification_content %> <% end %> <% end %>