1
0
Fork 1
impress/app/views/users/top_contributors.html.haml

15 lines
441 B
Text

- title t('.title')
= will_paginate @users
%table#top-contributors
%thead
%tr
%th{:scope => 'column'}= t('.rank')
%th{:scope => 'column'}= t('.user')
%th{:scope => 'column'}= t('.points')
%tbody
- @users.each_with_index do |user, rank|
%tr
%th{:scope => 'row'}= @users.offset + rank + 1
%td= link_to user.name, user_contributions_path(user)
%td= user.points
= will_paginate @users