Skip to content

Instantly share code, notes, and snippets.

@c3mediagroup
Created June 23, 2009 18:23
Show Gist options
  • Save c3mediagroup/134732 to your computer and use it in GitHub Desktop.
Save c3mediagroup/134732 to your computer and use it in GitHub Desktop.
#left
-if current_account.dashboard_news.present?
.information{:style => "height:auto"}
.title Current News
.content= current_account.dashboard_news
%br.clear
#top_producers.section
.title<
%h3<
= "Top Producers for #{@year_num}"
.section_inner{:style => "margin: 9px 24px 6px 18px;float: left"}
%h3 Total Premium YTD
%table.bordered
%tr
%th
%th Advisor
%th= "#{@year_num} YTD Premimum"
- @top_producers_premium.each_with_index do |advisor, idx|
%tr
%td= idx+1
%td= link_to advisor.display_name, advisor_path(advisor.id)
%td.right= number_to_currency(advisor.total, :precision => 0)
.section_inner{:style => "margin: 9px 6px 6px 18px"}
%h3 Total Club Credits YTD
%table
%tr{:style=>'border-bottom:3px solid #666'}
%th
%th Advisor
%th= "#{@year_num} YTD Club Credits"
- User.advisors.top_performers(@year_num).each_with_index do |advisor, idx|
%tr{:class => cycle("odd", "")}
%td= idx+1
%td= link_to advisor.display_name, advisor_path(advisor.id)
%td.right= number_to_currency(advisor.overall_performance(@year_num), :precision => 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment