Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Labuschagne <blabuschagne@gitlab.com>2019-01-14 19:10:19 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2019-01-14 19:10:19 +0300
commitcc281afb27365adef2d24c85f83686cc8b829187 (patch)
tree0c2d33acde02760d7d45e22c0cdba8f8a8a3f2d6 /app/views/layouts
parent31af7daf788f3f65d630ab4e5d8bae4bd5607807 (diff)
Resolve "Add "What's new" menu item in top navigation"
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/header/_help_dropdown.html.haml6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/layouts/header/_help_dropdown.html.haml b/app/views/layouts/header/_help_dropdown.html.haml
index 04409408ce0..513902890af 100644
--- a/app/views/layouts/header/_help_dropdown.html.haml
+++ b/app/views/layouts/header/_help_dropdown.html.haml
@@ -1,9 +1,13 @@
+- show_blog_link = current_user_menu?(:help) && blog_post_url.present?
%ul
- if current_user_menu?(:help)
%li
= link_to _("Help"), help_path
%li.divider
+ - if show_blog_link
%li
- = link_to _("Submit feedback"), "https://about.gitlab.com/submit-feedback"
+ = link_to _("What's new?"), blog_post_url
+ %li
+ = link_to _("Submit feedback"), "https://about.gitlab.com/submit-feedback"
- if current_user_menu?(:help) || current_user_menu?(:settings) || current_user_menu?(:profile)
= render 'shared/user_dropdown_contributing_link'