Skip to content

Commit

Permalink
[Fixes #8454] Rating average available only in English (#8455) (#8469)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3418d09)

Co-authored-by: NAGGINDA MARTHA <[email protected]>
  • Loading branch information
Alessio Fabiani and marthamareal authored Dec 6, 2021
1 parent 9c5a6e8 commit bcefdc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geonode/documents/templates/documents/document_detail.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends "documents/document_base.html" %}
{% load i18n %}
{% load l10n %}
{% load dialogos_tags %}
{% load pinax_ratings_tags %}
{% load bootstrap_tags %}
Expand Down Expand Up @@ -97,7 +98,7 @@ <h4>{% trans "Rate this document" %}</h4>
<h4>{% trans 'Average Rating' %}</h4>
{% overall_rating resource "document" as document_rating %}
{% num_ratings resource as num_votes %}
<div class="overall_rating" style="float:left" data-score="{{ document_rating }}"></div> ({{num_votes}})
<div class="overall_rating" style="float:left" data-score="{{ document_rating|unlocalize }}"></div> ({{num_votes}})
<!-- TODO: Add display of who gave what rating based -->
</article>
{% endif %}
Expand Down

0 comments on commit bcefdc4

Please sign in to comment.