Revision bde92a1e
Added by Timo Goebel almost 6 years ago
app/helpers/dashboard_helper.rb | ||
---|---|---|
setting.nil? ? true : !setting
|
||
end
|
||
|
||
def host_build_status_icon(host)
|
||
if host.token_expired?
|
||
icon = 'hourglass-o'
|
||
icon_kind = 'fa'
|
||
icon_class = 'text-danger'
|
||
label = _('Token expired')
|
||
elsif host.build_errors.present?
|
||
icon = 'error-circle-o'
|
||
icon_kind = 'pficon'
|
||
icon_class = ''
|
||
label = _('Build errors')
|
||
else
|
||
icon = 'in-progress'
|
||
icon_kind = 'pficon'
|
||
icon_class = ''
|
||
label = _('Build in progress')
|
||
end
|
||
icon_text(icon, '', kind: icon_kind, title: label, class: icon_class)
|
||
end
|
||
|
||
private
|
||
|
||
def origin_setting(origin, name)
|
Also available in: Unified diff
fixes #22467 - dashboard: list hosts in build mode