Mercurial > hg > soundsoftware-site
diff app/views/activities/_recent.rhtml @ 361:30f68ecfdde4 bug_127
Formatting for Latest News box -- make it much more like the Recent Activity layout. Also adjust the date formatting in Latest Projects likewise.
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 01 Apr 2011 11:41:25 +0100 |
parents | 1a514b9347d4 |
children | f25c73364bfb |
line wrap: on
line diff
--- a/app/views/activities/_recent.rhtml Fri Apr 01 10:31:22 2011 +0100 +++ b/app/views/activities/_recent.rhtml Fri Apr 01 11:41:25 2011 +0100 @@ -2,6 +2,12 @@ <% max = 5 %> <% if (events.nil?) activity = Redmine::Activity::Fetcher.new(User.current, :project => @project) + if @project + # Don't show news (duplicated with News box) or wiki edits (too + # tedious) in project front page + activity.scope = [ "changesets", "files", "issues", "documents" ] + end + events = activity.events(Date.today - 28, Date.today + 1).first(max) end %>