Laurent 1 year ago
commit f0ee7cef75
  1. 2
      tournaments/models/tournament.py
  2. 7
      tournaments/static/tournaments/css/style.css

@ -472,9 +472,9 @@ class Tournament(models.Model):
return True
if self.publish_tournament:
return True
if (len(self.groupstage_set.all()) > 0 or len(self.round_set.all()) > 0) and len(self.teamregistration_set.all()) >= 4:
if datetime.now().date() >= self.start_date.date():
return True
if (len(self.groupstage_set.all()) > 0 or len(self.round_set.all()) > 0) and len(self.teamregistration_set.all()) >= 4:
minimum_publish_date = self.creation_date.replace(hour=9, minute=0) + timedelta(days=1)
return timezone.now() >= minimum_publish_date
return False

@ -593,7 +593,7 @@ h-margin {
.table-row-4-colums-club-tournament {
display: grid;
grid-template-columns: 100px 60px 1fr auto;
grid-template-columns: 100px 100px 1fr auto;
align-items: center;
/* Vertically center the content within each column */
padding: 5px 0px;
@ -611,7 +611,7 @@ h-margin {
.table-row-3-colums-ranks {
display: grid;
grid-template-columns: 80px 1fr auto ;
grid-template-columns: 80px 1fr auto;
/* first column is a hack */
align-items: center;
/* Vertically center the content within each column */
@ -635,6 +635,7 @@ h-margin {
/* Vertically center the content within each column */
padding: 5px 0px;
}
@media print,
screen and (min-width: 80em) {
.table-row-4-colums {
@ -682,9 +683,11 @@ screen and (min-width: 80em) {
.table-row-4-colums-tournament {
grid-template-columns: auto 1fr auto auto;
}
.table-cell-responsive-large {
display: block;
}
.table-cell-responsive-short {
display: none;
}

Loading…
Cancel
Save