Sha256: a0f9abdf2afc51b47c47ac08cfccf815730043566e6c99cf401d462a1e27779f
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
module MailyHerald module Webui module LogsHelper def log_actions log actions = [] subscription = log.mailing.list.subscription_for(log.entity) if log.entity actions << { name: :custom, url: subscription_path(subscription), icon: "fa fa-book", title: tw("label_subscription") } if subscription && !@item.is_a?(Subscription) actions << { name: :custom, url: preview_log_path(log), icon: "fa fa-file-o", data: { toggle: "modal", target: "#modal-generic" } } end def display_log_status log case log.status when :delivered content_tag(:span, icon(:check, tw("logs.status.delivered")), class: "text-success") when :skipped when :error content_tag(:span, icon(:exclamation, tw("logs.status.error")), class: "text-danger") when :scheduled content_tag(:span, icon(:"clock-o", tw("logs.status.scheduled")), class: "text-muted") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maily_herald-webui-0.8.0 | app/helpers/maily_herald/webui/logs_helper.rb |