Sha256: 3271d1eff876bd78ca5303710b527dd41c1da0959e10169abd52b1974ae9e956
Contents?: true
Size: 833 Bytes
Versions: 7
Compression:
Stored size: 833 Bytes
Contents
module NeopolyStyle # Includes our stylesheet and javascript files into the base layout class Hooks < Redmine::Hook::ViewListener # Inject javascript and stylesheet tags # @param _context [Hash] ignored def view_layouts_base_html_head(context) javascript_tags + stylesheet_tags + additional_favicons(context) end private def javascript_tags javascript_include_tag "neopoly_style", plugin: "neopoly_style" end def stylesheet_tags stylesheet_link_tag("neopoly_style", plugin: "neopoly_style") + stylesheet_link_tag("neopoly_style_responsive", plugin: "neopoly_style") end def additional_favicons(context) context[:controller].send(:render_to_string, { partial: "neopoly_style/additional_favicons", locals: context }) end end end
Version data entries
7 entries across 7 versions & 1 rubygems