bracket-feature
laurent 1 year ago
commit a810b15f9d
  1. 5
      tournaments/models/group_stage.py
  2. 13
      tournaments/static/tournaments/css/style.css
  3. 2
      tournaments/templates/tournaments/group_stage_cell.html
  4. 5
      tournaments/templates/tournaments/team_row.html

@ -162,6 +162,11 @@ class LiveGroupStage:
"duration": self.formatted_duration()
}
def started(self):
if self.start is None:
return False
return self.start < timezone.now()
class GroupStageTeam:
def __init__(self, team_registration):
self.names = team_registration.shortened_team_names()

@ -28,6 +28,12 @@ body {
margin: 0px 0px 100px 0px;
}
@media screen and (max-width: 40em) {
body {
font-size: 0.8em;
}
}
label {
color: #707070;
font-size: 1.1em;
@ -196,7 +202,12 @@ tr {
.large {
font-family: "Montserrat-SemiBold";
font-size: 1.2em;
/* color: #707070; */
}
@media screen and (max-width: 40em) {
.large {
font-size: 0.9em;
}
}
.semibold {

@ -21,7 +21,7 @@
{% endfor %}
</div>
<div class="flex-right">
{% if group_stage.start %}
{% if group_stage.started %}
<div class="center">
<div class="score ws numbers">{{ team.wins_losses }}</div>
<div class="ws numbers">{{ team.formatted_diff }}</div>

@ -5,7 +5,8 @@
<div class="table-cell table-cell-large semibold">WC Tableau</div>
{% elif team.wildcard_groupstage %}
<div class="table-cell table-cell-large semibold">WC Qualifications</div>
{% else %}
{% endif %}
{% if team.names %}
<div class="table-cell table-cell-large semibold">
{% for name in team.names %}
<div>{{ name }}</div>
@ -18,6 +19,8 @@
<div class="table-cell right horizontal-padding"></div>
{% elif not team.wildcard_bracket and not team.wildcard_groupstage %}
<div class="table-cell right horizontal-padding large numbers">{{ team.weight }}</div>
{% elif team.names %}
<div class="table-cell right horizontal-padding large numbers">{{ team.weight }}</div>
{% else %}
<div class="table-cell right horizontal-padding large numbers"></div>
{% endif %}

Loading…
Cancel
Save