diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-06-02 10:20:37 +0200 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-06-03 11:37:23 +0200 |
commit | 79f8abc51fa876e12de4150ab3ec489208aaed84 (patch) | |
tree | efe41847c777590c7e57edfe63549360c47dae73 /app/views/snippets | |
parent | 90c2e0d971b5c105224196b8509012f943c9ea9b (diff) | |
download | gitlab-ce-79f8abc51fa876e12de4150ab3ec489208aaed84.tar.gz |
Replace snippets scopes in view and controller.
Diffstat (limited to 'app/views/snippets')
-rw-r--r-- | app/views/snippets/current_user_index.html.haml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/snippets/current_user_index.html.haml b/app/views/snippets/current_user_index.html.haml index 90ddc7198f6..3e030428701 100644 --- a/app/views/snippets/current_user_index.html.haml +++ b/app/views/snippets/current_user_index.html.haml @@ -18,16 +18,16 @@ All %span.pull-right = @user.snippets.count - = nav_tab :scope, 'private' do - = link_to user_snippets_path(@user, scope: 'private') do + = nav_tab :scope, 'is_private' do + = link_to user_snippets_path(@user, scope: 'is_private') do Private %span.pull-right - = @user.snippets.private.count - = nav_tab :scope, 'public' do - = link_to user_snippets_path(@user, scope: 'public') do + = @user.snippets.is_private.count + = nav_tab :scope, 'is_public' do + = link_to user_snippets_path(@user, scope: 'is_public') do Public %span.pull-right - = @user.snippets.public.count + = @user.snippets.is_public.count .col-md-9.my-snippets = render 'snippets' |