Revision 3154d77e
Added by Tomáš Strachota over 9 years ago
app/helpers/hosts_helper.rb | ||
---|---|---|
:class => 'fr label label-danger'})
|
||
end
|
||
|
||
def link_status(f)
|
||
return '' if f.object.new_record?
|
||
'(' + (f.object.link ? _('Up') : _('Down')) + ')'
|
||
def link_status(nic)
|
||
return '' if nic.new_record?
|
||
|
||
if nic.link
|
||
status = '<i class="glyphicon glyphicon glyphicon-arrow-up interface-up" title="'+ _('Up') +'"></i>'
|
||
else
|
||
status = '<i class="glyphicon glyphicon glyphicon-arrow-down interface-down" title="'+ _('Down') +'"></i>'
|
||
end
|
||
status.html_safe
|
||
end
|
||
|
||
def build_state(build)
|
Also available in: Unified diff
Fixes #7462 - new UI for network interfaces