index.html.haml 1.08 KB
Newer Older
1 2 3 4 5 6 7 8
- 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
9 10
      = icon('plus')
      New Snippet
11 12 13 14

  .oneline
    Share code pastes with others out of git repository

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
%ul.center-top-menu.no-top.no-bottom.snippet-scope-menu
  = nav_tab :scope, nil do
    = link_to dashboard_snippets_path do
      All
      %span.badge
        = current_user.snippets.count
  = nav_tab :scope, 'are_private' do
    = link_to dashboard_snippets_path(scope: 'are_private') do
      Private
      %span.badge
        = current_user.snippets.are_private.count
  = nav_tab :scope, 'are_internal' do
    = link_to dashboard_snippets_path(scope: 'are_internal') do
      Internal
      %span.badge
        = current_user.snippets.are_internal.count
  = nav_tab :scope, 'are_public' do
    = link_to dashboard_snippets_path(scope: 'are_public') do
      Public
      %span.badge
        = current_user.snippets.are_public.count

37
= render 'snippets/snippets'
38