Sha256: 4e4190e73812e12d2eda5fe7b92d7d7e95d2af70a521752b067587c3fea9183e
Contents?: true
Size: 947 Bytes
Versions: 1
Compression:
Stored size: 947 Bytes
Contents
%h1 Welcome at Rawbotz #main-threes.pure-g .pure-u-1-3.center %a(href="/orders") %i.fa.fa-shopping-cart.huge-icon %br %h3 Last 3 Orders %table.pure-table-horizontal.pure-table -# Order.where(state: [Order::STATES.new, Order::STATES.processing, Order::STATES.queued, Order::STATES.ordered]).order("updated_at DESC").first(3).each do |order| - Order.where(state: ["new", "processing", "ordered", "mailed"]).order("updated_at DESC").first(3).each do |order| %tr %td %a(href="/order/#{order.id}") = order.updated_at.strftime("%Y-%m-%d %H:%M") %td = supplier_link order.supplier %td = order.state .pure-u-1-3.center %a(href="/products") %i.fa.fa-cubes.huge-icon %br %h3 Products -# latest addition? .pure-u-1-3.center %a(href="/suppliers") %i.fa.fa-truck.huge-icon %br %h3 Suppliers
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rawbotz-0.2.0 | lib/rawbotz/views/index.haml |