-if @characters.count == 0
  %span Couldn't find any characters for this ranking.
- else
  %h2.title= params[:other].split("_").map(&:capitalize).join(" ")

  %table
    %thead
      %tr
        %th Character
        %th= params[:other].split("_").map(&:capitalize).join(" ")
    %tbody
      - @characters.to_a.each do |character|
        %tr
          %td
            %a{:href => "/#{character['server']}/#{character['name']}"}= "#{character['name']} (#{character['server']})"
          %td
            - if(params[:other] == "birth" && character[params[:other]] == "???")
              = Time.at(character[params[:other]])
            - else
              = character[params[:other]]
-if @characters.count == 0
  %span Couldn't find any characters for this ranking.
- else
  %h2.title= params[:other].split("_").map(&:capitalize).join(" ")

  %table
    %thead
      %tr
        %th Character
        %th= params[:other].split("_").map(&:capitalize).join(" ")
    %tbody
      - @characters.to_a.each do |character|
        %tr
          %td
            %a{:href => "/#{character['server']}/#{character['name']}"}= "#{character['name']} (#{character['server']})"
          %td
            - if(params[:other] == "birth" && character[params[:other]] == "???")
              = Time.at(character[params[:other]])
            - elsif(params["other"] == "unassigned_xp")
              = add_commas(character[params[:other]].to_i.to_s)
            - else
              = character[params[:other]]
Handle adding commas to unassigned xp
Handle adding commas to unassigned xp
