Sha256: d93dbef19251246f649d698459b9a31b4fcd21930ae657c4af62bf288d0932e5

Contents?: true

Size: 515 Bytes

Versions: 23

Compression:

Stored size: 515 Bytes

Contents

class Tramway::Landing::BlockTypes::FeaturesDecorator < ::Tramway::Core::ApplicationDecorator
  def icon; end

  def image; end

  def title; end

  def text; end

  def anchor; end

  def full_text; end

  def external_link; end

  def active_link
    if anchor.present?
      "##{anchor}"
    else
      if external_link.present?
        if external_link.match?(/^https?:\/\//)
          external_link
        else
          "http://#{external_link}"
        end
      else
        ''
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
tramway-landing-1.8 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.7.2 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.7.1.2 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.7.1.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.7.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.7 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.6 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.5.2 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.5.1.2 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.5.1.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.5.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.5 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.4.7.4 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.4.7.3 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.4.7.2 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.4.7.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.4.7 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.4.6 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.4.5 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-1.4.4 app/decorators/tramway/landing/block_types/features_decorator.rb