Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-31 13:30:09 +0300
committerDouwe Maan <douwe@gitlab.com>2015-03-31 13:36:36 +0300
commit08eac512bdcd9181476afc3e4bc0b132ebd48478 (patch)
tree34a86c79d0e73309c3c1daf27cb2f6de046ae4e6 /app/helpers/emails_helper.rb
parent33a8f53f7a8fdc40d0f0ee4245258c8dba99198a (diff)
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