diff --git a/tournaments/models/enums.py b/tournaments/models/enums.py index c92c2c1..88f9284 100644 --- a/tournaments/models/enums.py +++ b/tournaments/models/enums.py @@ -48,6 +48,7 @@ class FederalLevelCategory(models.IntegerChoices): P1000 = 1000, 'P1000' P1500 = 1500, 'P1500' P2000 = 2000, 'P2000' + CHPT = 1, 'Championnat' @staticmethod def min_player_rank(level=None, category=None, age_category=None) -> int: diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index 13d4679..3f6d2cb 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -180,6 +180,8 @@ class Tournament(BaseModel): def level(self): if self.federal_level_category == 0: return "Anim." + if self.federal_level_category == 1: + return "CHPT" return self.get_federal_level_category_display() def category(self): diff --git a/tournaments/static/tournaments/css/style.css b/tournaments/static/tournaments/css/style.css index 559a059..16404ef 100644 --- a/tournaments/static/tournaments/css/style.css +++ b/tournaments/static/tournaments/css/style.css @@ -766,6 +766,12 @@ h-margin { /* Keep any existing styling for .large */ } +.small.event-name { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + .table-row-element.tournament-status { grid-column: 4; } diff --git a/tournaments/templates/tournaments/tournament_info.html b/tournaments/templates/tournaments/tournament_info.html index d3a112b..06839f7 100644 --- a/tournaments/templates/tournaments/tournament_info.html +++ b/tournaments/templates/tournaments/tournament_info.html @@ -70,6 +70,11 @@ {% endif %}