Sha256: 434ed39c47a2292ef87fee5718cef2992c763633cf09a85d83d732764038fd4f
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
- @lifetimes.group_by { |l| l.lifetime_type }.each do |lifetime_type, items| - fin = lifetime_type.current(finance) - psx = discount_progress_percent(fin, items, {'0' => 16.7, '1' => 50.1, '2' => 83.6}) - psy = discount_progress_percent(fin, items, {'0' => 17.5, '1' => 50.5, '2' => 83.5}) .progress_item p = lifetime_type.title .progress_item_content .progress_info.discount_value.progress_info_desktop - items.each do |item| .progress_info_item span - if lifetime_type.id == LifetimeType.orders_total.id = satellite_price(item.checkpoint) - else = number_with_delimiter(item.checkpoint.to_i) .progress_info.discount_value.progress_info_mobile - items.reverse.each do |item| .progress_info_item span - if lifetime_type.id == LifetimeType.orders_total.id = satellite_price(item.checkpoint) - else = number_with_delimiter(item.checkpoint.to_i) .progress_bar .progress_line style="height:#{psy}%;width:#{psx}%;" .progress_line_value - if lifetime_type.id == LifetimeType.orders_total.id = satellite_price(lifetime_type.current(finance)) - else = number_with_delimiter(lifetime_type.current(finance).to_i) / finance
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/views/account/discounts/_progress.html.slim |