Module: WebhookInbox::DashboardHelper
- Defined in:
- app/helpers/webhook_inbox/dashboard_helper.rb
Constant Summary collapse
- STATUS_CLASSES =
{ "pending" => "badge-pending", "processing" => "badge-processing", "processed" => "badge-processed", "failed" => "badge-failed" }.freeze
Instance Method Summary collapse
Instance Method Details
#status_badge(status) ⇒ Object
12 13 14 15 |
# File 'app/helpers/webhook_inbox/dashboard_helper.rb', line 12 def status_badge(status) css = STATUS_CLASSES.fetch(status, "badge-pending") content_tag(:span, status, class: "wi-badge #{css}") end |