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.4.27 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.4 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.26 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.3 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.25 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.2 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.24 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.1 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.23 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.22 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.0 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.21 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.5.0.beta.1 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.20 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.19 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.18 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.17 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.16 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.15 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.14 app/mailers/workarea/admin/application_mailer.rb