Sha256: 55d4c8ec467bddd83bdcc1e7fa14ba629f16bb4bbb044c346f5dea0c630d689a

Contents?: true

Size: 1.19 KB

Versions: 2

Compression:

Stored size: 1.19 KB

Contents

.backgrounds.big-header
  %h1= @special_offer.name
  .interact-links
    = link_to I18n.t('back_to_special_offer').capitalize, [forgeos_commerce, :admin, :special_offers], :class => 'backgrounds interact-button'
    /= I18n.t('or')
    /= link_to I18n.t('back_to_special_offer').capitalize,admin_special_offers_path, :class => 'back-link'

#content.grid_16.alpha.omega
  .special_offers.grid_12.alpha.omega
    .grid_8.omega
      .description= @special_offer.description
      .description= "#{I18n.t('offer_used', :count => @special_offer.use).capitalize}"
    .inner-content

      .specialOffers_products
        .specialOffers_products_header
          = "#{I18n.t('apply', :count => @selected_products.size).capitalize}"
        #specialOffers_products_table
          .thead
            .tr
              .th
          .tbody
            -@selected_products.each do |product|
              -product = Product.find_by_id(product, :joins => :translations, :select => 'name, products.id')
              .tr
                .td
                  =image_tag(product.pictures.first.public_filename(:thumb)) unless product.pictures.empty?
                  =link_to product.name, [forgeos_commerce, :admin, product]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_commerce-1.9.1.rc1 app/views/admin/special_offers/show.html.haml
forgeos_commerce-1.9.0 app/views/admin/special_offers/show.html.haml