diff --git a/assets/templates/index.tmpl b/assets/templates/index.tmpl index 5137f5683eca42bd0d227f2c6057772cf006d39a..cdc9438a56531e36fde442414270d2f5073f762c 100644 --- a/assets/templates/index.tmpl +++ b/assets/templates/index.tmpl @@ -27,6 +27,7 @@ class="live-btn">Canlı Yayın!</a> {{end}} <h5>{{index .Attributes "title"}}</h5> + <span>{{index .Attributes "prize"}}</span> <span>{{.StartTimeFormatted}}</span> </div> </li> diff --git a/tournament.go b/tournament.go index 78ccf86cb539c7d0fb97332063cb6e272980d4fe..b5f90d86dbe71a6cedb36e4ddc7663fc5068cb76 100644 --- a/tournament.go +++ b/tournament.go @@ -154,7 +154,7 @@ func populateTournaments(ts []*tournament) { } func populateTournament(t *tournament) { - t.StartTimeFormatted = t.StartTime.Format("Mon, 02 Jan 2006") + t.StartTimeFormatted = t.StartTime.Format("02/01/2006") t.TimePresent = time.Now().After(t.StartTime) t.EnrollmentOverdue = time.Now().After(t.Deadline) }