debian-mirror-gitlab/app/views/projects/snippets/index.html.haml

17 lines
777 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Snippets"
2015-09-25 12:07:36 +05:30
2017-09-10 17:25:29 +05:30
- 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"
2017-08-17 22:00:37 +05:30
- 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 }
2017-09-10 17:25:29 +05:30
.nav-controls{ class: ("visible-xs" if show_new_nav?) }
2017-08-17 22:00:37 +05:30
- if can?(current_user, :create_project_snippet, @project)
2017-09-10 17:25:29 +05:30
= link_to "New snippet", new_project_snippet_path(@project), class: "btn btn-new", title: "New snippet"
2014-09-02 18:07:02 +05:30
2015-11-26 14:37:03 +05:30
= render 'snippets/snippets'