package pages import ( "git.ekzyis.com/ekzyis/delphi.market/server/router/pages/components" "git.ekzyis.com/ekzyis/delphi.market/types" "github.com/dustin/go-humanize" ) // TODO: Add countdown? Use or at least show somewhere precise timestamps? templ Market(m types.Market, q0 types.MarketQuote, q1 types.MarketQuote, uQ0 int, uQ1 int) { @components.Head() @components.Nav()
@components.Figlet("random", "market")
{ m.Question }
{humanize.Time(m.EndDate)}
if m.Description != "" { m.Description } else { <empty> }
― {m.User.Name}, { humanize.Time(m.CreatedAt) }
@components.MarketForm(m, 1, q1, uQ1)
@components.MarketForm(m, 0, q0, uQ0)
@components.Modal(nil) @components.Footer() }