Sha256: 1243637608d11c8e9f49bfb6aa6e9643c3359ea1669f08495ab37d985092ece2

Contents?: true

Size: 809 Bytes

Versions: 62

Compression:

Stored size: 809 Bytes

Contents

module Workarea
  module Admin
    class ApplicationMailer < Workarea::ApplicationMailer
      layout 'workarea/admin/email'

      before_action :set_host
      before_action :set_colors

      private

      # TODO: v4 remove
      def set_host
        @host = Workarea.config.host
      end

      # TODO: v4 remove
      def set_colors
        @email_width = '600'
        @background_color = '#ffffff'
        @layout_separator_color = '#E1E4E6'
        @layout_background_color = '#eeeff0'
        @heading_color = '#333333'
        @heading_background_color = '#eeeff0'
        @text_color = '#000000'
        @link_color = '#011eff'
        @table_background_color = '#a9a9a8'
        @positive_change_text_color = '#6dde95'
        @negative_change_text_color = '#fa775d'
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.5.15 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.36 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.14 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.35 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.13 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.34 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.12 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.33 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.11 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.10 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.32 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.9 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.31 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.8 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.30 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.7 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.29 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.6 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.28 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.5 app/mailers/workarea/admin/application_mailer.rb