Skip to content

Commit

Permalink
Only show Top 5 players
Browse files Browse the repository at this point in the history
There is a lot less low-hanging fruit these days, and fewer players, so
only show the top 5 rather than top 10.
  • Loading branch information
tmtmtmtm committed Aug 24, 2017
1 parent 7355738 commit 27d35db
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions views/leaderboard.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,4 @@
<li><%= leader[:name].split(/[[:space:]]+/).first %> <span class="leaderboard-score"><%= leader[:count] %></span></li>
<% end %>
</ul>
<ul class="home-primary__leaderboard__next-5">
<% @leaders.drop(5).take(5).each do |leader| %>
<li><%= leader[:name].split(/[[:space:]]+/).first %> <span class="leaderboard-score"><%= leader[:count] %></span></li>
<% end %>
</ul>
</div>

0 comments on commit 27d35db

Please sign in to comment.