Adds day to summon date

clubs
Laurent 1 year ago
parent 0d4014de23
commit 5cc6bb74ed
  1. 2
      tournaments/models/tournament.py
  2. 4
      tournaments/static/tournaments/css/style.css
  3. 2
      tournaments/templates/tournaments/summon_row.html
  4. 2
      tournaments/templates/tournaments/team_row.html

@ -603,7 +603,7 @@ class TeamSummon:
def formatted_date(self): def formatted_date(self):
if self.date: if self.date:
timezoned_datetime = timezone.localtime(self.date) timezoned_datetime = timezone.localtime(self.date)
return formats.date_format(timezoned_datetime, format='H:i') return formats.date_format(timezoned_datetime, format='l H:i')
else: else:
return None return None

@ -629,7 +629,7 @@ h-margin {
.table-row-3-colums-summons { .table-row-3-colums-summons {
display: grid; display: grid;
grid-template-columns: 1px auto 70px 70px; grid-template-columns: 1px auto 150px 70px;
/* first column is a hack */ /* first column is a hack */
align-items: center; align-items: center;
/* Vertically center the content within each column */ /* Vertically center the content within each column */
@ -640,7 +640,7 @@ h-margin {
screen and (min-width: 80em) { screen and (min-width: 80em) {
.table-row-4-colums { .table-row-4-colums {
display: grid; display: grid;
grid-template-columns: 1px auto 50px 70px 180px; grid-template-columns: 1px auto 50px 150px 180px;
/* first column is a hack */ /* first column is a hack */
align-items: center; align-items: center;
/* Vertically center the content within each column */ /* Vertically center the content within each column */

@ -8,6 +8,6 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="table-cell large center">{{ summon.date|date:'H:i' }}</div> <div class="table-cell large center">{{ summon.date|date:'l H:i' }}</div>
<div class="table-cell"><div class="mybox center">{{ summon.stage }}</div></div> <div class="table-cell"><div class="mybox center">{{ summon.stage }}</div></div>
</div> </div>

@ -12,7 +12,7 @@
{% elif tournament.hide_weight %} {% elif tournament.hide_weight %}
<div class="table-cell right horizontal-padding"></div> <div class="table-cell right horizontal-padding"></div>
{% else %} {% else %}
<div class="table-cell right horizontal-padding">{{ team.weight }}</div> <div class="table-cell right horizontal-padding large">{{ team.weight }}</div>
{% endif %} {% endif %}
<div class="table-cell "><div class="mybox center">{{ team.stage }}</div></div> <div class="table-cell "><div class="mybox center">{{ team.stage }}</div></div>
</div> </div>

Loading…
Cancel
Save