Redmine "recent projects"

When more than 5 projects are registered with Redmine, those listed on the Recent Projects main page are sorted by creation date in descending order (more recently created first), leaving the old projects (which could be updated more often) of the list.

Is there a way to list the 5 best projects by activity from the highest to the lowest or display all registered projects in the same window without changing the code? (I do not have access to it).

My version is Redmine 1.0.1.devel (MySQL).

Thanks.

+4
source share
2 answers

Looking at the redmine source for version 1.0, there seems to be no sort order:

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

+2
source

You can change the code in app / models / project.rb to say something else that says: "count = 5" change it to something like "count = 20":

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

If you do not have access to the code, you just have to use the drop-down menu.

+3
source

All Articles