Skip to content

Commit

Permalink
Don't show the quiz prompt box unless there's content.
Browse files Browse the repository at this point in the history
  • Loading branch information
hellojwilde committed Sep 16, 2012
1 parent cce09f2 commit 2ba5da8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/quiz_attempt.html
Expand Up @@ -33,9 +33,11 @@ <h3>{{ question.prompt }}</h3>
<div class="span5">
<h1>{{ attempt.percentage }}%</h1>

{% if quiz_snapshot.prompt %}
<div class="alert-message block-message info">
{{ quiz_snapshot.prompt }}
</div>
{% endif %}
</div>
</div>
{% endblock %}
2 changes: 2 additions & 0 deletions templates/quiz_take.html
Expand Up @@ -32,9 +32,11 @@ <h3>{{ question.prompt }}</h3>
</div>

<div class="span5">
{% if quiz.prompt %}
<div class="alert-message block-message info">
{{ quiz.prompt }}
</div>
{% endif %}
</div>
</div>
{% endblock %}

0 comments on commit 2ba5da8

Please sign in to comment.