2015-09-25 12:07:36 +05:30
|
|
|
- page_title "Snippets"
|
|
|
|
- header_title "Snippets", dashboard_snippets_path
|
|
|
|
|
|
|
|
= render 'dashboard/snippets_head'
|
|
|
|
|
|
|
|
.gray-content-block
|
|
|
|
.pull-right
|
|
|
|
= link_to new_snippet_path, class: "btn btn-new", title: "New Snippet" do
|
2015-11-26 14:37:03 +05:30
|
|
|
= icon('plus')
|
|
|
|
New Snippet
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
.btn-group.btn-group-next.snippet-scope-menu
|
|
|
|
= link_to dashboard_snippets_path, class: "btn btn-default #{"active" unless params[:scope]}" do
|
2015-09-25 12:07:36 +05:30
|
|
|
All
|
|
|
|
%span.badge
|
|
|
|
= current_user.snippets.count
|
2015-11-26 14:37:03 +05:30
|
|
|
|
|
|
|
= link_to dashboard_snippets_path(scope: 'are_private'), class: "btn btn-default #{"active" if params[:scope] == "are_private"}" do
|
2015-09-25 12:07:36 +05:30
|
|
|
Private
|
|
|
|
%span.badge
|
|
|
|
= current_user.snippets.are_private.count
|
2015-11-26 14:37:03 +05:30
|
|
|
|
|
|
|
= link_to dashboard_snippets_path(scope: 'are_internal'), class: "btn btn-default #{"active" if params[:scope] == "are_internal"}" do
|
2015-09-25 12:07:36 +05:30
|
|
|
Internal
|
|
|
|
%span.badge
|
|
|
|
= current_user.snippets.are_internal.count
|
2015-11-26 14:37:03 +05:30
|
|
|
|
|
|
|
= link_to dashboard_snippets_path(scope: 'are_public'), class: "btn btn-default #{"active" if params[:scope] == "are_public"}" do
|
2015-09-25 12:07:36 +05:30
|
|
|
Public
|
|
|
|
%span.badge
|
|
|
|
= current_user.snippets.are_public.count
|
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
= render 'snippets/snippets'
|
2015-09-25 12:07:36 +05:30
|
|
|
|