diff --git a/app/models/activity.rb b/app/models/activity.rb index 8573251b1..3f2250ca6 100644 --- a/app/models/activity.rb +++ b/app/models/activity.rb @@ -60,7 +60,20 @@ class Activity < ActiveRecord::Base notification_type = :recent_changes end - task_m = "| #{I18n.t('search.index.module')} #{my_module.name}" if my_module + project_m = " + #{project.name}" + task_m = "| #{I18n.t('search.index.module')} + + #{my_module.name}" if my_module + notification = Notification.create( type_of: notification_type, title: @@ -68,13 +81,14 @@ class Activity < ActiveRecord::Base message: ActionController::Base .helpers.sanitize( - "#{I18n.t('search.index.project')} #{project.name} #{task_m}" + "#{I18n.t('search.index.project')} #{project_m} #{task_m}", + tags: %w(strong a) ), generator_user_id: user.id ) project.users.each do |project_user| - next if project_user == user + # next if project_user == user UserNotification.create(notification: notification, user: project_user) end end diff --git a/app/views/user_notifications/_recent_notifications.html.erb b/app/views/user_notifications/_recent_notifications.html.erb index 7847110f8..e8454e9c3 100644 --- a/app/views/user_notifications/_recent_notifications.html.erb +++ b/app/views/user_notifications/_recent_notifications.html.erb @@ -21,7 +21,7 @@