gitlab-org--gitlab-foss/app/views/snippets/current_user_index.html.haml
2013-08-01 22:35:40 +03:00

25 lines
692 B
Text

%h3.page-title
My Snippets
.pull-right
= link_to new_snippet_path, class: "btn btn-new grouped", title: "New Snippet" do
Add new snippet
= link_to snippets_path, class: "btn grouped" do
Discover snippets
%p.light
Share code pastes with others out of git repository
%hr
.row
.span3
%ul.nav.nav-pills.nav-stacked
= nav_tab :scope, nil do
= link_to "All", user_snippets_path(@user)
= nav_tab :scope, 'private' do
= link_to "Private", user_snippets_path(@user, scope: 'private')
= nav_tab :scope, 'public' do
= link_to "Public", user_snippets_path(@user, scope: 'public')
.span9.my-snippets
= render 'snippets'