Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

612 B
Raw Blame
<%=
  render(Primer::OpenProject::SidePanel::Section.new) do |section|
    section.with_title { t(:label_group_plural) }
    section.with_counter(count: @groups.count, scheme: :primary)

    if User.current.admin?
      section.with_action_icon(
        icon: :gear,
        tag: :a,
        "aria-label": t(:label_manage),
        href: edit_user_path(@user, tab: :groups)
      )
    end

    render(OpPrimer::ExpandableListComponent.new) do |list|
      @groups.each do |group|
        list.with_element do
          helpers.avatar(group, size: :mini, hide_name: false)
        end
      end
    end
  end
%>