Sha256: 7efcba7aa41280669055185a03c3cfb6c7f277ce9c2c8ed5ef333897ea277e85

Contents?: true

Size: 795 Bytes

Versions: 24

Compression:

Stored size: 795 Bytes

Contents

%table.standalone.table
  %thead
    %tr
      %th Discount Code
      %th Type
      %th.right{:style=>'width:100px'} Tickets
      %th.right{:style=>'width:100px'} Discounted
      %th.right{:style=>'width:100px'} 
      %th.right{:style=>'width:100px'} 
  %tbody
    - if statement.discount_rows.empty?
      %tr
        %td{:colspan => 6} No discounts used for this show

    - statement.discount_rows.each do |discount_code, row|
      %tr
        %td=discount_code
        %td=row.type
        %td.right=row.tickets
        %td.right 
          %strong=number_as_cents row.discount
        %td.right
        %td.right
    %tr
      %td.right{:colspan => 6}
        = icon_link_to "Slices", statement_slices_path(@show.id, 'slice[]' => 'discount_code_proc'), 'icon-chevron-right', 'btn', ''

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre app/views/statements/_discounts_table.html.haml
artfully_ose-1.1.0 app/views/statements/_discounts_table.html.haml
artfully_ose-1.1.0.rc2 app/views/statements/_discounts_table.html.haml
artfully_ose-1.1.0.rc1 app/views/statements/_discounts_table.html.haml