index.html.haml 491 Bytes
Newer Older
1
- page_title _("Snippets")
2

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

8
    .nav-controls
9
      - if can?(current_user, :create_project_snippet, @project)
10
        = link_to _("New snippet"), new_project_snippet_path(@project), class: "btn btn-new", title: _("New snippet")
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
11

12
= render 'snippets/snippets'