BigW Consortium Gitlab

index.html.haml 771 Bytes
- page_title "Snippets"

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

    .nav-controls.hidden-xs
      - if can?(current_user, :create_project_snippet, @project)
        = link_to new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new", title: "New snippet" do
          New snippet

- if can?(current_user, :create_project_snippet, @project)
  .visible-xs
     
    = link_to new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new btn-block", title: "New snippet" do
      New snippet

= render 'snippets/snippets'