You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.4 KiB
40 lines
1.4 KiB
.content-container
|
|
article.index
|
|
h1.tcenter The Auction House
|
|
p.tcenter
|
|
| Welcome to the Auction House! With our convenient online auction platform, you can easily browse through listings and find great deals on everything from clothes to electronics.
|
|
ul.button-container
|
|
li.em
|
|
a.button href="/auctions" = "Browse Auctions"
|
|
li
|
|
a.button href="/auctions/new" = "Post Auction"
|
|
|
|
- if Auction.get_all.length > 0
|
|
article
|
|
h1.tcenter.title
|
|
| Recent posts
|
|
|
|
article.post-container.card#posts
|
|
ul.list-container
|
|
- Auction.get_all.reverse[0..1].each do |auction|
|
|
li
|
|
a href="/auctions/#{auction.id}"
|
|
div style="background-image: url(#{auction.images[0].url})"
|
|
.info-container
|
|
h3
|
|
| #{auction.title}
|
|
- if auction.time_left > 0
|
|
| (
|
|
span.red
|
|
| #{auction.time_left_s}
|
|
| )
|
|
- if auction.end_time and auction.end_time - Time.now.to_i <= 0
|
|
span.red
|
|
| [Expired]
|
|
h4
|
|
| Posted by: #{auction.poster.name}
|
|
h4
|
|
| #{COINS_PREFIX}#{auction.current_bid}#{COINS_SUFFIX}
|
|
p
|
|
| #{auction.description}
|
|
|
|
|