Sha256: a55cdd56f758c245513bbe4ea6d0dc974529402b50223519c6a404d62b8e4fee
Contents?: true
Size: 687 Bytes
Versions: 30
Compression:
Stored size: 687 Bytes
Contents
module ForemanSalt module SaltModulesHelper def import_from_proxies links = SmartProxy.with_features('Salt').map do |proxy| display_link_if_authorized(_('Import from %s') % proxy.name, hash_for_import_salt_modules_path.merge(:proxy => proxy), :class => 'btn btn-default') end.flatten select_action_button(_('Import'), {}, links) end def colorize(state) # Make the state easier to read combo = %w(2E9DB9 4D1D59 2C777E 1C4758 591D4B) state.split('.').each_with_index.map do |section, index| "<span style='color: ##{combo[index % 5]}; font-weight: bold;'>#{section}</span>" end.join('.').html_safe end end end
Version data entries
30 entries across 30 versions & 1 rubygems