summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-07-28 19:49:23 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-07-28 19:49:23 +0100
commit79f94c8d221f9391f48899808b7a36e3905dab83 (patch)
tree5cd60eb2a4b75b703d89746ff65ec048c6463ded
parent2a6f1b32ddd5d371c24a09afb36b130acbaa53b8 (diff)
downloadgitlab-ce-79f94c8d221f9391f48899808b7a36e3905dab83.tar.gz
Add user_dropdown_link to prompt users to turn on new repo
-rw-r--r--app/views/layouts/header/_default.html.haml1
-rw-r--r--app/views/layouts/header/_new.html.haml1
-rw-r--r--app/views/shared/repo/_user_dropdown_link.html.haml1
3 files changed, 3 insertions, 0 deletions
diff --git a/app/views/layouts/header/_default.html.haml b/app/views/layouts/header/_default.html.haml
index bc3293fd100..1927c448c92 100644
--- a/app/views/layouts/header/_default.html.haml
+++ b/app/views/layouts/header/_default.html.haml
@@ -76,6 +76,7 @@
= link_to "Settings", profile_path
%li
= link_to "Turn on new navigation", profile_preferences_path(anchor: "new-navigation")
+ = render 'shared/repo/user_dropdown_link'
%li.divider
%li
= link_to "Sign out", destroy_user_session_path, method: :delete, class: "sign-out-link"
diff --git a/app/views/layouts/header/_new.html.haml b/app/views/layouts/header/_new.html.haml
index 60940dba475..54f0d2872d6 100644
--- a/app/views/layouts/header/_new.html.haml
+++ b/app/views/layouts/header/_new.html.haml
@@ -70,6 +70,7 @@
= link_to "Settings", profile_path
%li
= link_to "Turn off new navigation", profile_preferences_path(anchor: "new-navigation")
+ = render 'shared/repo/user_dropdown_link'
%li.divider
%li
= link_to "Sign out", destroy_user_session_path, method: :delete, class: "sign-out-link"
diff --git a/app/views/shared/repo/_user_dropdown_link.html.haml b/app/views/shared/repo/_user_dropdown_link.html.haml
new file mode 100644
index 00000000000..bddd83a123d
--- /dev/null
+++ b/app/views/shared/repo/_user_dropdown_link.html.haml
@@ -0,0 +1 @@
+%li= link_to "Turn #{show_new_repo? ? 'off' : 'on'} new repository", profile_preferences_path(anchor: "new-repository")