Add a helper to format user lists. #304
This commit is contained in:
parent
90c713d2d2
commit
6598a44ddd
@ -60,6 +60,11 @@ module ApplicationHelper
|
|||||||
h(user.to_s)
|
h(user.to_s)
|
||||||
end
|
end
|
||||||
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.
|
# Displays a link to +issue+ with its subject.
|
||||||
# Examples:
|
# Examples:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user