2015-04-30 17:06:18 +00:00
|
|
|
- page_title "Your Snippets"
|
2013-07-13 05:45:48 +00:00
|
|
|
%h3.page-title
|
2015-03-23 03:10:12 +00:00
|
|
|
Your Snippets
|
2013-06-18 14:43:49 +00:00
|
|
|
.pull-right
|
2014-02-20 11:05:33 +00:00
|
|
|
= 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
|
2013-06-05 19:25:27 +00:00
|
|
|
|
2013-08-01 19:35:40 +00:00
|
|
|
%p.light
|
|
|
|
Share code pastes with others out of git repository
|
2013-06-05 19:25:27 +00:00
|
|
|
|
2015-04-03 01:22:54 +00:00
|
|
|
%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
|
2013-06-05 19:25:27 +00:00
|
|
|
|
2015-04-03 01:22:54 +00:00
|
|
|
.my-snippets
|
|
|
|
= render 'snippets'
|
2013-06-05 19:25:27 +00:00
|
|
|
|