From c68eeb70fb2b151be4d45f186f916571381f5197 Mon Sep 17 00:00:00 2001 From: jaideng123 Date: Sun, 17 Aug 2014 15:51:37 -0500 Subject: [PATCH] Added the button changing effect + the ability to read all of a type to mobile --- app/views/notifications/index.mobile.haml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/notifications/index.mobile.haml b/app/views/notifications/index.mobile.haml index 4aa88bca2..498ee29a4 100644 --- a/app/views/notifications/index.mobile.haml +++ b/app/views/notifications/index.mobile.haml @@ -2,8 +2,10 @@ = t('.notifications') .right - = link_to t('.mark_all_as_read'), read_all_notifications_path, :class => 'btn' - + -if params[:type] + = link_to t('.mark_all_shown_as_read'), read_all_notifications_path(:type => params[:type] ), :class => 'btn' + -else + = link_to t('.mark_all_as_read'), read_all_notifications_path, :class => 'btn' %ul.notifications - @group_days.each do |day, notes| %li