From 83eb63cbe8c266256ce93af9336e118233845173 Mon Sep 17 00:00:00 2001 From: Andrew8xx8 <avk@8xx8.ru> Date: Mon, 25 Mar 2013 00:24:34 +0400 Subject: [PATCH] New layout for snippets added --- app/views/layouts/snippets.html.haml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 app/views/layouts/snippets.html.haml diff --git a/app/views/layouts/snippets.html.haml b/app/views/layouts/snippets.html.haml new file mode 100644 index 00000000000..0675ad55845 --- /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 -- GitLab