|
|
@ -10,9 +10,9 @@ |
|
|
|
label Price range |
|
|
|
label Price range |
|
|
|
.range-container |
|
|
|
.range-container |
|
|
|
label for="price-min" From: |
|
|
|
label for="price-min" From: |
|
|
|
input type="number" name="min_price" value="#{params[:min_price].to_f >= 0 ? params[:min_price] : ""}" min="#{MIN_INIT_PRICE}" max="#{MAX_INIT_PRICE}" |
|
|
|
input type="number" name="min_price" value="#{params[:min_price]}" min="#{MIN_INIT_PRICE}" max="#{MAX_INIT_PRICE}" |
|
|
|
label for="price-max" To: |
|
|
|
label for="price-max" To: |
|
|
|
input type="number" name="max_price" value="#{params[:min_price].to_f >= 0 ? params[:min_price] : ""}" min="#{MIN_INIT_PRICE}" max="#{MAX_INIT_PRICE}" |
|
|
|
input type="number" name="max_price" value="#{params[:min_price]}" min="#{MIN_INIT_PRICE}" max="#{MAX_INIT_PRICE}" |
|
|
|
|
|
|
|
|
|
|
|
.checkbox-container |
|
|
|
.checkbox-container |
|
|
|
input type="checkbox" name="expired" checked=("checked" if params[:expired] == "on") |
|
|
|
input type="checkbox" name="expired" checked=("checked" if params[:expired] == "on") |
|
|
@ -29,25 +29,29 @@ |
|
|
|
|
|
|
|
|
|
|
|
article.post-container.card |
|
|
|
article.post-container.card |
|
|
|
h2 Results |
|
|
|
h2 Results |
|
|
|
ul.list-container |
|
|
|
|
|
|
|
- auctions.each do |auction| |
|
|
|
- if auctions.length > 0 |
|
|
|
li |
|
|
|
ul.list-container |
|
|
|
a href="/auctions/#{auction.id}" |
|
|
|
- auctions.each do |auction| |
|
|
|
div style="background-image: url(#{auction.images[0].url})" |
|
|
|
li |
|
|
|
.info-container |
|
|
|
a href="/auctions/#{auction.id}" |
|
|
|
h3 |
|
|
|
div style="background-image: url(#{auction.images[0].url})" |
|
|
|
| #{auction.title} |
|
|
|
.info-container |
|
|
|
- if auction.time_left > 0 |
|
|
|
h3 |
|
|
|
| ( |
|
|
|
| #{auction.title} |
|
|
|
span.red |
|
|
|
- if auction.time_left > 0 |
|
|
|
| #{auction.time_left_s} |
|
|
|
| ( |
|
|
|
| ) |
|
|
|
span.red |
|
|
|
- if auction.end_time and auction.end_time - Time.now.to_i <= 0 |
|
|
|
| #{auction.time_left_s} |
|
|
|
span.red |
|
|
|
| ) |
|
|
|
| [Expired] |
|
|
|
- if auction.end_time and auction.end_time - Time.now.to_i <= 0 |
|
|
|
h4 |
|
|
|
span.red |
|
|
|
| Posted by: #{auction.poster.name} |
|
|
|
| [Expired] |
|
|
|
h4 |
|
|
|
h4 |
|
|
|
| #{COINS_PREFIX}#{auction.current_bid}#{COINS_SUFFIX} |
|
|
|
| Posted by: #{auction.poster.name} |
|
|
|
p |
|
|
|
h4 |
|
|
|
| #{auction.description} |
|
|
|
| #{COINS_PREFIX}#{auction.current_bid}#{COINS_SUFFIX} |
|
|
|
|
|
|
|
p |
|
|
|
|
|
|
|
| #{auction.description} |
|
|
|
|
|
|
|
- else |
|
|
|
|
|
|
|
h3.tcenter No results :( |
|
|
|