Project

General

Profile

« Previous | Next » 

Revision 9bc1f99c

Added by Tomer Brisker over 8 years ago

Fixes #11388 - Popovers display with correct size and dismiss on next click

View differences:

app/helpers/puppetclasses_and_environments_helper.rb
num = hash[key].size
num_tag = "<span class='label label-info'>#{num}</span>".html_safe
content_tag(:a, key, { :rel => "popover",
:data => {
"content" => hash[key].sort.join('<br>').html_safe,
"original-title" => n_("%{name} has %{num_tag} class", "%{name} has %{num_tag} classes", num) % {:name => key, :num_tag => num_tag},
"trigger" => "manual",
"toggle" => "popover"
}
})
:data => { :content => hash[key].sort.join('<br>').html_safe,
:"original-title" => n_("%{name} has %{num_tag} class", "%{name} has %{num_tag} classes", num) % {:name => key, :num_tag => num_tag},
:trigger => "focus",
:container => 'body',
:html => true },
:role => 'button',
:tabindex => '-1' })
end.to_sentence.html_safe
end
end

Also available in: Unified diff