Modulo:TeamBracket: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
fix custom style for header |
non aggiungo righe che rimangono vuote a causa di bye |
||
Riga 390:
end
return nil
end
if row_base < self.min_row_used then self.min_row_used = row_base end
if row_base + 3 > self.max_row_used then self.max_row_used = row_base + 3 end
local showSeed = false
local winner, score_results = 0, {}
Line 429 ⟶ 431:
local seedArg2 = self:getTeamArg(self.rounds, 'seed', 4)
self:addGap(row, self.current_col, self.current_width, 'f3')
if row+4 > self.max_row_used then self.max_row_used = row + 4 end
self.rows[row]:tag('td')
:cssText(style.header_third_place)
Line 464 ⟶ 467:
-- create 3 or 1 rows for every team
local row_count = self.teams * 2 + (self.compact and 0 or (self.teams - 2))
self.min_row_used = row_count
self.max_row_used = 1
local gap_function = (self.compact and compact_gap) or normal_gap
for i = 1, row_count do
Line 509 ⟶ 514:
self:render_final_3(offset)
end
for
self.tbl:node(self.rows[row])
end
end
Line 552 ⟶ 557:
end
-- =================================================================
-- Funzione di interfaccia con i template
-- =================================================================
function p.teamBracket(frame)
|