Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (27 sloc) 0.925 kb
-# @expects: local 'list_title, scores'
- list_title ||= "Top Users"
- item_type ||= "activity"
- list_empty ||= t('empty.default')
%div{:class => "panel-1 #{defined?(widget_page) ? widget_page.css_class : ''}"}
.panel-bar
%h2= list_title
- unless scores.empty?
.item-list-wrap
.item-list
%ul
- scores.each do |score|
- user = score.user
- if item_type == 'activity'
- display_score = score.total_score
- elsif item_type == 'prediction'
- display_score = accuracy << "%"
%li
.item-users
.profile-pic= local_linked_profile_pic user
%h4.float-left== #{local_linked_profile_name(user)}
-#TODO:: add something in here
-#%h3= "City and State"
%h4.float-right= score.total_score
- else
.subtitle
%span= list_empty
Jump to Line
Something went wrong with that request. Please try again.