master
E. Almqvist 3 years ago
parent 7140b7206b
commit e2192ae7c5
  1. 1
      src/TODO.md
  2. 2
      src/app.rb
  3. 8
      src/views/auction/view.slim

@ -1,5 +1,4 @@
# TODO
- Auction posting
- Auction views
----------------
- Auction searching at index

@ -187,7 +187,7 @@ get "/auctions" do
#price_rng = (params[:price_rng].split "-").map {|p| p.to_i}
isopen = params[:isopen]
auctions = Auction.search title#, categories, price_rng, isopen
auctions = Auction.search title #, categories, price_rng, isopen
serve :"auction/index", {auctions: auctions}
end

@ -1,3 +1,5 @@
.content-container
h1 = auction.title
h2 = auction.description
h1 = auction.title
h2 = auction.description
- auction.images.each do |img|
img src="#{img.url}"

Loading…
Cancel
Save