summaryrefslogtreecommitdiff
path: root/lib/gitlab/email/message/in_product_marketing/trial.rb
blob: 222046a3966fb13a04de00791150f6308143eee4 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# frozen_string_literal: true

module Gitlab
  module Email
    module Message
      module InProductMarketing
        class Trial < Base
          def subject_line
            [
              s_('InProductMarketing|Go farther with GitLab'),
              s_('InProductMarketing|Automated security scans directly within GitLab'),
              s_('InProductMarketing|Take your source code management to the next level')
            ][series]
          end

          def tagline
            [
              s_('InProductMarketing|Start a free trial of GitLab Ultimate – no CC required'),
              s_('InProductMarketing|Improve app security with a 30-day trial'),
              s_('InProductMarketing|Start with a GitLab Ultimate free trial')
            ][series]
          end

          def title
            [
              s_('InProductMarketing|Give us one minute...'),
              s_("InProductMarketing|Security that's integrated into your development lifecycle"),
              s_('InProductMarketing|Improve code quality and streamline reviews')
            ][series]
          end

          def subtitle
            [
              s_('InProductMarketing|...and you can get a free trial of GitLab Ultimate'),
              s_('InProductMarketing|Try GitLab Ultimate for free'),
              s_('InProductMarketing|Better code in less time')
            ][series]
          end

          def body_line1
            [
              [
                s_("InProductMarketing|GitLab's premium tiers are designed to make you, your team and your application more efficient and more secure with features including but not limited to:"),
                list([
                  s_('InProductMarketing|%{strong_start}Company wide portfolio management%{strong_end} — including multi-level epics, scoped labels').html_safe % strong_options,
                  s_('InProductMarketing|%{strong_start}Multiple approval roles%{strong_end} — including code owners and required merge approvals').html_safe % strong_options,
                  s_('InProductMarketing|%{strong_start}Advanced application security%{strong_end} — including SAST, DAST scanning, FUZZ testing, dependency scanning, license compliance, secrete detection').html_safe % strong_options,
                  s_('InProductMarketing|%{strong_start}Executive level insights%{strong_end} — including reporting on productivity, tasks by type, days to completion, value stream').html_safe % strong_options
                ])
              ].join("\n"),
              s_('InProductMarketing|GitLab provides static application security testing (SAST), dynamic application security testing (DAST), container scanning, and dependency scanning to help you deliver secure applications along with license compliance.'),
              s_('InProductMarketing|By enabling code owners and required merge approvals the right person will review the right MR. This is a win-win: cleaner code and a more efficient review process.')
            ][series]
          end

          def body_line2
            [
              s_('InProductMarketing|Start a GitLab Ultimate trial today in less than one minute, no credit card required.'),
              s_('InProductMarketing|Get started today with a 30-day GitLab Ultimate trial, no credit card required.'),
              s_('InProductMarketing|Code owners and required merge approvals are part of the paid tiers of GitLab. You can start a free 30-day trial of GitLab Ultimate and enable these features in less than 5 minutes with no credit card required.')
            ][series]
          end

          def cta_text
            [
              s_('InProductMarketing|Start a trial'),
              s_('InProductMarketing|Beef up your security'),
              s_('InProductMarketing|Start your trial now!')
            ][series]
          end

          def progress
            super(current: series + 2, total: 4)
          end
        end
      end
    end
  end
end