Skip to content

Commit

Permalink
Fix error page on empty evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
McSinyx authored and Huy-Ngo committed Mar 17, 2021
1 parent eb74679 commit d7878dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/acanban/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

__all__ = ['app']
__doc__ = 'Academic Kanban'
__version__ = '0.1.2.post0'
__version__ = '0.1.3'

# Nope, the negative operator is not a typo, see also tzset(3posix).
TZ = tz(timedelta(seconds=-timezone))
Expand Down
4 changes: 2 additions & 2 deletions src/acanban/templates/project-report.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
<h2>Report evaluation</h2>
{% if report.revisions %}
{% if for_student %}
<div>Grade: {{ report.grade }}</div>
<p><b>Grade:</b> {{ report.grade if report.grade else 'TBD' }}</p>
<div>
{{ report.comment | markdown | safe }}
{{ report.comment | markdown | safe if report.comment }}
</div>
{% else %}
<form action=/p/{{ project.id }}/report/eval method=POST>
Expand Down
4 changes: 2 additions & 2 deletions src/acanban/templates/project-slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
<h2>Presentation evaluation</h2>
{% if slides.revisions %}
{% if for_student %}
<div>Grade: {{ report.grade }}</div>
<p><b>Grade:</b> {{ slides.grade if slides.grade else 'TBD' }}</p>
<div>
{{ slides.comment | markdown | safe }}
{{ slides.comment | markdown | safe if slides.comment }}
</div>
{% else %}
<form action=/p/{{ project.id }}/slides/eval method=POST>
Expand Down

0 comments on commit d7878dd

Please sign in to comment.