Sha256: c4693423069d9b3e03068cd5d20f6eef9790b74c9e5e20978487cf8cb0b6a9eb
Contents?: true
Size: 852 Bytes
Versions: 19
Compression:
Stored size: 852 Bytes
Contents
- u = @position.purse.unit # 50 ## pixels per dollar - strategy = @position.strategy - pos = @position - nearest_strike = pos.stock.last.round - stock = pos.stock .positions--prepare = render '/iro/purses/header', purse: pos.purse .purses-gameuiW{ data: { margin: { left: u*@n_dollars } } } .purses-gameui .purses-gameuiC{ style: "margin-left: #{u*@n_dollars}px; width: 100% " } = render "/iro/positions/gameui_#{pos.strategy.kind}", position: pos %div{ class: pos.long_or_short } .long-or-short-item{ style: "border-left: 0" } - @positions.each_with_index do |pos, idx| .reviewing = render "/iro/positions/header_#{pos.strategy.kind}", pos: pos, collapse_key: 'roll' = render "/iro/positions/prepare_#{pos.strategy.kind}", pos: pos
Version data entries
19 entries across 19 versions & 1 rubygems