diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index 2664fc8d..59ac08a3 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -8,12 +8,14 @@ <% @notifications.each do |notification| %> <% receipt = @receipts.find_by(notification_id: notification.id) %>
  • -
    - <%= link_to notification.subject, notification_path(notification.id) %> -
    -
    - <%= notification.body.truncate(70) %> -
    + <%= link_to notification_path(notification.id) do %> +
    + <%= notification.subject %> +
    +
    + <%= notification.body.truncate(70) %> +
    + <% end %>
    <% if receipt.is_read? %> <%= link_to 'mark as unread', mark_unread_notification_path(notification.id), remote: true, method: :put %>