|
|
|
@ -10,9 +10,9 @@ |
|
|
|
|
label Price range |
|
|
|
|
.range-container |
|
|
|
|
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: |
|
|
|
|
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 |
|
|
|
|
input type="checkbox" name="expired" checked=("checked" if params[:expired] == "on") |
|
|
|
@ -29,6 +29,8 @@ |
|
|
|
|
|
|
|
|
|
article.post-container.card |
|
|
|
|
h2 Results |
|
|
|
|
|
|
|
|
|
- if auctions.length > 0 |
|
|
|
|
ul.list-container |
|
|
|
|
- auctions.each do |auction| |
|
|
|
|
li |
|
|
|
@ -51,3 +53,5 @@ |
|
|
|
|
| #{COINS_PREFIX}#{auction.current_bid}#{COINS_SUFFIX} |
|
|
|
|
p |
|
|
|
|
| #{auction.description} |
|
|
|
|
- else |
|
|
|
|
h3.tcenter No results :( |
|
|
|
|