Niloct
Niloct

Reputation: 9995

Redmine's "latest projects" criteria

When there are more than 5 projects registered on Redmine, those listed on main page's "Latest projects" box are sorted by creation date descending (more recently created first), leaving old projects (which could have been more often updated) out of the list.

Is there a way to list top 5 projects by activity from highest to lowest, or display all registered projects, in that very box, without changing code ? (I don't have access to it).

My version is Redmine 1.0.1.devel (MySQL).

Thank you.

Upvotes: 4

Views: 1345

Answers (2)

Aaron Johnson
Aaron Johnson

Reputation: 31

You can change the code in app/models/project.rb to say something different where it says 'count=5' change it to something like 'count=20':

# returns latest created projects # non public projects will be returned only if user is a member of those def self.latest(user=nil, count=5) find(:all, :limit => count, :conditions => visible_by(user), :order => "created_on DESC") end

If you don't have access to the code then you'll have to just keep using the drop down menu instead.

Upvotes: 3

Milimetric
Milimetric

Reputation: 13549

Browsing around the redmine source for 1.0, it looks like there's no setting for sort order:

http://redmine.rubyforge.org/svn/branches/1.0-stable/app/controllers/welcome_controller.rb

Upvotes: 2

Related Questions