File: index.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (22 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- page_title _("Groups")

= render_dashboard_ultimate_trial(current_user)
%div{ data: { testid: 'groups-page' } }
  - if current_user.groups.exists?
    = render 'dashboard/groups_head'
    = render 'groups'
  - else
    - button_text = _("New group") if current_user.can_create_group?
    - button_link = new_group_path if current_user.can_create_group?
    = render Pajamas::EmptyStateComponent.new(svg_path: 'illustrations/empty-state/empty-groups-md.svg',
      title: s_('GroupsEmptyState|A group is a collection of several projects'),
      primary_button_text: button_text,
      primary_button_link: button_link,
      primary_button_options: { data: { testid: "new-group-button" } },
      secondary_button_text: _("Explore groups"),
      secondary_button_link: explore_groups_path,
      secondary_button_options: { data: { testid: "explore-groups-button" } },
      empty_state_options: { data: { testid: 'groups-empty-state' } }) do |c|

      - c.with_description do
        = s_("GroupsEmptyState|If you organize your projects under a group, it works like a folder. You can manage your group member's permissions and access to each project in the group.")