Sha256: 33858e3d3037ebd42da756d5dda83d83e992eb5e5d66916dc0d23c47d4bb68d5

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

- nearest_strike = stock.last.round
- u       = @purse.unit
- every_n = @purse.mark_every_n_usd

.grid-mark.mark0
  .label
    .labelC= nearest_strike
- (1...@n_dollars).each_with_index do |idx|
  - idx = idx * every_n
  .grid-mark{ class: "mark#{idx}", style: "left: #{idx * u}px" }
    .label
      .labelC= nearest_strike + idx
  .grid-mark{ class: "mark-#{idx}", style: "left: -#{idx * u}px" }
    .label
      .labelC= nearest_strike - idx

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.22 app/views/iro/stocks/_grid_is_long.haml
iron_warbler-2.0.7.21 app/views/iro/stocks/_grid_is_long.haml