Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_snippets.html.haml « empty_states « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 105efcc3c88b72cdc63e0137bf499ce8a549f708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- button_path = local_assigns.fetch(:button_path, false)

.row.empty-state
  .col-12
    .svg-content
      = image_tag 'illustrations/snippets_empty.svg', data: { qa_selector: 'svg_content' }
    .text-content.text-center.pt-0
      - if current_user
        %h4
          = 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 gl-button btn-success', title: s_('SnippetsEmptyState|New snippet'), id: 'new_snippet_link', data: { qa_selector: 'create_first_snippet_link' }
          = link_to s_('SnippetsEmptyState|Documentation'), help_page_path('user/snippets.md'), class: 'btn gl-button btn-default', title: s_('SnippetsEmptyState|Documentation')
      - else
        %h4.text-center= s_('SnippetsEmptyState|There are no snippets to show.')