Fix message on assignment slide, ticket #389

This commit is contained in:
Norman Jäckel 2012-10-25 22:18:20 +02:00
parent d6ebbdc541
commit 0ec106a034
2 changed files with 3 additions and 0 deletions

View File

@ -230,6 +230,7 @@ class Assignment(models.Model, SlideMixin):
data = super(Assignment, self).slide()
data['assignment'] = self
data['title'] = self.name
data['polls_available'] = self.poll_set.exists()
data['polls'] = self.poll_set.filter(published=True)
data['vote_results'] = self.vote_results(only_published=True)
data['assignment_publish_winner_results_only'] = \

View File

@ -122,6 +122,8 @@
</tr>
</table>
{% elif polls_available %}
<i>{% trans "Vote results are not published yet." %}</i>
{% elif assignment.candidates %}
<i>{% trans "No ballots available." %}</i>
{% endif %}