Revision bde92a1e
Added by Timo Goebel almost 6 years ago
app/helpers/hosts_helper.rb | ||
---|---|---|
end
|
||
|
||
def build_duration(host)
|
||
return _("N/A") if host.initiated_at.nil? && host.installed_at.nil?
|
||
return _('N/A') if host.initiated_at.nil? || host.installed_at.nil?
|
||
if host.installed_at.nil?
|
||
time_ago_in_words(host.initiated_at, include_seconds: true) + " (in progress)"
|
||
else
|
Also available in: Unified diff
fixes #22467 - dashboard: list hosts in build mode