Commit 044c051c4bdc2b05286ebfebda73ff5d21f38091
1 parent
65e1860f
Exists in
master
and in
1 other branch
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 | 20 | |
21 | 21 | <% unless @target.score_points.empty? %> |
22 | 22 | <div class="scores"> |
23 | - <h3><%= _('Last Score Points') %></h3> | |
23 | + <h3><%= _('Latest Score Points') %></h3> | |
24 | 24 | <% @target.score_points.order('created_at desc').limit(5).each do |point| %> |
25 | 25 | <div class="score <%= point.score.category %> <%= score_point_class(point) %>"> |
26 | 26 | <span class="value"><%= point.num_points %></span> |
... | ... | @@ -56,7 +56,8 @@ $('.gamification .badge-list').slick({ |
56 | 56 | infinite: false, |
57 | 57 | speed: 300, |
58 | 58 | slidesToShow: 3, |
59 | - slidesToScroll: 1, | |
59 | + slidesToScroll: 2, | |
60 | + rows: 2, | |
60 | 61 | }); |
61 | 62 | $(".gamification-dashboard .timeago").timeago(); |
62 | 63 | </script> | ... | ... |