Sha256: 60cf2f868275ec2c48f2286688da2f66ecf79588b3758de5e30684497f978cf7

Contents?: true

Size: 718 Bytes

Versions: 13

Compression:

Stored size: 718 Bytes

Contents

module Of
  module OffersListHelper

    # Выдать html unordered list Акций
    #
    def render_ul_offers_list(&make_offer_url)

      p_make_offer_url = Proc.new &make_offer_url
      offers = Offer.all

      render :partial => 'of/offers_list',
             :locals => {
                 offers: offers,
                 p_make_offer_url: p_make_offer_url
             }

    end

    def render_ul_offers_list_flat(&make_offer_url)

      p_make_offer_url = Proc.new &make_offer_url
      offers = Offer.all

      render :partial => 'of/offers_list_flat',
             :locals => {
                 offers: offers,
                 p_make_offer_url: p_make_offer_url
             }

    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
c80_yax-0.1.0.25 engines/of/app/helpers/of/offers_list_helper.rb
c80_yax-0.1.0.24 engines/of/app/helpers/of/offers_list_helper.rb
c80_yax-0.1.0.23 engines/of/app/helpers/of/offers_list_helper.rb
c80_yax-0.1.0.22 engines/of/app/helpers/of/offers_list_helper.rb
c80_yax-0.1.0.21 engines/of/app/helpers/of/offers_list_helper.rb
c80_yax-0.1.0.20 engines/of/app/helpers/of/offers_list_helper.rb
c80_yax-0.1.0.18 engines/of/app/helpers/of/offers_list_helper.rb
c80_yax-0.1.0.17 engines/of/app/helpers/of/offers_list_helper.rb
c80_yax-0.1.0.16 engines/of/app/helpers/of/offers_list_helper.rb
c80_yax-0.1.0.15 engines/of/app/helpers/of/offers_list_helper.rb
c80_yax-0.1.0.14 engines/of/app/helpers/of/offers_list_helper.rb
c80_yax-0.1.0.13 engines/of/app/helpers/of/offers_list_helper.rb
c80_yax-0.1.0.12 engines/of/app/helpers/of/offers_list_helper.rb