BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
74313988
Commit
74313988
authored
Apr 05, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rs-fix-gmail-actions' into 'master'
Premailer shouldn't remove script tags from our emails Closes #14943. See merge request !3552
parents
b393e513
ee1de011
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
premailer.rb
config/initializers/premailer.rb
+2
-1
notify.rb
spec/mailers/shared/notify.rb
+2
-0
No files found.
config/initializers/premailer.rb
View file @
74313988
...
@@ -3,5 +3,6 @@ Premailer::Rails.config.merge!(
...
@@ -3,5 +3,6 @@ Premailer::Rails.config.merge!(
generate_text_part:
false
,
generate_text_part:
false
,
preserve_styles:
true
,
preserve_styles:
true
,
remove_comments:
true
,
remove_comments:
true
,
remove_ids:
true
remove_ids:
true
,
remove_scripts:
false
)
)
spec/mailers/shared/notify.rb
View file @
74313988
...
@@ -141,10 +141,12 @@ shared_examples 'a new user email' do
...
@@ -141,10 +141,12 @@ shared_examples 'a new user email' do
end
end
shared_examples
'it should have Gmail Actions links'
do
shared_examples
'it should have Gmail Actions links'
do
it
{
is_expected
.
to
have_body_text
'<script type="application/ld+json">'
}
it
{
is_expected
.
to
have_body_text
/ViewAction/
}
it
{
is_expected
.
to
have_body_text
/ViewAction/
}
end
end
shared_examples
'it should not have Gmail Actions links'
do
shared_examples
'it should not have Gmail Actions links'
do
it
{
is_expected
.
to_not
have_body_text
'<script type="application/ld+json">'
}
it
{
is_expected
.
to_not
have_body_text
/ViewAction/
}
it
{
is_expected
.
to_not
have_body_text
/ViewAction/
}
end
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