snippets.html.haml 819 Bytes
Newer Older
Andrew8xx8's avatar
Andrew8xx8 committed
1 2 3 4 5 6
!!! 5
%html{ lang: "en"}
  = render "layouts/head", title: "Snipepts"
  %body{class: "#{app_theme} application"}
    = render "layouts/head_panel", title: "Snippets"
    = render "layouts/flash"
7 8 9 10 11 12
    %nav.main-nav
      .container
        %ul
          = nav_link(path: 'dashboard#show', html_options: {class: 'home'}) do
            = link_to root_path, title: "Back to dashboard" do
              %i.icon-home
13
          = nav_link(path: 'snippets#new') do
14 15 16 17 18 19 20 21
            = link_to new_snippet_path do
              New snippet
          = nav_link(path: 'snippets#user_index') do
            = link_to user_snippets_path(@current_user) do
              My snippets
          = nav_link(path: 'snippets#index') do
            = link_to snippets_path do
              Discover snippets
Andrew8xx8's avatar
Andrew8xx8 committed
22 23
    .container
      .content= yield