From 9e7564661079ae7194f869b5fd85bdf7182796f3 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 22 Feb 2016 14:04:05 -0300 Subject: [PATCH] Do not show points with zero value --- views/gamification/dashboard.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/gamification/dashboard.html.erb b/views/gamification/dashboard.html.erb index 29c575c..cdc52ec 100644 --- a/views/gamification/dashboard.html.erb +++ b/views/gamification/dashboard.html.erb @@ -21,7 +21,7 @@ <% unless @target.score_points.empty? %>

<%= _('Latest Score Points') %>

- <% @target.score_points.order('created_at desc').limit(5).each do |point| %> + <% @target.score_points.order('created_at desc').where('num_points != 0').limit(5).each do |point| %>
<%= point.num_points %> <%= score_point_target_link point, _(score_point_category(point)) %> -- libgit2 0.21.2