Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2015-09-15 03:27:54 +0300
committerPatricio Cano <suprnova32@gmail.com>2015-09-15 03:27:54 +0300
commitadcae6ebd597c731b22a748b882b668e6301763f (patch)
tree59043f6fb2146dbb5a445b10f54c6016f5544697 /app/helpers/notifications_helper.rb
parentab56718feb0e155ae889afe900a009594f8acfa1 (diff)
Notification level can now be saved from within the project view.
Diffstat (limited to 'app/helpers/notifications_helper.rb')
-rw-r--r--app/helpers/notifications_helper.rb20
1 files changed, 12 insertions, 8 deletions
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