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

index.html.haml « snippets « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7c936c849d0851456cf93fabccf28bce4e374b02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- page_title _("Snippets")
- new_project_snippet_link = new_project_snippet_path(@project) if can?(current_user, :create_snippet, @project)

- if @snippets.exists?
  - if current_user
    .top-area
      - include_private = @project.member?(current_user) || current_user.admin?
      = render partial: 'snippets/snippets_scope_menu', locals: { subject: @project, include_private: include_private, counts: @snippet_counts }

      - if new_project_snippet_link.present?
        .nav-controls
          = link_to _("New snippet"), new_project_snippet_link, class: "gl-button btn btn-confirm", title: _("New snippet")

  = render 'shared/snippets/list'
- else
  = render 'shared/empty_states/snippets', button_path: new_project_snippet_link