Project

General

Profile

Patch #41711 » fix_group_icon_in_members_box.diff

Bernhard Rohloff, 2024-11-07 16:11

View differences:

app/helpers/application_helper.rb
67 67
        url = user_url(principal, :only_path => only_path)
68 68
        css_classes += principal.css_classes
69 69
      end
70
      icon = ""
70 71
    when Group
71 72
      name = h(principal.to_s)
72 73
      url = group_url(principal, :only_path => only_path)
73 74
      css_classes = principal.css_classes
75
      icon = sprite_icon("group")
74 76
    else
75 77
      name = h(principal.to_s)
76 78
    end
77 79

  
78 80
    css_classes += " #{options[:class]}" if css_classes && options[:class].present?
79
    url ? link_to(name, url, :class => css_classes) : name
81
    url ? link_to(icon + name, url, :class => css_classes) : name
80 82
  end
81 83

  
82 84
  # Displays a link to edit group page if current user is admin
(2-2/2)