Module: IconHelper
- Defined in:
- app/helpers/icon_helper.rb
Instance Method Summary collapse
- #authentication_strategy_icon(name, size = 56, options = {}) ⇒ Object
- #build_type_icon(name, size = 56, options = {}) ⇒ Object
- #credential_icon(name, size = 56, options = {}) ⇒ Object
- #data_source_icon(name, size = 56, options = {}) ⇒ Object
- #deployment_icon(name, size = 56, options = {}) ⇒ Object
- #extension_icon(name, size = 56, options = {}) ⇒ Object
- #platform_icon(name, type = 'platform', size = 56, options = {}) ⇒ Object
- #repository_icon(name, size = 56, options = {}) ⇒ Object
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, ={}) platform_icon name, 'authentication-strategy', size, 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, ={}) platform_icon name, 'build-type', size, 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, ={}) platform_icon name, 'credential', size, 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, ={}) platform_icon name, 'data-source', size, 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, ={}) platform_icon name, 'deployment', size, 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, ={}) platform_icon name, 'extension', size, 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, ={}) [:class] ||= '' if [:wide] [:class] = "#{type}-icon-wide-#{size}-#{name} #{[:class]}" else [:class] = "#{type}-icon-#{size}-#{name} #{[:class]}" end content_tag :span, '', 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, ={}) platform_icon name, 'repository', size, end |