2013-07-13 01:45:48 -04:00
|
|
|
%h3.page-title
|
2015-03-22 23:10:12 -04:00
|
|
|
Your Snippets
|
2013-06-18 10:43:49 -04:00
|
|
|
.pull-right
|
2014-02-20 06:05:33 -05:00
|
|
|
= 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
|
2014-02-20 06:05:33 -05:00
|
|
|
= 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
|
|
|
|
2013-08-01 15:35:40 -04:00
|
|
|
%p.light
|
|
|
|
Share code pastes with others out of git repository
|
2013-06-05 15:25:27 -04:00
|
|
|
%hr
|
|
|
|
|
|
|
|
.row
|
2013-12-30 16:55:15 -05:00
|
|
|
.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
|
2014-06-04 02:37:19 -04:00
|
|
|
= 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
|
2014-06-04 02:37:19 -04:00
|
|
|
= @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
|
|
|
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-9.my-snippets
|
2013-06-05 15:25:27 -04:00
|
|
|
= render 'snippets'
|
|
|
|
|