summaryrefslogtreecommitdiff
path: root/app/views/layouts/snippets.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/snippets.html.haml')
-rw-r--r--app/views/layouts/snippets.html.haml22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/layouts/snippets.html.haml b/app/views/layouts/snippets.html.haml
new file mode 100644
index 00000000000..73b502e9132
--- /dev/null
+++ b/app/views/layouts/snippets.html.haml
@@ -0,0 +1,22 @@
+!!! 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
+
+ .content= yield