gitlab-org--gitlab-foss/app/views/snippets/index.html.haml
2014-10-09 17:09:53 +03:00

17 lines
391 B
Text

%h3.page-title
Public snippets
.pull-right
- if current_user
= link_to new_snippet_path, class: "btn btn-new btn-grouped", title: "New Snippet" do
Add new snippet
= link_to user_snippets_path(current_user), class: "btn btn-grouped" do
My snippets
%p.light
Public snippets created by you and other users are listed here
%hr
= render 'snippets'