Skip to content
Snippets Groups Projects
Commit 6598a44d authored by Felix Schäfer's avatar Felix Schäfer
Browse files

Add a helper to format user lists. #304

parent 90c713d2
Branches
Tags
No related merge requests found
...@@ -60,6 +60,11 @@ module ApplicationHelper ...@@ -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:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment