File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,9 @@ class BracketsViewer {
193
193
const team1 = this . renderTeam ( results . opponent1 ) ;
194
194
const team2 = this . renderTeam ( results . opponent2 ) ;
195
195
196
- const teams = $ ( '<div class="teams">' ) . append ( team1 ) . append ( team2 ) ;
196
+ const teams = $ ( '<div class="teams">' ) ;
197
197
if ( label ) teams . append ( $ ( '<span>' ) . text ( label ) ) ;
198
+ teams . append ( team1 ) . append ( team2 ) ;
198
199
199
200
const match = $ ( '<div class="match">' ) . append ( teams ) ;
200
201
if ( ! connection ) return match ;
@@ -233,11 +234,19 @@ class BracketsViewer {
233
234
if ( team . result && team . result === 'win' ) {
234
235
nameDOM . addClass ( 'win' ) ;
235
236
scoreDOM . addClass ( 'win' ) ;
237
+
238
+ if ( team . score === undefined )
239
+ scoreDOM . text ( 'W' ) ; // Win.
236
240
}
237
241
238
- if ( team . result && team . result === 'loss' ) {
242
+ if ( team . result && team . result === 'loss' || team . forfeit ) {
239
243
nameDOM . addClass ( 'loss' ) ;
240
244
scoreDOM . addClass ( 'loss' ) ;
245
+
246
+ if ( team . forfeit )
247
+ scoreDOM . text ( 'F' ) ; // Forfeit.
248
+ else if ( team . score === undefined )
249
+ scoreDOM . text ( 'L' ) ; // Loss.
241
250
}
242
251
}
243
252
Original file line number Diff line number Diff line change 171
171
background : white ;
172
172
padding : 0 5px ;
173
173
color : #a7a7a7 ;
174
+ border-radius : 3px ;
174
175
}
175
176
176
177
& .connect-previous {
You can’t perform that action at this time.
0 commit comments