]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/user_roles_helper.rb
Use an unstyled list for showing the languages
[rails.git] / app / helpers / user_roles_helper.rb
index 384fb7280f2a9152241abb7bb2b17a5dfcd6d418..15231f4d066206575e457e3a7d3a2a7b5ccc2796 100644 (file)
@@ -1,8 +1,6 @@
 module UserRolesHelper
   def role_icons(user)
 module UserRolesHelper
   def role_icons(user)
-    UserRole::ALL_ROLES.reduce("".html_safe) do |acc, elem|
-      "#{acc} #{role_icon(user, elem)}"
-    end
+    safe_join(UserRole::ALL_ROLES.filter_map { |role| role_icon(user, role) }, " ")
   end
 
   def role_icon(user, role)
   end
 
   def role_icon(user, role)