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

13 lines
458 B
Plaintext
Raw Normal View History

= render "projects/project_head"
2011-12-08 00:35:57 +01: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
Share code pastes with others if it cant be in a git repository
%br
To add new snippet - click on button.
2011-12-15 07:12:24 +01:00
- unless @snippets.fresh.empty?
2012-02-18 14:59:01 +01:00
%table.zebra-striped.borders= render @snippets.fresh