Sha256: 2891f3e35a82a0683040be0ec8b9a89a3f08520deecbe44700ee65938c4db5e4

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 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
    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"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redmine-neopoly_style-0.1.0 lib/neopoly_style/hooks.rb