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>2022-03-28 18:07:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-28 18:07:51 +0300
commitb213b675ec1d6fa633497c5f71c195f00b56be6d (patch)
tree40b871f2124307dfe2326f1d116d3fd7b4e2f86d /lib/gitlab/email
parente4dad5d33053f0facde637888363a8954d0d5e46 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/email')
-rw-r--r--lib/gitlab/email/message/in_product_marketing.rb2
-rw-r--r--lib/gitlab/email/message/in_product_marketing/invite_team.rb53
2 files changed, 1 insertions, 54 deletions
diff --git a/lib/gitlab/email/message/in_product_marketing.rb b/lib/gitlab/email/message/in_product_marketing.rb
index ac9585bcd1a..bd2c91755c8 100644
--- a/lib/gitlab/email/message/in_product_marketing.rb
+++ b/lib/gitlab/email/message/in_product_marketing.rb
@@ -7,7 +7,7 @@ module Gitlab
UnknownTrackError = Class.new(StandardError)
def self.for(track)
- valid_tracks = [Namespaces::InviteTeamEmailService::TRACK, Namespaces::InProductMarketingEmailsService::TRACKS.keys].flatten
+ valid_tracks = Namespaces::InProductMarketingEmailsService::TRACKS.keys
raise UnknownTrackError unless valid_tracks.include?(track)
"Gitlab::Email::Message::InProductMarketing::#{track.to_s.classify}".constantize
diff --git a/lib/gitlab/email/message/in_product_marketing/invite_team.rb b/lib/gitlab/email/message/in_product_marketing/invite_team.rb
deleted file mode 100644
index e9334b687f4..00000000000
--- a/lib/gitlab/email/message/in_product_marketing/invite_team.rb
+++ /dev/null
@@ -1,53 +0,0 @@
-# frozen_string_literal: true
-
-module Gitlab
- module Email
- module Message
- module InProductMarketing
- class InviteTeam < Base
- def subject_line
- s_('InProductMarketing|Invite your teammates to GitLab')
- end
-
- def tagline
- ''
- end
-
- def title
- s_('InProductMarketing|GitLab is better with teammates to help out!')
- end
-
- def subtitle
- ''
- end
-
- def body_line1
- s_('InProductMarketing|Invite your teammates today and build better code together. You can even assign tasks to new teammates such as setting up CI/CD, to help get projects up and running.')
- end
-
- def body_line2
- ''
- end
-
- def cta_text
- s_('InProductMarketing|Invite your teammates to help')
- end
-
- def logo_path
- 'mailers/in_product_marketing/team-0.png'
- end
-
- def series?
- false
- end
-
- private
-
- def validate_series!
- raise ArgumentError, "Only one email is sent for this track. Value of `series` should be 0." unless @series == 0
- end
- end
- end
- end
- end
-end