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

40 lines
1.1 KiB
Text
Raw Normal View History

%h3.page-title
Your Snippets
2013-06-18 10:43:49 -04:00
.pull-right
= link_to new_snippet_path, class: "btn btn-new btn-grouped", title: "New Snippet" do
2013-06-18 10:43:49 -04:00
Add new snippet
= link_to snippets_path, class: "btn 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
= nav_tab :scope, 'are_private' do
= link_to user_snippets_path(@user, scope: 'are_private') do
2013-08-12 05:08:52 -04:00
Private
%span.pull-right
= @user.snippets.are_private.count
2014-10-07 04:54:00 -04:00
= nav_tab :scope, 'are_internal' do
= link_to user_snippets_path(@user, scope: 'are_internal') do
Internal
2013-08-12 05:08:52 -04:00
%span.pull-right
2014-10-07 04:54:00 -04:00
= @user.snippets.are_internal.count
2014-10-08 09:44:25 -04:00
= nav_tab :scope, 'are_public' do
= link_to user_snippets_path(@user, scope: 'are_public') do
Public
%span.pull-right
= @user.snippets.are_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'