2011-12-28 08:38:50 +01:00
|
|
|
= render "projects/project_head"
|
2011-12-08 00:35:57 +01:00
|
|
|
|
2012-02-08 00:00:49 +01:00
|
|
|
- if can? current_user, :write_snippet, @project
|
|
|
|
.alert-message.block-message
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to new_project_snippet_path(@project), class: "btn small add_new right", title: "New Snippet" do
|
2012-02-08 00:00:49 +01:00
|
|
|
Add new snippet
|
2012-08-11 01:47:54 +02:00
|
|
|
Share code pastes with others if it can't be in a git repository
|
2012-02-08 00:00:49 +01:00
|
|
|
%br
|
2012-06-04 00:37:27 +02:00
|
|
|
To add new snippet - click on button.
|
2012-02-08 00:00:49 +01:00
|
|
|
|
2012-09-03 20:53:16 +02:00
|
|
|
%table
|
2012-06-12 20:41:46 +02:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Title
|
|
|
|
%th File Name
|
|
|
|
%th Expires At
|
|
|
|
= render @snippets.fresh
|
|
|
|
- if @snippets.fresh.empty?
|
|
|
|
%tr
|
2012-08-11 00:07:50 +02:00
|
|
|
%td{colspan: 3}
|
2012-06-12 20:41:46 +02:00
|
|
|
%h3.nothing_here_message Nothing here.
|