Sha256: 429aa45305ad26c0e08c8745c4ac608efa38dce1439bed202ada2b2986845e37

Contents?: true

Size: 277 Bytes

Versions: 25

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

module Alchemy
  module Admin
    module PicturesHelper
      def preview_size(size)
        case size
        when 'small' then '80x60'
        when 'large' then '240x180'
        else
          '160x120'
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
alchemy_cms-4.6.7 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.6.6 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.6.5 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.5.1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.4.5 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.6.4 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.6.3 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.6.2 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.6.1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.6.0 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.5.0 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.4.4 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.4.3 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.4.2 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.4.1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.4.0 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.3.2 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.2.4 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.3.1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-4.2.3 app/helpers/alchemy/admin/pictures_helper.rb