bracket-feature
laurent 1 year ago
commit a810b15f9d
  1. 5
      tournaments/models/group_stage.py
  2. 13
      tournaments/static/tournaments/css/style.css
  3. 12
      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() "duration": self.formatted_duration()
} }
def started(self):
if self.start is None:
return False
return self.start < timezone.now()
class GroupStageTeam: class GroupStageTeam:
def __init__(self, team_registration): def __init__(self, team_registration):
self.names = team_registration.shortened_team_names() self.names = team_registration.shortened_team_names()

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

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

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

Loading…
Cancel
Save