From 0b9e9ffc5ac34f014fe2fe82c2a759cc83c7dd21 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Tue, 8 Aug 2017 09:26:55 -0500 Subject: Revert "Add user_dropdown_link to prompt users to turn on new repo" This reverts commit 79f94c8d221f9391f48899808b7a36e3905dab83. --- app/views/layouts/header/_default.html.haml | 1 - app/views/layouts/header/_new.html.haml | 1 - app/views/shared/repo/_user_dropdown_link.html.haml | 1 - 3 files changed, 3 deletions(-) delete mode 100644 app/views/shared/repo/_user_dropdown_link.html.haml diff --git a/app/views/layouts/header/_default.html.haml b/app/views/layouts/header/_default.html.haml index c7aa97a351f..b32cfe158bb 100644 --- a/app/views/layouts/header/_default.html.haml +++ b/app/views/layouts/header/_default.html.haml @@ -76,7 +76,6 @@ = 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 0734cdfc05e..2c1c23d6ea9 100644 --- a/app/views/layouts/header/_new.html.haml +++ b/app/views/layouts/header/_new.html.haml @@ -70,7 +70,6 @@ = 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 deleted file mode 100644 index bddd83a123d..00000000000 --- a/app/views/shared/repo/_user_dropdown_link.html.haml +++ /dev/null @@ -1 +0,0 @@ -%li= link_to "Turn #{show_new_repo? ? 'off' : 'on'} new repository", profile_preferences_path(anchor: "new-repository") -- cgit v1.2.1