Sha256: f9fad3089990428dd3b1d1288cbf1189b699aa4c4a275fb3947ad3a2f72ca419

Contents?: true

Size: 491 Bytes

Versions: 16

Compression:

Stored size: 491 Bytes

Contents

module Maily
  module EmailsHelper
    def total_emails(mailers)
      mailers.map { |mailer| mailer.total_emails }.sum
    end

    def email_description(email)
      return unless email.description

      content_tag(:div, class: 'mail_description') do
        concat content_tag(:strong, 'Description ')
        concat email.description
      end
    end

    def part_class(part)
      'format_selected' if (part == params[:part]) || (part == 'html' && !params[:part])
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
maily-1.0.0 app/helpers/maily/emails_helper.rb
maily-0.12.3 app/helpers/maily/emails_helper.rb
maily-0.12.2 app/helpers/maily/emails_helper.rb
maily-0.12.1 app/helpers/maily/emails_helper.rb
maily-0.12.0 app/helpers/maily/emails_helper.rb
maily-0.11.0 app/helpers/maily/emails_helper.rb
maily-0.10.1 app/helpers/maily/emails_helper.rb
maily-0.10.0 app/helpers/maily/emails_helper.rb
maily-0.9.1 app/helpers/maily/emails_helper.rb
maily-0.9.0 app/helpers/maily/emails_helper.rb
maily-0.8.2 app/helpers/maily/emails_helper.rb
maily-0.8.1 app/helpers/maily/emails_helper.rb
maily-0.8.0 app/helpers/maily/emails_helper.rb
maily-0.7.2 app/helpers/maily/emails_helper.rb
maily-0.7.1 app/helpers/maily/emails_helper.rb
maily-0.7.0 app/helpers/maily/emails_helper.rb