Skip to content

Commit

Permalink
Fix contest page syling
Browse files Browse the repository at this point in the history
  • Loading branch information
UserBlackBox committed Dec 9, 2021
1 parent 4561e8c commit 4fe66f2
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions templates/contest/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,23 +296,27 @@ <h4>{{ _('Ongoing Contests') }}</h4>

<h4>{{ _('Upcoming Contests') }}</h4>
{% if future_contests %}
<table class="contest-list table striped">
<thead>
<tr>
<th>{{ _('Contest') }}</th>
</tr>
</thead>
<tbody>
{% for contest in future_contests %}
<tr>
<td>
<div class="contest-block">
{{ contest_head(contest) }}
<br>
{% if contest.time_before_start %}
<span class="time">{{ _('Starting in %(countdown)s.', countdown=contest.time_before_start|as_countdown) }}</span>
{% if contest.start_time %}
<br>
{% if contest.time_before_start %}
<span class="time">{{ _('Starting in %(countdown)s.', countdown=contest.time_before_start|as_countdown) }}</span>
{% endif %}
{{ time_left(contest) }}
{% endif %}
{{ time_left(contest) }}
</div>
</td>
{% if not request.in_contest %}
<td>
{{ contest_register(contest, request.user) }}
</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit 4fe66f2

Please sign in to comment.