summaryrefslogtreecommitdiff
path: root/app/views/layouts/snippets.html.haml
blob: 350f1c7ef1a41aea1993d7ad73b7a616fcda9168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
!!! 5
%html{ lang: "en"}
  = render "layouts/head", title: "Snipepts"
  %body{class: "#{app_theme} application", :'data-page' => body_data_page}}
    = render "layouts/head_panel", title: "Snippets"
    = render "layouts/flash"
    %nav.main-nav
      .container
        %ul
          = nav_link(path: 'snippets#user_index', html_options: {class: 'home'}) do
            = link_to user_snippets_path(current_user), title: "My Snippets" do
              %i.icon-home
          = nav_link(path: 'snippets#new') do
            = link_to new_snippet_path do
              New snippet
          = nav_link(path: 'snippets#index') do
            = link_to snippets_path do
              Discover snippets
    .container
      .content= yield