2023-07-09 08:55:56 +05:30
|
|
|
- illustration_path = 'illustrations/empty-state/empty-groups-md.svg'
|
2019-03-02 22:35:43 +05:30
|
|
|
- current_user_empty_message_header = s_('UserProfile|You can create a group for several dependent projects.')
|
|
|
|
- current_user_empty_message_description = s_('UserProfile|Groups are the best way to manage projects and members.')
|
|
|
|
- primary_button_label = _('New group')
|
|
|
|
- primary_button_link = new_group_path
|
|
|
|
- visitor_empty_message = s_('GroupsEmptyState|No groups found')
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
- if groups.any?
|
2018-03-17 18:26:18 +05:30
|
|
|
- user = local_assigns[:user]
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
%ul.content-list
|
|
|
|
- groups.each_with_index do |group, i|
|
2018-03-17 18:26:18 +05:30
|
|
|
= render "shared/groups/group", group: group, user: user
|
2016-06-02 11:05:42 +05:30
|
|
|
- else
|
2019-03-02 22:35:43 +05:30
|
|
|
= render partial: 'shared/empty_states/profile_tabs', locals: { illustration_path: illustration_path,
|
|
|
|
current_user_empty_message_header: current_user_empty_message_header,
|
|
|
|
current_user_empty_message_description: current_user_empty_message_description,
|
|
|
|
primary_button_label: primary_button_label,
|
|
|
|
primary_button_link: primary_button_link,
|
|
|
|
visitor_empty_message: visitor_empty_message }
|