|
|
|
@ -26,7 +26,9 @@ struct TournamentWinner : HTMLRepresentable { |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
ColumnDescriptor(header: "Buy-in", number: true, widthWeight: 0.5), |
|
|
|
ColumnDescriptor(header: "Buy-in", number: true, widthWeight: 0.5), |
|
|
|
ColumnDescriptor(header: "Event", number: false, widthWeight: 3.0), |
|
|
|
ColumnDescriptor(header: "Event", number: false, widthWeight: 3.0), |
|
|
|
ColumnDescriptor(header: "Prizepool", number: true, widthWeight: 1.0)] |
|
|
|
ColumnDescriptor(header: "Prizepool", number: true, widthWeight: 1.0), |
|
|
|
|
|
|
|
ColumnDescriptor(header: "Entries", number: true, widthWeight: 1.0), |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
@ -43,7 +45,8 @@ struct TournamentWinner : HTMLRepresentable { |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
tournament.buyin.currencyFormatted, |
|
|
|
tournament.buyin.currencyFormatted, |
|
|
|
tournament.name, |
|
|
|
tournament.name, |
|
|
|
tournament.prizepool.currencyFormatted |
|
|
|
tournament.prizepool.currencyFormatted, |
|
|
|
|
|
|
|
tournament.entries.formatted() |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -57,6 +60,7 @@ struct TournamentWinner : HTMLRepresentable { |
|
|
|
header.append("<td width=\"130\">Prize</td>") |
|
|
|
header.append("<td width=\"130\">Prize</td>") |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
header.append("<td width=\"130\">Prizepool</td>") |
|
|
|
header.append("<td width=\"130\">Prizepool</td>") |
|
|
|
|
|
|
|
header.append("<td width=\"100\">Entries</td>") |
|
|
|
} |
|
|
|
} |
|
|
|
return "<tr class=\"table-header\">\(header)</tr>" |
|
|
|
return "<tr class=\"table-header\">\(header)</tr>" |
|
|
|
} |
|
|
|
} |
|
|
|
|