diff --git a/app/controllers/activities_controller.rb b/app/controllers/activities_controller.rb index 76bce9875..745a40219 100644 --- a/app/controllers/activities_controller.rb +++ b/app/controllers/activities_controller.rb @@ -59,11 +59,11 @@ class ActivitiesController < ApplicationController if events.empty? || stale?(:etag => [@activity.scope, @date_to, @date_from, @with_subprojects, @author, events.first, events.size, User.current, current_language]) respond_to do |format| - format.html { + format.html do @events_by_day = events.group_by {|event| User.current.time_to_date(event.event_datetime)} render :layout => false if request.xhr? - } - format.atom { + end + format.atom do title = l(:label_activity) if @author title = @author.name @@ -71,7 +71,7 @@ class ActivitiesController < ApplicationController title = l("label_#{@activity.scope.first.singularize}_plural") end render_feed(events, :title => "#{@project || Setting.app_title}: #{title}") - } + end end end