leaderboard.html.slim
380 Bytes
.middle.content
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 'Back', root_path