|
|
|
|
@ -91,12 +91,38 @@ struct TournamentBuildView: View { |
|
|
|
|
Section { |
|
|
|
|
#if DEBUG |
|
|
|
|
NavigationLink(value: Screen.rankings) { |
|
|
|
|
Text("Classement final des équipes") |
|
|
|
|
LabeledContent { |
|
|
|
|
if tournament.publishRankings == false { |
|
|
|
|
Image(systemName: "exclamationmark.circle.fill") |
|
|
|
|
.foregroundStyle(.logoYellow) |
|
|
|
|
} else { |
|
|
|
|
Image(systemName: "checkmark") |
|
|
|
|
.foregroundStyle(.green) |
|
|
|
|
} |
|
|
|
|
} label: { |
|
|
|
|
Text("Classement final des équipes") |
|
|
|
|
if tournament.publishRankings == false { |
|
|
|
|
Text("Vérifiez le classement avant de publier").foregroundStyle(.red) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#else |
|
|
|
|
if tournament.hasEnded() { |
|
|
|
|
NavigationLink(value: Screen.rankings) { |
|
|
|
|
Text("Classement final des équipes") |
|
|
|
|
LabeledContent { |
|
|
|
|
if tournament.publishRankings == false { |
|
|
|
|
Image(systemName: "exclamationmark.circle.fill") |
|
|
|
|
.foregroundStyle(.logoYellow) |
|
|
|
|
} else { |
|
|
|
|
Image(systemName: "checkmark") |
|
|
|
|
.foregroundStyle(.green) |
|
|
|
|
} |
|
|
|
|
} label: { |
|
|
|
|
Text("Classement final des équipes") |
|
|
|
|
if tournament.publishRankings == false { |
|
|
|
|
Text("Vérifiez le classement avant de publier").foregroundStyle(.red) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|