we need json for the notification dropdown #2998

This commit is contained in:
Diaspora Europe 2012-03-14 16:31:54 +01:00
parent b3868fc6dd
commit e78fc82bea

View file

@ -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