summaryrefslogtreecommitdiff
path: root/lib/gitlab/email/message/in_product_marketing/invite_team.rb
blob: e9334b687f4de787bb38d99a35941eb69ddbf0b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 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