diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-31 12:30:09 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-31 12:36:36 +0200 |
commit | 08eac512bdcd9181476afc3e4bc0b132ebd48478 (patch) | |
tree | 34a86c79d0e73309c3c1daf27cb2f6de046ae4e6 /app/helpers/emails_helper.rb | |
parent | 33a8f53f7a8fdc40d0f0ee4245258c8dba99198a (diff) | |
download | gitlab-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.rb | 6 |
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 |