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

16 lines
474 B
Text
Raw Normal View History

%h3.page-title
2013-03-23 15:13:51 -04:00
Snippets
2013-03-25 06:22:14 -04:00
- if can? current_user, :write_project_snippet, @project
= link_to new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new pull-right", title: "New Snippet" do
2013-03-23 15:13:51 -04:00
Add new snippet
2013-08-12 05:08:52 -04:00
%p.light
Share code pastes with others out of git repository
2013-06-05 15:25:27 -04:00
%hr
%ul.bordered-list
= render partial: "projects/snippets/snippet", collection: @snippets
2013-03-23 15:13:51 -04:00
- if @snippets.empty?
2013-06-05 15:25:27 -04:00
%li
.nothing-here-block Nothing here.