Skip to content

Commit

Permalink
Clean up some copy/paste cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbevi committed Jan 11, 2018
1 parent 2fdf215 commit 0701599
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions lib/hooks.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
module RougeHighlighter
class ViewHooks < Redmine::Hook::ViewListener
include ActionView::Helpers::TagHelper

class ViewsLayoutsHook < Redmine::Hook::ViewListener
def view_layouts_base_html_head(context={})
val = %{
def view_layouts_base_html_head(context={})
val = %{
/************* Rouge styles *************/
/* generated by: pygmentize -f html -a .syntaxhl -S colorful */
.syntaxhl .hll { background-color: #ffffcc }
Expand Down Expand Up @@ -70,11 +67,9 @@ def view_layouts_base_html_head(context={})
.syntaxhl .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
.syntaxhl .vi { color: #3333BB } /* Name.Variable.Instance */
.syntaxhl .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
}
}

content_tag(:style, val.html_safe, type: 'text/css')
end
content_tag(:style, val.html_safe, type: 'text/css')
end

end
end

0 comments on commit 0701599

Please sign in to comment.