diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-26 15:09:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-26 15:09:27 +0300 |
commit | 0121231095b3a50a18aaf4eb4a7058b55fe62fc1 (patch) | |
tree | a29154a1a62ff69fc8816b2694d25a3213cdcd30 /app/presenters/gitlab | |
parent | 6fb22ef2ea39f92edf9b237f6e3eca6121c8298b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters/gitlab')
-rw-r--r-- | app/presenters/gitlab/whats_new/item_presenter.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/app/presenters/gitlab/whats_new/item_presenter.rb b/app/presenters/gitlab/whats_new/item_presenter.rb deleted file mode 100644 index 9f66e19ade0..00000000000 --- a/app/presenters/gitlab/whats_new/item_presenter.rb +++ /dev/null @@ -1,22 +0,0 @@ -# frozen_string_literal: true - -module Gitlab - module WhatsNew - class ItemPresenter - DICTIONARY = { - core: 'Free', - starter: 'Bronze', - premium: 'Silver', - ultimate: 'Gold' - }.freeze - - def self.present(item) - if Gitlab.com? - item['packages'] = item['packages'].map { |p| DICTIONARY[p.downcase.to_sym] } - end - - item - end - end - end -end |