Sha256: 25ae924cbb217ac74d7c4f430e8eec70b5342cce218550b8c2f9a55cbd9de41a
Contents?: true
Size: 609 Bytes
Versions: 23
Compression:
Stored size: 609 Bytes
Contents
# frozen_string_literal: true module RedminePluginsHelper module Hooks class AddAssets < Redmine::Hook::ViewListener def view_layouts_base_html_head(_context = {}) safe_join([plugins_autoload_stylesheet_tag, plugins_autoload_script_tag]) end private def plugins_autoload_stylesheet_tag tag('link', media: 'all', rel: 'stylesheet', href: asset_path('assets/plugins_autoload.css')) end def plugins_autoload_script_tag content_tag('script', "\n", src: asset_path('assets/plugins_autoload.js')) end end end end
Version data entries
23 entries across 23 versions & 1 rubygems