Module: IconHelper

Defined in:
app/helpers/icon_helper.rb

Instance Method Summary collapse

Instance Method Details

#authentication_strategy_icon(name, size = 56, options = {}) ⇒ Object



28
29
30
# File 'app/helpers/icon_helper.rb', line 28

def authentication_strategy_icon(name, size=56, options={})
  platform_icon name, 'authentication-strategy', size, options
end

#build_type_icon(name, size = 56, options = {}) ⇒ Object



12
13
14
# File 'app/helpers/icon_helper.rb', line 12

def build_type_icon(name, size=56, options={})
  platform_icon name, 'build-type', size, options
end

#credential_icon(name, size = 56, options = {}) ⇒ Object



36
37
38
# File 'app/helpers/icon_helper.rb', line 36

def credential_icon(name, size=56, options={})
  platform_icon name, 'credential', size, options
end

#data_source_icon(name, size = 56, options = {}) ⇒ Object



24
25
26
# File 'app/helpers/icon_helper.rb', line 24

def data_source_icon(name, size=56, options={})
  platform_icon name, 'data-source', size, options
end

#deployment_icon(name, size = 56, options = {}) ⇒ Object



16
17
18
# File 'app/helpers/icon_helper.rb', line 16

def deployment_icon(name, size=56, options={})
  platform_icon name, 'deployment', size, options
end

#extension_icon(name, size = 56, options = {}) ⇒ Object



20
21
22
# File 'app/helpers/icon_helper.rb', line 20

def extension_icon(name, size=56, options={})
  platform_icon name, 'extension', size, options
end

#platform_icon(name, type = 'platform', size = 56, options = {}) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'app/helpers/icon_helper.rb', line 2

def platform_icon(name, type='platform', size=56, options={})
  options[:class] ||= ''
  if options[:wide]
    options[:class] = "#{type}-icon-wide-#{size}-#{name} #{options[:class]}"
  else
    options[:class] = "#{type}-icon-#{size}-#{name} #{options[:class]}"
  end
   :span, '', options
end

#repository_icon(name, size = 56, options = {}) ⇒ Object



32
33
34
# File 'app/helpers/icon_helper.rb', line 32

def repository_icon(name, size=56, options={})
  platform_icon name, 'repository', size, options
end