|
|
@ -9,31 +9,32 @@ |
|
|
|
li |
|
|
|
li |
|
|
|
a.button href="/auctions/new" = "Post Auction" |
|
|
|
a.button href="/auctions/new" = "Post Auction" |
|
|
|
|
|
|
|
|
|
|
|
article |
|
|
|
- if Auction.get_all.length > 0 |
|
|
|
h1.tcenter.title |
|
|
|
article |
|
|
|
| Recent posts |
|
|
|
h1.tcenter.title |
|
|
|
|
|
|
|
| Recent posts |
|
|
|
|
|
|
|
|
|
|
|
article.post-container.card#posts |
|
|
|
article.post-container.card#posts |
|
|
|
ul.list-container |
|
|
|
ul.list-container |
|
|
|
- Auction.get_all.reverse[0..1].each do |auction| |
|
|
|
- Auction.get_all.reverse[0..1].each do |auction| |
|
|
|
li |
|
|
|
li |
|
|
|
a href="/auctions/#{auction.id}" |
|
|
|
a href="/auctions/#{auction.id}" |
|
|
|
div style="background-image: url(#{auction.images[0].url})" |
|
|
|
div style="background-image: url(#{auction.images[0].url})" |
|
|
|
.info-container |
|
|
|
.info-container |
|
|
|
h3 |
|
|
|
h3 |
|
|
|
| #{auction.title} |
|
|
|
| #{auction.title} |
|
|
|
- if auction.time_left > 0 |
|
|
|
- if auction.time_left > 0 |
|
|
|
| ( |
|
|
|
| ( |
|
|
|
span.red |
|
|
|
span.red |
|
|
|
| #{auction.time_left_s} |
|
|
|
| #{auction.time_left_s} |
|
|
|
| ) |
|
|
|
| ) |
|
|
|
- if auction.end_time and auction.end_time - Time.now.to_i <= 0 |
|
|
|
- if auction.end_time and auction.end_time - Time.now.to_i <= 0 |
|
|
|
span.red |
|
|
|
span.red |
|
|
|
| [Expired] |
|
|
|
| [Expired] |
|
|
|
h4 |
|
|
|
h4 |
|
|
|
| Posted by: #{auction.poster.name} |
|
|
|
| Posted by: #{auction.poster.name} |
|
|
|
h4 |
|
|
|
h4 |
|
|
|
| #{COINS_PREFIX}#{auction.current_bid}#{COINS_SUFFIX} |
|
|
|
| #{COINS_PREFIX}#{auction.current_bid}#{COINS_SUFFIX} |
|
|
|
p |
|
|
|
p |
|
|
|
| #{auction.description} |
|
|
|
| #{auction.description} |
|
|
|
|
|
|
|
|
|
|
|