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

35 lines
955 B
Plaintext
Raw Normal View History

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