_leaderboard.html.slim
353 Bytes
h1 Leaderboard
table.leaderboard
tbody
- @leaders.each.with_index do |(user_name, points), i|
tr
td style='width: 50px' = 1 + i
td = user_name
td = points
- if @leaders.empty?
tr
td colspan=2 There are no results yet
.text-left style='margin-top: 10px;'
= link_to 'See everyone', leaderboard_path