2015-04-30 17:06:18 +00:00
|
|
|
- page_title "Snippets"
|
2013-07-13 05:45:48 +00:00
|
|
|
%h3.page-title
|
2013-03-23 19:13:51 +00:00
|
|
|
Snippets
|
2013-03-25 10:22:14 +00:00
|
|
|
- if can? current_user, :write_project_snippet, @project
|
2015-01-24 18:02:58 +00:00
|
|
|
= link_to new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new pull-right", title: "New Snippet" do
|
2013-03-23 19:13:51 +00:00
|
|
|
Add new snippet
|
2013-08-12 09:08:52 +00:00
|
|
|
|
|
|
|
%p.light
|
|
|
|
Share code pastes with others out of git repository
|
|
|
|
|
2013-06-05 19:25:27 +00:00
|
|
|
%hr
|
|
|
|
%ul.bordered-list
|
2013-03-24 18:31:14 +00:00
|
|
|
= render partial: "projects/snippets/snippet", collection: @snippets
|
2013-03-23 19:13:51 +00:00
|
|
|
- if @snippets.empty?
|
2013-06-05 19:25:27 +00:00
|
|
|
%li
|
2014-02-20 11:51:22 +00:00
|
|
|
.nothing-here-block Nothing here.
|