gitlab-org--gitlab-foss/app/views/projects/snippets/index.html.haml

17 lines
777 B
Text
Raw Normal View History

2015-04-30 13:06:18 -04:00
- page_title "Snippets"
- if show_new_nav? && can?(current_user, :create_project_snippet, @project)
- content_for :breadcrumbs_extra do
= link_to "New snippet", new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new", title: "New snippet"
- 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{ class: ("visible-xs" if show_new_nav?) }
- if can?(current_user, :create_project_snippet, @project)
= link_to "New snippet", new_project_snippet_path(@project), class: "btn btn-new", title: "New snippet"
2013-08-12 05:08:52 -04:00
2015-10-18 07:03:26 -04:00
= render 'snippets/snippets'