2011-12-28 09:38:50 +02:00
|
|
|
= render "projects/project_head"
|
2011-12-08 01:35:57 +02:00
|
|
|
|
2012-02-08 01:00:49 +02:00
|
|
|
- if can? current_user, :write_snippet, @project
|
|
|
|
.alert-message.block-message
|
|
|
|
= link_to new_project_snippet_path(@project), :class => "btn small add_new right", :title => "New Snippet" do
|
|
|
|
Add new snippet
|
|
|
|
Share code pastes with others if it cant be in a git repository
|
|
|
|
%br
|
|
|
|
To add new snippet - click on button.
|
|
|
|
|
2011-12-15 08:12:24 +02:00
|
|
|
- unless @snippets.fresh.empty?
|
2012-02-18 15:59:01 +02:00
|
|
|
%table.zebra-striped.borders= render @snippets.fresh
|