Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
feat(submission_table_colors): correcting size of the line
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizaMaluf committed Dec 9, 2023
1 parent f71a75d commit be0852a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/submissions/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ <h2>Submissions</h2>
</thead>
<tbody>
{% for submission in page_obj %}
<tr class ="{% if submission.status == 'AC' %}success{% elif submission.status == 'WA' or submission.status == 'MLE' or submission.status == 'TLE' or submission.status == 'RE' or submission.status == 'CE' %}wrong{% elif submission.status == 'WJ' %}wating{% endif %}">
<td>{{ submission.id }}</td>
<tr class="{% if submission.status == 'AC' %}success{%
elif submission.status in ['WA', 'MLE', 'TLE', 'RE', 'CE'] %}wrong{%
elif submission.status == 'WJ' %}waiting{% endif %}">
<td>{{ submission.id }}</td>
<td>
<a href="{% url 'users:profile' submission.author.username %}">
{{ submission.author.username }}
Expand Down

0 comments on commit be0852a

Please sign in to comment.