Sha256: 146bf047ab92251c97e58b8c6bd5f8a7086bfd1b00e0933c05d963178a35b142
Contents?: true
Size: 710 Bytes
Versions: 43
Compression:
Stored size: 710 Bytes
Contents
# frozen_string_literal: true module Spotlight # HTML <meta> tag helpers module JobTrackersHelper def job_status_icon(job_tracker) content_tag :span, title: t(job_tracker.status || 'missing', scope: 'spotlight.job_trackers.status') do if job_tracker.enqueued? || job_tracker.in_progress? '⏱' elsif job_tracker.completed? '✅' elsif job_tracker.failed? '🟥' else '' end end end def job_tracker_event_table_row_class(event) case event.type when 'error' 'table-danger' when 'info', 'summary' '' else "table-#{event.type}" end end end end
Version data entries
43 entries across 43 versions & 1 rubygems