gitlab-org--gitlab-foss/app/views/snippets/index.html.haml

22 lines
579 B
Text
Raw Normal View History

= render "projects/project_head"
2011-12-07 18:35:57 -05: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
2012-08-10 19:47:54 -04:00
Share code pastes with others if it can't be in a git repository
%br
To add new snippet - click on button.
2012-09-03 14:53:16 -04:00
%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.