2011-12-28 08:38:50 +01:00
|
|
|
= render "projects/project_head"
|
2011-12-08 00:35:57 +01:00
|
|
|
|
2012-12-14 06:14:05 +01:00
|
|
|
%h3.page_title
|
|
|
|
Snippets
|
|
|
|
%small share code pastes with others out of git repository
|
|
|
|
|
|
|
|
- if can? current_user, :write_snippet, @project
|
2013-01-29 21:29:21 +01:00
|
|
|
= link_to new_project_snippet_path(@project), class: "btn btn-small add_new right", title: "New Snippet" do
|
2012-02-08 00:00:49 +01:00
|
|
|
Add new snippet
|
2012-12-14 06:14:05 +01:00
|
|
|
%br
|
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
|
2012-12-14 06:14:05 +01:00
|
|
|
= render @snippets
|
|
|
|
- if @snippets.empty?
|
2012-06-12 20:41:46 +02:00
|
|
|
%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.
|