summaryrefslogtreecommitdiff
path: root/app/helpers/emails_helper.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-31 12:30:09 +0200
committerDouwe Maan <douwe@gitlab.com>2015-03-31 12:36:36 +0200
commit08eac512bdcd9181476afc3e4bc0b132ebd48478 (patch)
tree34a86c79d0e73309c3c1daf27cb2f6de046ae4e6 /app/helpers/emails_helper.rb
parent33a8f53f7a8fdc40d0f0ee4245258c8dba99198a (diff)
downloadgitlab-ce-08eac512bdcd9181476afc3e4bc0b132ebd48478.tar.gz
Move EmailsOnPush highlight CSS inline instead of being in every notification email.
Diffstat (limited to 'app/helpers/emails_helper.rb')
-rw-r--r--app/helpers/emails_helper.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/helpers/emails_helper.rb b/app/helpers/emails_helper.rb
index 08476f8516e..6c253213c3b 100644
--- a/app/helpers/emails_helper.rb
+++ b/app/helpers/emails_helper.rb
@@ -33,12 +33,8 @@ module EmailsHelper
end
end
- def add_email_highlight_css
- Rugments::Themes::Github.render(scope: '.highlight')
- end
-
def color_email_diff(diffcontent)
- formatter = Rugments::Formatters::HTML.new(cssclass: 'highlight')
+ formatter = Rugments::Formatters::HTML.new(cssclass: "highlight", inline_theme: :github)
lexer = Rugments::Lexers::Diff.new
raw formatter.format(lexer.lex(diffcontent))
end