gitlab-org--gitlab-foss/app/views/snippets/index.html.haml
2012-06-12 21:41:46 +03:00

21 lines
599 B
Text

= render "projects/project_head"
- 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.
%table.admin-table
%thead
%tr
%th Title
%th File Name
%th Expires At
= render @snippets.fresh
- if @snippets.fresh.empty?
%tr
%td{:colspan => 3}
%h3.nothing_here_message Nothing here.