additionals/app/helpers/additionals_chartjs_helper.rb
2021-12-07 18:51:09 +01:00

14 lines
467 B
Ruby

# frozen_string_literal: true
module AdditionalsChartjsHelper
def chartjs_colorschemes_info_url
link_to_external l(:label_chartjs_colorscheme_info),
'https://nagix.github.io/chartjs-plugin-colorschemes/colorchart.html'
end
def select_options_for_chartjs_colorscheme(selected)
data = RedminePluginKit::Loader.new(plugin_id: 'additionals').yaml_config_load 'colorschemes.yml'
grouped_options_for_select data, selected
end
end