debian-mirror-gitlab/app/views/snippets/current_user_index.html.haml

36 lines
965 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Your Snippets"
2014-09-02 18:07:02 +05:30
%h3.page-title
2015-04-26 12:48:37 +05:30
Your Snippets
2014-09-02 18:07:02 +05:30
.pull-right
= link_to new_snippet_path, class: "btn btn-new btn-grouped", title: "New Snippet" do
Add new snippet
%p.light
Share code pastes with others out of git repository
2015-09-11 14:41:01 +05:30
%ul.nav.nav-tabs
= nav_tab :scope, nil do
= link_to user_snippets_path(@user) do
All
%span.badge
= @user.snippets.count
= nav_tab :scope, 'are_private' do
= link_to user_snippets_path(@user, scope: 'are_private') do
Private
%span.badge
= @user.snippets.are_private.count
= nav_tab :scope, 'are_internal' do
= link_to user_snippets_path(@user, scope: 'are_internal') do
Internal
%span.badge
= @user.snippets.are_internal.count
= nav_tab :scope, 'are_public' do
= link_to user_snippets_path(@user, scope: 'are_public') do
Public
%span.badge
= @user.snippets.are_public.count
2014-09-02 18:07:02 +05:30
2015-09-11 14:41:01 +05:30
.my-snippets
= render 'snippets'
2014-09-02 18:07:02 +05:30