Add a helper to format user lists. #304

This commit is contained in:
Felix Schäfer 2011-05-19 23:48:02 +02:00
parent 90c713d2d2
commit 6598a44ddd

View File

@ -60,6 +60,11 @@ module ApplicationHelper
h(user.to_s)
end
end
# Show a sorted linkified (if active) comma-joined list of users
def list_users(users, options={})
users.sort.collect{|u| link_to_user(u, options)}.join(", ")
end
# Displays a link to +issue+ with its subject.
# Examples: