summaryrefslogtreecommitdiff
path: root/app/views/dashboard/_snippets_head.html.haml
diff options
context:
space:
mode:
authorRegis <boudinot.regis@yahoo.com>2016-12-13 13:03:49 -0700
committerRegis <boudinot.regis@yahoo.com>2016-12-13 13:03:49 -0700
commit77daed05ca877e9882096787b3d57244baaa5d91 (patch)
tree48e972448234b338dba2fce10eaee19f8e6027ec /app/views/dashboard/_snippets_head.html.haml
parentd46af1d9b263916063200f5fd2cafa18df11c37b (diff)
parent632450a4bd95c7f67f9968e57b317dc4b4704f5f (diff)
downloadgitlab-ce-77daed05ca877e9882096787b3d57244baaa5d91.tar.gz
merge master
Diffstat (limited to 'app/views/dashboard/_snippets_head.html.haml')
-rw-r--r--app/views/dashboard/_snippets_head.html.haml20
1 files changed, 13 insertions, 7 deletions
diff --git a/app/views/dashboard/_snippets_head.html.haml b/app/views/dashboard/_snippets_head.html.haml
index b25e8ea1f0c..02e90bbfa55 100644
--- a/app/views/dashboard/_snippets_head.html.haml
+++ b/app/views/dashboard/_snippets_head.html.haml
@@ -1,7 +1,13 @@
-%ul.nav-links
- = nav_link(page: dashboard_snippets_path, html_options: {class: 'home'}) do
- = link_to dashboard_snippets_path, title: 'Your snippets', data: {placement: 'right'} do
- Your Snippets
- = nav_link(page: explore_snippets_path) do
- = link_to explore_snippets_path, title: 'Explore snippets', data: {placement: 'right'} do
- Explore Snippets
+.top-area
+ %ul.nav-links
+ = nav_link(page: dashboard_snippets_path, html_options: {class: 'home'}) do
+ = link_to dashboard_snippets_path, title: 'Your snippets', data: {placement: 'right'} do
+ Your Snippets
+ = nav_link(page: explore_snippets_path) do
+ = link_to explore_snippets_path, title: 'Explore snippets', data: {placement: 'right'} do
+ Explore Snippets
+
+ - if current_user
+ .nav-controls.hidden-xs
+ = link_to new_snippet_path, class: "btn btn-new", title: "New snippet" do
+ New snippet