Commit 044c051c4bdc2b05286ebfebda73ff5d21f38091

Authored by Victor Costa
1 parent 65e1860f

Improve dashboard

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
views/gamification/dashboard.html.erb
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 20
21 <% unless @target.score_points.empty? %> 21 <% unless @target.score_points.empty? %>
22 <div class="scores"> 22 <div class="scores">
23 - <h3><%= _('Last Score Points') %></h3> 23 + <h3><%= _('Latest Score Points') %></h3>
24 <% @target.score_points.order('created_at desc').limit(5).each do |point| %> 24 <% @target.score_points.order('created_at desc').limit(5).each do |point| %>
25 <div class="score <%= point.score.category %> <%= score_point_class(point) %>"> 25 <div class="score <%= point.score.category %> <%= score_point_class(point) %>">
26 <span class="value"><%= point.num_points %></span> 26 <span class="value"><%= point.num_points %></span>
@@ -56,7 +56,8 @@ $(&#39;.gamification .badge-list&#39;).slick({ @@ -56,7 +56,8 @@ $(&#39;.gamification .badge-list&#39;).slick({
56 infinite: false, 56 infinite: false,
57 speed: 300, 57 speed: 300,
58 slidesToShow: 3, 58 slidesToShow: 3,
59 - slidesToScroll: 1, 59 + slidesToScroll: 2,
  60 + rows: 2,
60 }); 61 });
61 $(".gamification-dashboard .timeago").timeago(); 62 $(".gamification-dashboard .timeago").timeago();
62 </script> 63 </script>