Sha256: c1cb5c268dc8c16d85cea649f2b1e332713a1ab58adf731a3ee9b8dd7d96f7a9

Contents?: true

Size: 652 Bytes

Versions: 6

Compression:

Stored size: 652 Bytes

Contents

.stocks-index.maxwidth
  .maxwidth
    %h5 Stocks

  %table.bordered.padded
    %thead
      %tr
        %td Ticker
        %td last price
        %td n priceitems
        %td volatility
    %tbody
      - @stocks.each do |stock|
        %tr
          %td
            = link_to '[~]', edit_stock_path(stock)
            = link_to '[api]', stock_path(stock, format: :json)
            <b>#{link_to stock.ticker, stock_path(stock)}</b>
          %td
            #{pp_amount stock.last}
          %td
            = stock.priceitems.length
          %td
            = stock.volatility rescue nil

  %hr
  = render 'iro/stocks/form', stock: Iro::Stock.new

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.43 app/views/iro/stocks/index.haml
iron_warbler-2.0.7.42 app/views/iro/stocks/index.haml
iron_warbler-2.0.7.41 app/views/iro/stocks/index.haml
iron_warbler-2.0.7.40 app/views/iro/stocks/index.haml
iron_warbler-2.0.7.39 app/views/iro/stocks/index.haml
iron_warbler-2.0.7.38 app/views/iro/stocks/index.haml