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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-10 18:10:12 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-10 18:10:12 +0300
commit8f143a46faf2e7b594301512757edf372c294a0c (patch)
tree8bd5957ffa44d028905ab51a7252cce6783d2e25 /app/helpers/whats_new_helper.rb
parent3e06afc4cd1b75b3e957e8debf5e4f1963ba18e0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/whats_new_helper.rb')
-rw-r--r--app/helpers/whats_new_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/whats_new_helper.rb b/app/helpers/whats_new_helper.rb
index f267ede3153..bbf5bde5904 100644
--- a/app/helpers/whats_new_helper.rb
+++ b/app/helpers/whats_new_helper.rb
@@ -6,10 +6,14 @@ module WhatsNewHelper
end
def whats_new_storage_key
- most_recent_version = ReleaseHighlight.most_recent_version
+ most_recent_version = ReleaseHighlight.versions&.first
return unless most_recent_version
['display-whats-new-notification', most_recent_version].join('-')
end
+
+ def whats_new_versions
+ ReleaseHighlight.versions
+ end
end