2019-07-07 11:18:12 +05:30
|
|
|
- button_path = local_assigns.fetch(:button_path, false)
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
.row.empty-state
|
2019-07-07 11:18:12 +05:30
|
|
|
.col-12
|
|
|
|
.svg-content
|
2020-06-23 00:09:42 +05:30
|
|
|
= image_tag 'illustrations/snippets_empty.svg', data: { qa_selector: 'svg_content' }
|
2022-08-13 15:12:31 +05:30
|
|
|
.text-content.gl-text-center.gl-pt-0
|
2019-07-07 11:18:12 +05:30
|
|
|
- if current_user
|
|
|
|
%h4
|
2020-03-13 15:44:24 +05:30
|
|
|
= s_('SnippetsEmptyState|Code snippets')
|
2022-08-13 15:12:31 +05:30
|
|
|
%p.gl-mb-0
|
2020-03-13 15:44:24 +05:30
|
|
|
= s_('SnippetsEmptyState|Store, share, and embed small pieces of code and text.')
|
2022-08-13 15:12:31 +05:30
|
|
|
.gl-mt-3<
|
2020-01-01 13:55:28 +05:30
|
|
|
- if button_path
|
2021-04-17 20:07:23 +05:30
|
|
|
= link_to s_('SnippetsEmptyState|New snippet'), button_path, class: 'btn gl-button btn-confirm', title: s_('SnippetsEmptyState|New snippet'), id: 'new_snippet_link', data: { qa_selector: 'create_first_snippet_link' }
|
2021-03-11 19:13:27 +05:30
|
|
|
= link_to s_('SnippetsEmptyState|Documentation'), help_page_path('user/snippets.md'), class: 'btn gl-button btn-default', title: s_('SnippetsEmptyState|Documentation')
|
2019-07-07 11:18:12 +05:30
|
|
|
- else
|
2022-08-13 15:12:31 +05:30
|
|
|
%h4.gl-text-center= s_('SnippetsEmptyState|There are no snippets to show.')
|