Tournament panel - Showing the number of rounds now only if tournament is swiss style tournament.

This commit is contained in:
LevelX2 2014-05-02 09:32:51 +02:00
parent 473c9e207b
commit 13ac2d0103
2 changed files with 5 additions and 8 deletions

View file

@ -63,7 +63,11 @@ public class TournamentView implements Serializable {
tournamentName = tournament.getOptions().getName();
tournamentType = new StringBuilder(tournament.getOptions().getTournamentType()).append(" ").append(tournament.getNumberRounds()).append(" rounds").toString();
if (tournament.getNumberRounds() > 0) {
tournamentType = tournament.getOptions().getTournamentType() + " " + tournament.getNumberRounds()+ " rounds";
} else {
tournamentType = tournament.getOptions().getTournamentType();
}
startTime = tournament.getStartTime();
endTime = tournament.getEndTime();
stepStartTime = tournament.getStepStartTime();