diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-11 09:08:39 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-11 09:08:39 +0000 |
commit | 1078b7bf25c2cb6e03c57da9ae25b0512858556f (patch) | |
tree | a50fbfaddb22aca89055296c4c532c7ecb2b1ca0 /app/views/shared/empty_states | |
parent | 55733b19c526145cceb120e8bb874d476a84383a (diff) | |
download | gitlab-ce-1078b7bf25c2cb6e03c57da9ae25b0512858556f.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/shared/empty_states')
-rw-r--r-- | app/views/shared/empty_states/_snippets.html.haml | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/app/views/shared/empty_states/_snippets.html.haml b/app/views/shared/empty_states/_snippets.html.haml index 889a470d6ec..efd9bceedc5 100644 --- a/app/views/shared/empty_states/_snippets.html.haml +++ b/app/views/shared/empty_states/_snippets.html.haml @@ -1,20 +1,19 @@ - button_path = local_assigns.fetch(:button_path, false) -.row.empty-state +.row.empty-state.mt-0 .col-12 .svg-content = image_tag 'illustrations/snippets_empty.svg' - .text-content + .text-content.text-center.pt-0 - if current_user %h4 - = s_('SnippetsEmptyState|Snippets are small pieces of code or notes that you want to keep.') - %p - = s_('SnippetsEmptyState|They can be either public or private.') - .text-center + = s_('SnippetsEmptyState|Code snippets') + %p.mb-0 + = s_('SnippetsEmptyState|Store, share, and embed small pieces of code and text.') + .mt-2< - if button_path = link_to s_('SnippetsEmptyState|New snippet'), button_path, class: 'btn btn-success', title: s_('SnippetsEmptyState|New snippet'), id: 'new_snippet_link' - - unless current_page?(dashboard_snippets_path) - = link_to s_('SnippetsEmptyState|Explore public snippets'), explore_snippets_path, class: 'btn btn-default', title: s_('SnippetsEmptyState|Explore public snippets') + = link_to s_('SnippetsEmptyState|Documentation'), help_page_path('user/snippets.md'), class: 'btn btn-default', title: s_('SnippetsEmptyState|Documentation') - else %h4.text-center= s_('SnippetsEmptyState|There are no snippets to show.') |