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

[feature request] Colocar cores na tabela de submissão de acordo como o status #110

Merged
merged 5 commits into from
Dec 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 29 additions & 5 deletions templates/submissions/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,39 @@

{% block head %}
<style>
.center-table {
display: flex;
justify-content: center;
}
table {
border-collapse: collapse;
width: 100%;
margin: 20px 0;
}

th, td {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
text-align: center;
}

th {
background-color: #f2f2f2;
}

.center-table {
display: flex;
justify-content: center;
}

.success {
background-color: #47fc00b7;
}

.waiting {
background-color: #ff88008c;
}

.wrong {
background-color: #ff00006b;
}
</style>
{% endblock head %}

Expand All @@ -41,7 +56,16 @@ <h2>Submissions</h2>
</thead>
<tbody>
{% for submission in page_obj %}
<tr>
<tr
class="
{% if submission.status == 'AC' %}
success
{% elif submission.status == 'WJ' %}
waiting
{% else %}
wrong
{% endif %}
">
<td>{{ submission.id }}</td>
<td>
<a href="{% url 'users:profile' submission.author.username %}">
Expand Down