debian-mirror-gitlab/app/views/snippets/_snippets.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
1.2 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- link_project = local_assigns.fetch(:link_project, false)
2019-03-02 22:35:43 +05:30
- 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-03-13 15:44:24 +05:30
- primary_button_link = new_snippet_path if can?(current_user, :create_snippet)
2019-03-02 22:35:43 +05:30
- visitor_empty_message = s_('UserProfile|No snippets found.')
2016-10-01 15:18:49 +05:30
2016-09-29 09:46:39 +05:30
.snippets-list-holder
%ul.content-list
2017-08-17 22:00:37 +05:30
= render partial: 'shared/snippets/snippet', collection: @snippets, locals: { link_project: link_project }
2016-09-29 09:46:39 +05:30
- if @snippets.empty?
%li
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 }
2014-09-02 18:07:02 +05:30
2017-09-10 17:25:29 +05:30
= paginate @snippets, theme: 'gitlab'