Skip to content

Commit

Permalink
Improve student list UI for assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnans2006 committed Jan 10, 2025
1 parent eee3a37 commit 797ae74
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tin/templates/assignments/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h2 style="border-top:1px solid lightgray;padding-top:15px;">Filter Submissions<
{% if assignment.is_quiz %}
<table id="submission-list" class="has-border">
<tr>
<th style="min-width:20px"></th>
<th style="min-width:20px; text-align: center;">#</th>
<th style="min-width:125px">Student</th>
{% if not active_period.name %}
<th style="min-width:65px;">Period</th>
Expand All @@ -142,7 +142,7 @@ <h2 style="border-top:1px solid lightgray;padding-top:15px;">Filter Submissions<
</tr>
{% for student, period, latest_submission, graded_submission, ended, quiz_issues in students_and_submissions %}
<tr>
<td style="text-align: center">{{ forloop.counter }}</td>
<td style="text-align: center;">{{ forloop.counter }}</td>
<td><a href="{% url 'assignments:student_submission' assignment.id student.id %}">{{ student.full_name }}
({{ student.username }})</a></td>
{% if not active_period.name %}
Expand All @@ -164,14 +164,14 @@ <h2 style="border-top:1px solid lightgray;padding-top:15px;">Filter Submissions<

{% if not students_and_submissions %}
<tr>
<td colspan="{% if not active_period.name %}7{% else %}6{% endif %}" class="italic center">No students in class</td>
<td colspan="{% if not active_period.name %}8{% else %}7{% endif %}" class="italic center">No matching students in class</td>
</tr>
{% endif %}
</table>
{% else %}
<table id="submission-list" class="has-border">
<tr>
<th style="min-width:20px"></th>
<th style="min-width:20px; text-align:center;">#</th>
<th style="min-width:125px">Student</th>
{% if not active_period.name %}
<th style="min-width:65px;">Period</th>
Expand All @@ -185,7 +185,7 @@ <h2 style="border-top:1px solid lightgray;padding-top:15px;">Filter Submissions<
</tr>
{% for student, period, latest_submission, graded_submission, new_login, new_24 in students_and_submissions %}
<tr>
<td style="text-align:center">{{ forloop.counter }}</td>
<td style="text-align:center;">{{ forloop.counter }}</td>
<td><a href="{% url 'assignments:student_submission' assignment.id student.id %}">{{ student.full_name }}
({{ student.username }})</a></td>
{% if not active_period.name %}
Expand Down Expand Up @@ -213,7 +213,7 @@ <h2 style="border-top:1px solid lightgray;padding-top:15px;">Filter Submissions<

{% if not students_and_submissions %}
<tr>
<td colspan="{% if not active_period.name %}8{% else %}7{% endif %}" class="italic center">No students in class</td>
<td colspan="{% if not active_period.name %}9{% else %}8{% endif %}" class="italic center">No matching students in class</td>
</tr>
{% endif %}
</table>
Expand Down

0 comments on commit 797ae74

Please sign in to comment.