Skip to content

Commit

Permalink
[Fixes GeoNode#8690] merge with 3.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi committed Feb 3, 2022
2 parents b089bf2 + b24c8e8 commit 14abc5b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions geonode/base/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,8 @@ class Meta:
'users_geolimits',
'groups_geolimits',
'dirty_state'
'was_approved',
'was_published'
)


Expand Down
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 @@ -249,7 +250,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 @@ -80,7 +81,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 14abc5b

Please sign in to comment.