diff --git a/omeroweb/webclient/static/webclient/javascript/ome.right_panel_ratings_pane.js b/omeroweb/webclient/static/webclient/javascript/ome.right_panel_ratings_pane.js index 3302a77175..9635bef053 100644 --- a/omeroweb/webclient/static/webclient/javascript/ome.right_panel_ratings_pane.js +++ b/omeroweb/webclient/static/webclient/javascript/ome.right_panel_ratings_pane.js @@ -135,14 +135,6 @@ var RatingsPane = function RatingsPane($element, opts) { }); var average = Math.round(sum/anns.length); - var sum_inh = inh_anns.reduce(function(prev, ann){ - return prev + ann.longValue; - }, 0); - var myRatings_inh = inh_anns.filter(function(ann){ - return ann.owner.id == WEBCLIENT.USER.id; - }); - var average_inh = Math.round(sum_inh/inh_anns.length); - // Update html... var html = ratingsTempl({'anns': anns, 'canAnnotate': canAnnotate, @@ -150,14 +142,6 @@ var RatingsPane = function RatingsPane($element, opts) { 'count': anns.length, 'static': WEBCLIENT.URLS.static_webclient, 'isInherited': false}); - if (inh_anns.length > 0) { - html = html + ratingsTempl({'anns': inh_anns, - 'canAnnotate': false, - 'average': average_inh, - 'count': inh_anns.length, - 'static': WEBCLIENT.URLS.static_webclient, - 'isInherited': true}); - } $("#ratings_spinner").hide(); $rating_annotations.html(html); diff --git a/omeroweb/webclient/templates/webclient/annotations/ratings_underscore.html b/omeroweb/webclient/templates/webclient/annotations/ratings_underscore.html index 21f37a4aa9..f5743640f3 100644 --- a/omeroweb/webclient/templates/webclient/annotations/ratings_underscore.html +++ b/omeroweb/webclient/templates/webclient/annotations/ratings_underscore.html @@ -1,7 +1,3 @@ -<% if (isInherited) { %> -

Inherited ratings



-<% } %> - @@ -28,4 +24,4 @@ <%= average %> / <%= count %> votes) - \ No newline at end of file +