gitlabhq/app/views/snippets/index.html.haml

21 lines
506 B
Plaintext
Raw Normal View History

2013-03-15 13:20:03 +01:00
= render 'wikis/nav'
%h3.page_title
Snippets
%small share code pastes with others out of git repository
2011-12-08 00:35:57 +01:00
2013-03-15 13:20:03 +01:00
- if can? current_user, :write_snippet, @project
= link_to new_project_snippet_path(@project), class: "btn btn-small add_new pull-right", title: "New Snippet" do
Add new snippet
%br
%table
%thead
%tr
%th Title
%th File Name
%th Expires At
= render @snippets
- if @snippets.empty?
%tr
%td{colspan: 3}
%h3.nothing_here_message Nothing here.