Skip to content

Commit

Permalink
Merge pull request #863 from typonaut/patch-5
Browse files Browse the repository at this point in the history
Update kb_item.html, Standardises output between KB listing and KB item, captures problem where there may be no votes cast.
  • Loading branch information
gwasser committed Aug 19, 2020
2 parents 41b9f38 + ff171e3 commit c5d27e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion helpdesk/templates/helpdesk/kb_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ <h4>{{ item.question }}</h4>
<ul>
<li>{% blocktrans with item.recommendations as recommendations %}Recommendations: {{ recommendations }}{% endblocktrans %}</li>
<li>{% blocktrans with item.votes as votes %}Votes: {{ votes }}{% endblocktrans %}</li>
<li>{% blocktrans with item.score|floatformat as score %}Overall Rating: {{ score }}{% endblocktrans %}/10</li>
<li>{% trans 'Rating' %}:
{% if item.votes > 0 %}
{{ item.score|floatformat }}/10
{% else %}
{% trans 'no score yet' %}
{% endif %}</li>
</ul>
</div>
</div>
Expand Down

0 comments on commit c5d27e8

Please sign in to comment.