3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'app/helpers/bootstrap_helper.rb', line 3
def helper_icon(content, options= {})
return unless content.present?
icon = options[:icon] || "question-circle"
icon_options = options[:icon_options] || {}
tag.a(tabindex: options[:tabindex] || 0,
class: options[:class],
role: "button",
title: options[:title] || "info",
data: {
'bs-toggle': 'popover',
'bs-trigger': 'focus',
'bs-placement': options[:placement] || 'bottom',
'bs-content': content
}) do
fa_icon(icon, icon_options)
end
end
|