Sha256: 4cfbfcbfa630e4d2be2f466f293049d7ce75a881732321446430d3e1e09ea20f

Contents?: true

Size: 985 Bytes

Versions: 7

Compression:

Stored size: 985 Bytes

Contents

# frozen_string_literal: true

# rubocop:disable Metrics/LineLength
# Overrides for functions used in helpers.
module ThemeApplicationHelper
  def association_text()
    content_tag(:p, _('When editing a Template, you must assign a list of Operating Systems with which this Template can be used. Optionally, you can restrict a template to a list of Hostgroups or Environments.')) +
      content_tag(:p, _('When a Host requests a template (e.g. during provisioning), Foreman selects the optimal match from the available templates of that type, in the following order:')) +
      (content_tag :ul do
        content_tag(:li, _('Host group and Environment'))
        content_tag(:li, _('Host group only'))
        content_tag(:li, _('Environment only'))
        content_tag(:li, _('Operating system default'))
      end)
    (_('The final entry, Operating System default, can be set by editing the %s page.') % (link_to _('Operating System'), operatingsystems_path)).html_safe
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_theme_satellite-13.2.5 app/helpers/theme_application_helper.rb
foreman_theme_satellite-13.2.4 app/helpers/theme_application_helper.rb
foreman_theme_satellite-13.2.3 app/helpers/theme_application_helper.rb
foreman_theme_satellite-13.2.2 app/helpers/theme_application_helper.rb
foreman_theme_satellite-13.2.1 app/helpers/theme_application_helper.rb
foreman_theme_satellite-13.2.0 app/helpers/theme_application_helper.rb
foreman_theme_satellite-13.1.0 app/helpers/theme_application_helper.rb