Fix message on assignment slide, ticket #389
This commit is contained in:
parent
d6ebbdc541
commit
0ec106a034
@ -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'] = \
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user