ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Add a helper to format user lists (Feature #304)

Added by Felix Schäfer at 2011-03-24 08:36 am. Updated at 2011-05-19 09:50 pm.

Status:Closed Start date:2011-03-24
Priority:Normal Due date:
Assignee:- % Done:


Category:User interface
Target version:1.4.0
Remote issue URL: Affected version:


There's currently no central place to define how a user list should look like, having a helper for that would make it easier to extend/override how all the user lists are formatted. (example of a user list: source:/app/views/projects/_members_box.html.erb#L5)

Associated revisions

Revision 6598a44d
Added by Felix Schäfer at 2011-05-19 11:48 pm

Add a helper to format user lists. #304


Updated by Eric Davis at 2011-05-01 07:30 pm

Moving incomplete issues to the next release.

  • Target version changed from 1.3.0 to 1.4.0

Updated by Felix Schäfer at 2011-05-14 04:11 pm

I think something like this would be enough, thoughs?

 1diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
 2index 67509b2..fc4ef6e 100644
 3--- a/app/helpers/application_helper.rb
 4+++ b/app/helpers/application_helper.rb
 5@@ -60,6 +60,11 @@ module ApplicationHelper
 6       h(user.to_s)
 7     end
 8   end
10+  # Show a sorted linkified (if active) comma-joined list of users
11+  def list_users(users, options={})
12+    users.sort.collect{|u| link_to_user(u, options)}.join(", ")
13+  end
15   # Displays a link to +issue+ with its subject.
16   # Examples:</class>
  • Assignee deleted (Felix Schäfer)
  • Status changed from Open to Ready for review

Updated by Felix Schäfer at 2011-05-19 09:50 pm

Merged this in 6598a44ddde476fb1d5d010fbadf2fdb7db2597e. Existing user lists should be refactored accordingly, see #420.

  • Status changed from Ready for review to Closed

Also available in: Atom PDF