Sha256: 90972c94cee2e9bd9526b1ce5bdff085e4502403a7e31ee2132fdf722b899272
Contents?: true
Size: 710 Bytes
Versions: 2
Compression:
Stored size: 710 Bytes
Contents
module ForemanVirtWhoConfigure module CompatibilityHelper extend ActiveSupport::Concern def new_config_link(options = {}, html_options = {}) if ApplicationHelper.instance_methods.include?(:new_link) new_link(_("Create Config"), options, html_options) else display_link_if_authorized(_("New Config"), hash_for_new_foreman_virt_who_configure_config_path, html_options) end end def help_button_or_path if ApplicationHelper.instance_methods.include?(:help_button) # help_button does not support plugins link_to(_("Help"), { :action => "welcome" }, { :class => 'btn btn-default' }) else help_path end end end end
Version data entries
2 entries across 2 versions & 1 rubygems