Revision 03595234
Added by Daniel Lobato Garcia about 9 years ago
app/helpers/application_helper.rb | ||
---|---|---|
(obj.new_record? && obj.class.count > 0) || (!obj.new_record? && obj.class.count > 1)
|
||
end
|
||
|
||
def documentation_button(section)
|
||
link_to(icon_text('question-sign', _('Documentation'), :class => 'icon-white'),
|
||
"http://www.theforeman.org/manuals/#{SETTINGS[:version].short}/index.html##{section}",
|
||
:rel => 'external', :class => 'btn btn-info', :target => '_blank')
|
||
end
|
||
|
||
private
|
||
|
||
def edit_inline(object, property, options = {})
|
Also available in: Unified diff
Fixes #9589 - Add documentation button to various models
(cherry picked from commit 8eed13de1dd3b4bc10e360427854041e236ae959)