Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9b8db1fa
Commit
9b8db1fa
authored
Sep 27, 2021
by
eugielimpin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not include the whole ActionView::Helpers::UrlHelper module
parent
369af359
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
lib/gitlab/email/message/in_product_marketing/base.rb
lib/gitlab/email/message/in_product_marketing/base.rb
+2
-2
lib/gitlab/email/message/in_product_marketing/helper.rb
lib/gitlab/email/message/in_product_marketing/helper.rb
+1
-2
No files found.
lib/gitlab/email/message/in_product_marketing/base.rb
View file @
9b8db1fa
...
...
@@ -50,7 +50,7 @@ module Gitlab
def
cta_link
case
format
when
:html
link_to
cta_text
,
group_email_campaigns_url
(
group
,
track:
track
,
series:
series
),
target:
'_blank'
,
rel:
'noopener noreferrer'
ActionController
::
Base
.
helpers
.
link_to
cta_text
,
group_email_campaigns_url
(
group
,
track:
track
,
series:
series
),
target:
'_blank'
,
rel:
'noopener noreferrer'
else
[
cta_text
,
group_email_campaigns_url
(
group
,
track:
track
,
series:
series
)].
join
(
' >> '
)
end
...
...
@@ -89,7 +89,7 @@ module Gitlab
case
format
when
:html
links
.
map
do
|
text
,
link
|
link_to
(
text
,
link
)
ActionController
::
Base
.
helpers
.
link_to
(
text
,
link
)
end
else
'| '
+
links
.
map
do
|
text
,
link
|
...
...
lib/gitlab/email/message/in_product_marketing/helper.rb
View file @
9b8db1fa
...
...
@@ -7,7 +7,6 @@ module Gitlab
module
Helper
include
ActionView
::
Context
include
ActionView
::
Helpers
::
TagHelper
include
ActionView
::
Helpers
::
UrlHelper
private
...
...
@@ -32,7 +31,7 @@ module Gitlab
def
link
(
text
,
link
)
case
format
when
:html
link_to
text
,
link
ActionController
::
Base
.
helpers
.
link_to
text
,
link
else
"
#{
text
}
(
#{
link
}
)"
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment