From adcae6ebd597c731b22a748b882b668e6301763f Mon Sep 17 00:00:00 2001 From: Patricio Cano Date: Mon, 14 Sep 2015 19:27:54 -0500 Subject: Notification level can now be saved from within the project view. --- app/helpers/notifications_helper.rb | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'app/helpers/notifications_helper.rb') diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index 3cc59f9ca5b..4aa9ccedda0 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -17,23 +17,27 @@ module NotificationsHelper case notification_level when Notification::N_DISABLED content_tag(:li) do - icon('microphone-slash') - 'Disabled' + link_to '#', class: 'update-notification', data: { notification_level: Notification::N_DISABLED } do + icon('microphone-slash', text: 'Disabled') + end end when Notification::N_PARTICIPATING content_tag(:li) do - icon('volume-up') - 'Participating' + link_to '#', class: 'update-notification', data: { notification_level: Notification::N_PARTICIPATING } do + icon('volume-up', text: 'Participating') + end end when Notification::N_WATCH content_tag(:li) do - icon('globe') - 'Watch' + link_to '#', class: 'update-notification', data: { notification_level: Notification::N_WATCH } do + icon('globe', text: 'Watch') + end end when Notification::N_MENTION content_tag(:li) do - icon('at') - 'Mention' + link_to '#', class: 'update-notification', data: { notification_level: Notification::N_MENTION } do + icon('at', text: 'Mention') + end end else # do nothing -- cgit v1.2.1