impress/app/views/users/top_contributors.html.haml

25 lines
706 B
Text
Raw Normal View History

2012-12-29 23:57:23 -08:00
- title t('.title')
%ul.timeframe-nav
- ['all_time', 'this_year', 'this_month', 'this_week'].each do |tf|
%li
- if @timeframe == tf
%strong= t(".timeframes.#{tf}")
- else
= link_to t(".timeframes.#{tf}"), top_contributors_path(timeframe: tf)
2010-11-06 09:15:10 -07:00
= will_paginate @users
%table#top-contributors
%thead
%tr
2012-12-29 22:59:40 -08:00
%th{:scope => 'column'}= t('.rank')
%th{:scope => 'column'}= t('.user')
%th{:scope => 'column'}= t('.points')
2010-11-06 09:15:10 -07:00
%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.period_points
2010-11-06 09:15:10 -07:00
= will_paginate @users