Sha256: 416fb2d523af26f0c2dfd63c092adc7501bd1f0aba70573d3c11e25866b4b831

Contents?: true

Size: 895 Bytes

Versions: 1

Compression:

Stored size: 895 Bytes

Contents

- if @kind
  table.comission_table
    thead
      tr
        th colspan="3" Commission growth depends on the orders total of your 1st and 2nd Level Referrals
    tbody
      tr
        td.level Levels of referrals
        td = @kind.title
        td % comission

      - @rates.group_by(&:referrals_level).each do |referrals_level, items|
        - items.sort{ |a,b| a.value <=> b.value }.each_with_index do |item, index|
          tr
            - if index == 0
              td[
                rowspan="#{items.size}"
                class="#{t("level_human_#{item.referrals_level}", scope: [:affilate, :commission])}"
              ]
                span
                  = item.referrals_level
                  sub => ActiveSupport::Inflector.ordinal(item.referrals_level)
                b Level
            td = item.checkpoint
            td
              = pretty_number(item.value)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/cells/widgets/affilate_commission.html.slim