Skip to content

Commit

Permalink
Always show star icon on published submissions (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrysjain authored Oct 8, 2024
1 parent d021136 commit 6a43c84
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tin/templates/submissions/repr.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
{% else %}
<b>{{ submission.points | floatformat:"-3" }}</b> / {{ submission.points_possible | floatformat:"-3" }} ({{ submission.grade_percent_num | floatformat:"-2" }}%)
{% if submission.is_published %}
{% if submission.comments.count <= 0 or request.user.is_teacher or request.user.is_superuser %}
{% if submission.is_latest_publish %}
<i class="fa fa-star" style="color: red" data-toggle="tooltip" title="Published {{ submission.published_submission.date }}"></i>
{% else %}
<i class="fa fa-star-o" style="color: red" data-toggle="tooltip" title="Published {{ submission.published_submission.date }}"></i>
{% endif %}
{% if submission.is_latest_publish %}
<i class="fa fa-star" style="color: red" data-toggle="tooltip" title="Published {{ submission.published_submission.date }}"></i>
{% else %}
<i class="fa fa-star-o" style="color: red" data-toggle="tooltip" title="Published {{ submission.published_submission.date }}"></i>
{% endif %}
{% endif %}
{% if submission.last_run %}
Expand Down

0 comments on commit 6a43c84

Please sign in to comment.