Mercurial > hg > soundsoftware-site
changeset 1020:e816ffefcb71 browsing
Use setting for number of activities days rather than hardcoding it
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 13 Nov 2012 10:24:11 +0000 |
parents | 76cce7d14bd0 |
children | 967fb7e62b1d |
files | app/views/activities/_busy_institution.html.erb |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/app/views/activities/_busy_institution.html.erb Tue Nov 13 10:14:53 2012 +0000 +++ b/app/views/activities/_busy_institution.html.erb Tue Nov 13 10:24:11 2012 +0000 @@ -1,7 +1,8 @@ <% events = @events_by_day %> <% if (events.nil?) activity = Redmine::Activity::Fetcher.new(User.current) - events = activity.events(Date.today - 14, Date.today + 1) + days = Setting.activity_days_default.to_i + events = activity.events(Date.today - days, Date.today + 1) end %>