we need json for the notification dropdown #2998
This commit is contained in:
parent
b3868fc6dd
commit
e78fc82bea
1 changed files with 2 additions and 4 deletions
|
|
@ -36,11 +36,9 @@ class NotificationsController < ApplicationController
|
|||
|
||||
pager.replace(result)
|
||||
end
|
||||
if request.format != :json
|
||||
@notifications.each do |n|
|
||||
n[:note_html] = render_to_string( :partial => 'notify_popup_item', :locals => { :n => n } )
|
||||
end
|
||||
end
|
||||
@group_days = @notifications.group_by{|note| I18n.l(note.created_at, :format => I18n.t('date.formats.fullmonth_day')) }
|
||||
|
||||
@unread_notification_count = current_user.unread_notifications.count
|
||||
|
|
|
|||
Loading…
Reference in a new issue