diff --git a/app/views/layouts/snippets.html.haml b/app/views/layouts/snippets.html.haml new file mode 100644 index 0000000000000000000000000000000000000000..0675ad55845ce8b5e3f6fe9bf8e0bf8c79bd36de --- /dev/null +++ b/app/views/layouts/snippets.html.haml @@ -0,0 +1,24 @@ +!!! 5 +%html{ lang: "en"} + = render "layouts/head", title: "Snipepts" + %body{class: "#{app_theme} application"} + = render "layouts/head_panel", title: "Snippets" + = render "layouts/flash" + .container + %ul.main_menu + = nav_link(path: 'dashboard#show', html_options: {class: 'home'}) do + = link_to root_path, title: "Back to dashboard" do + %i.icon-arrow-left + = nav_link(path: 'snippet#new') do + = 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 + = nav_link(path: 'search#show') do + = link_to "Search", search_path + + .content= yield