gitlab-org--gitlab-foss/app/views/projects/snippets/index.html.haml
Tao Wang 9dfae2248d i18n: externalize strings from 'app/views/projects/snippets'
Signed-off-by: Tao Wang <twang2218@gmail.com>
2018-07-01 21:26:11 +10:00

12 lines
491 B
Text

- 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
- if can?(current_user, :create_project_snippet, @project)
= link_to _("New snippet"), new_project_snippet_path(@project), class: "btn btn-new", title: _("New snippet")
= render 'snippets/snippets'