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.13 app/mailers/workarea/admin/application_mailer.rb
workarea-admin-3.4.12 app/mailers/workarea/admin/application_mailer.rb