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 colors of the table
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizaMaluf committed Dec 7, 2023
1 parent 27cac4b commit f71a75d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions templates/submissions/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,13 @@
background-color: #f2f2f2;
}
.success {
background-color: #dff0d8;
background-color: #47fc00b7;
}
.wating {
background-color: #2f00ff;
background-color: #ff88008c;
}
.wrong {
background-color: #ff0000;
}
.time {
background-color: #ff0000;
}
.memory{
background-color: #ff0000;
background-color: #ff00006b;
}
</style>
{% endblock head %}
Expand All @@ -56,7 +50,7 @@ <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' %}wrong{% elif submission.status == 'WJ' %}wating{% endif %}">
<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>
<td>
<a href="{% url 'users:profile' submission.author.username %}">
Expand Down

0 comments on commit f71a75d

Please sign in to comment.