debian-mirror-gitlab/app/views/snippets/index.html.haml
2015-09-11 14:41:01 +05:30

17 lines
419 B
Text

- page_title "Public Snippets"
%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
Your snippets
%p.light
Public snippets created by you and other users are listed here
%hr
= render 'snippets'