Revision d7c67746
Added by Michael Moll almost 6 years ago
app/helpers/hosts_helper.rb | ||
---|---|---|
end
|
||
|
||
def randomize_mac_link
|
||
link_to_function(icon_text('random'), 'randomizeName()', :class => 'btn btn-default',
|
||
:title => _('Generate new random name. Visit Settings to disable this feature.')) if NameGenerator.random_based?
|
||
if NameGenerator.random_based?
|
||
link_to_function(icon_text('random'), 'randomizeName()', :class => 'btn btn-default',
|
||
:title => _('Generate new random name. Visit Settings to disable this feature.'))
|
||
end
|
||
end
|
||
|
||
def power_status_visible?
|
Also available in: Unified diff
Fixes #19873 - Fix Style/MultilineIfModifier cop (#5705)