From 1fabfd832bf4291203de03418f076d58058ed753 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Mon, 28 Nov 2016 13:06:08 -0500 Subject: [PATCH] link entire notification, except read-unread toggler --- app/views/notifications/index.html.erb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 %>