minor fix - hide irrelevant data
authorJan Szejko <janek37@gmail.com>
Fri, 23 Feb 2018 17:01:44 +0000 (18:01 +0100)
committerJan Szejko <janek37@gmail.com>
Fri, 23 Feb 2018 17:01:44 +0000 (18:01 +0100)
stage2/templates/stage2/answer_list.html

index d8f3dce..0f0f79e 100644 (file)
@@ -14,7 +14,7 @@
     {% endif %}
   {% endif %}
   <p>{% if not marked and not assignment.is_active %}PozostaƂo {% endif %}{{ answers|length }} odpowiedzi</p>
-  {% if field_counts %}
+  {% if field_counts and assignment.is_active %}
     <ul>
       {% for field_name, count in field_counts %}
         <li>{{ field_name }}: {{ count }} odpowiedzi</li>