Skip to content

Commit

Permalink
- [Fixes #8454] Rating average available only in English (#8716)
Browse files Browse the repository at this point in the history
  • Loading branch information
marthamareal authored Feb 3, 2022
1 parent 2a29a25 commit 9dcbe66
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion geonode/geoapps/templates/apps/app_detail.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends "apps/app_base.html" %}
{% load i18n %}
{% load l10n %}
{% load staticfiles %}
{% load dialogos_tags %}
{% load pinax_ratings_tags %}
Expand Down Expand Up @@ -75,7 +76,7 @@ <h3>{% trans "Rate this" %} {{ resource.type }}</h3>
<h3>{% trans 'Average Rating' %}</h3>
{% overall_rating resource "geoapp" as geoapp_rating %}
{% num_ratings resource as num_votes %}
<div class="overall_rating" style="float:left" data-score="{{ geoapp_rating }}"></div> ({{num_votes}})
<div class="overall_rating" style="float:left" data-score="{{ geoapp_rating|unlocalize }}"></div> ({{num_votes}})
</article>
{% endif %}

Expand Down
3 changes: 2 additions & 1 deletion geonode/layers/templates/layers/layer_detail.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends "layers/layer_base.html" %}
{% load i18n %}
{% load l10n %}
{% load staticfiles %}
{% load dialogos_tags %}
{% load pinax_ratings_tags %}
Expand Down Expand Up @@ -247,7 +248,7 @@ <h4>{% trans "Rate this layer" %}</h4>
<h4>{% trans 'Average Rating' %}</h4>
{% overall_rating resource "layer" as layer_rating %}
{% num_ratings resource as num_votes %}
<div class="overall_rating" data-score="{{ layer_rating }}"></div> ({{num_votes}})
<div class="overall_rating" data-score="{{ layer_rating|unlocalize }}"></div> ({{num_votes}})
</article>
{% endif %}

Expand Down
3 changes: 2 additions & 1 deletion geonode/maps/templates/maps/map_detail.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends "maps/map_base.html" %}
{% load i18n %}
{% load l10n %}
{% load staticfiles %}
{% load dialogos_tags %}
{% load pinax_ratings_tags %}
Expand Down Expand Up @@ -90,7 +91,7 @@ <h3>{% trans "Rate this Map" %}</h3>
<h3>{% trans 'Average Rating' %}</h3>
{% overall_rating resource "map" as map_rating %}
{% num_ratings resource as num_votes %}
<div class="overall_rating" style="float:left" data-score="{{ map_rating }}"></div> ({{num_votes}})
<div class="overall_rating" style="float:left" data-score="{{ map_rating|unlocalize }}"></div> ({{num_votes}})
</article>
{% endif %}

Expand Down

0 comments on commit 9dcbe66

Please sign in to comment.