gitlab-org--gitlab-foss/app/views/snippets/current_user_index.html.haml

35 lines
929 B
Text
Raw Normal View History

%h3.page-title
2013-06-05 15:25:27 -04:00
My Snippets
2013-06-18 10:43:49 -04:00
.pull-right
= link_to new_snippet_path, class: "btn btn-new grouped", title: "New Snippet" do
2013-06-18 10:43:49 -04:00
Add new snippet
= link_to snippets_path, class: "btn grouped" do
2013-06-18 10:43:49 -04:00
Discover snippets
2013-06-05 15:25:27 -04:00
%p.light
Share code pastes with others out of git repository
2013-06-05 15:25:27 -04:00
%hr
.row
.col-md-3
2013-06-05 15:25:27 -04:00
%ul.nav.nav-pills.nav-stacked
= nav_tab :scope, nil do
2013-08-12 05:08:52 -04:00
= link_to user_snippets_path(@user) do
All
%span.pull-right
= @user.snippets.count
2013-06-05 15:25:27 -04:00
= nav_tab :scope, 'private' do
2013-08-12 05:08:52 -04:00
= link_to user_snippets_path(@user, scope: 'private') do
Private
%span.pull-right
= @user.snippets.private.count
2013-06-05 15:25:27 -04:00
= nav_tab :scope, 'public' do
2013-08-12 05:08:52 -04:00
= link_to user_snippets_path(@user, scope: 'public') do
Public
%span.pull-right
= @user.snippets.public.count
2013-06-05 15:25:27 -04:00
.col-md-9.my-snippets
2013-06-05 15:25:27 -04:00
= render 'snippets'