debian-mirror-gitlab/app/views/shared/empty_states/_snippets.html.haml

21 lines
863 B
Text
Raw Normal View History

2019-07-07 11:18:12 +05:30
- button_path = local_assigns.fetch(:button_path, false)
2020-03-13 15:44:24 +05:30
.row.empty-state.mt-0
2019-07-07 11:18:12 +05:30
.col-12
.svg-content
= image_tag 'illustrations/snippets_empty.svg'
2020-03-13 15:44:24 +05:30
.text-content.text-center.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')
%p.mb-0
= s_('SnippetsEmptyState|Store, share, and embed small pieces of code and text.')
.mt-2<
2020-01-01 13:55:28 +05:30
- if button_path
= link_to s_('SnippetsEmptyState|New snippet'), button_path, class: 'btn btn-success', title: s_('SnippetsEmptyState|New snippet'), id: 'new_snippet_link'
2020-03-13 15:44:24 +05:30
= link_to s_('SnippetsEmptyState|Documentation'), help_page_path('user/snippets.md'), class: 'btn btn-default', title: s_('SnippetsEmptyState|Documentation')
2019-07-07 11:18:12 +05:30
- else
%h4.text-center= s_('SnippetsEmptyState|There are no snippets to show.')