2016-12-09 11:54:13 -05:00
|
|
|
- link_project = local_assigns.fetch(:link_project, false)
|
2019-02-06 04:11:39 -05:00
|
|
|
- illustration_path = 'illustrations/profile-page/activity.svg'
|
|
|
|
- current_user_empty_message_header = s_('UserProfile|You haven\'t created any snippets.')
|
|
|
|
- current_user_empty_message_description = s_('UserProfile|Snippets in GitLab can either be private, internal, or public.')
|
|
|
|
- primary_button_label = _('New snippet')
|
2020-01-23 07:08:38 -05:00
|
|
|
- primary_button_link = new_snippet_path if can?(current_user, :create_snippet)
|
2019-02-06 04:11:39 -05:00
|
|
|
- visitor_empty_message = s_('UserProfile|No snippets found.')
|
2016-09-23 13:28:14 -04:00
|
|
|
|
2016-09-02 07:29:05 -04:00
|
|
|
.snippets-list-holder
|
|
|
|
%ul.content-list
|
2016-12-09 11:54:13 -05:00
|
|
|
= render partial: 'shared/snippets/snippet', collection: @snippets, locals: { link_project: link_project }
|
2016-09-02 07:29:05 -04:00
|
|
|
- if @snippets.empty?
|
|
|
|
%li
|
2019-02-06 04:11:39 -05:00
|
|
|
= 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 }
|
2013-03-24 18:18:39 -04:00
|
|
|
|
2017-07-25 06:56:41 -04:00
|
|
|
= paginate @snippets, theme: 'gitlab'
|