Commit 83eb63cbe8c266256ce93af9336e118233845173

Authored by Andrew8xx8
1 parent 8adf9c79

New layout for snippets added

Showing 1 changed file with 24 additions and 0 deletions   Show diff stats
app/views/layouts/snippets.html.haml 0 → 100644
... ... @@ -0,0 +1,24 @@
  1 +!!! 5
  2 +%html{ lang: "en"}
  3 + = render "layouts/head", title: "Snipepts"
  4 + %body{class: "#{app_theme} application"}
  5 + = render "layouts/head_panel", title: "Snippets"
  6 + = render "layouts/flash"
  7 + .container
  8 + %ul.main_menu
  9 + = nav_link(path: 'dashboard#show', html_options: {class: 'home'}) do
  10 + = link_to root_path, title: "Back to dashboard" do
  11 + %i.icon-arrow-left
  12 + = nav_link(path: 'snippet#new') do
  13 + = link_to new_snippet_path do
  14 + New snippet
  15 + = nav_link(path: 'snippets#user_index') do
  16 + = link_to user_snippets_path(@current_user) do
  17 + My snippets
  18 + = nav_link(path: 'snippets#index') do
  19 + = link_to snippets_path do
  20 + Discover snippets
  21 + = nav_link(path: 'search#show') do
  22 + = link_to "Search", search_path
  23 +
  24 + .content= yield
... ...