summaryrefslogtreecommitdiff
path: root/app/views/layouts/snippets.html.haml
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-03-25 00:24:34 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-03-25 00:24:34 +0400
commit83eb63cbe8c266256ce93af9336e118233845173 (patch)
treedbbdb96b9140e6ba804378ba9d5bcb38603b4e10 /app/views/layouts/snippets.html.haml
parent8adf9c79560f0b1d39270b8ee957df75b53fc30a (diff)
downloadgitlab-ce-83eb63cbe8c266256ce93af9336e118233845173.tar.gz
New layout for snippets added
Diffstat (limited to 'app/views/layouts/snippets.html.haml')
-rw-r--r--app/views/layouts/snippets.html.haml24
1 files changed, 24 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..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