Mercurial > hg > soundsoftware-site
comparison app/controllers/activities_controller.rb @ 1338:25603efa57b5
Merge from live branch
author | Chris Cannam |
---|---|
date | Thu, 20 Jun 2013 13:14:14 +0100 |
parents | bb32da3bea34 |
children | 4f746d8966dd |
comparison
equal
deleted
inserted
replaced
1209:1b1138f6f55e | 1338:25603efa57b5 |
---|---|
1 # Redmine - project management software | 1 # Redmine - project management software |
2 # Copyright (C) 2006-2011 Jean-Philippe Lang | 2 # Copyright (C) 2006-2012 Jean-Philippe Lang |
3 # | 3 # |
4 # This program is free software; you can redistribute it and/or | 4 # This program is free software; you can redistribute it and/or |
5 # modify it under the terms of the GNU General Public License | 5 # modify it under the terms of the GNU General Public License |
6 # as published by the Free Software Foundation; either version 2 | 6 # as published by the Free Software Foundation; either version 2 |
7 # of the License, or (at your option) any later version. | 7 # of the License, or (at your option) any later version. |
53 # from the URL that has no matching events | 53 # from the URL that has no matching events |
54 @institution_name = "" | 54 @institution_name = "" |
55 end | 55 end |
56 end | 56 end |
57 | 57 |
58 if events.empty? || stale?(:etag => [@activity.scope, @date_to, @date_from, @with_subprojects, @author, @institution_name, events.first, User.current, current_language]) | 58 if events.empty? || stale?(:etag => [@activity.scope, @date_to, @date_from, @with_subprojects, @author, @institution_name, events.first, events.size, User.current, current_language]) |
59 respond_to do |format| | 59 respond_to do |format| |
60 format.html { | 60 format.html { |
61 @events_by_day = events.group_by(&:event_date) | 61 @events_by_day = events.group_by {|event| User.current.time_to_date(event.event_datetime)} |
62 render :layout => false if request.xhr? | 62 render :layout => false if request.xhr? |
63 } | 63 } |
64 format.atom { | 64 format.atom { |
65 title = l(:label_activity) | 65 title = l(:label_activity) |
66 if @author | 66 if @author |