.row
  .span4
    %a{:href => hero.html_url, :title => hero.name}
      = image_tag(hero.avatar_url, :alt => hero.login, :class => 'hero-shot')
  .span12
    %h1= hero.login
    .language.rank-block
      %span.descriptor= link_to(hero.location, "https://github.com/search?type=Users&language=&q=location%3A#{hero.location.gsub(/\s/, '%2B')}&repo=&langOverride=&x=0&y=0&start_value=1", :target => '_blank')

.row
  .span16.bio
    - if hero.bio.present? && hero.bio.to_s != 'null'
      %p= hero.bio.html_safe
    %p= hero.auto_bio.html_safe

.row
  .span16.vote
    - unless current_hero.present?
      %a{:href => '/heroes/auth/github', :class => 'btn success large primary popup', 'data-height' => '400', 'data-width' => '600'}
        Login with GitHub to Vote!
    - else
      = render :partial => 'vote_buttons', :locals => { :hero => @hero }
.row
  .span4
    %a{:href => hero.html_url, :title => hero.name}
      = image_tag(hero.avatar_url, :alt => hero.login, :class => 'hero-shot')
  .span12
    %h1= hero.login
    .language.rank-block
      - if hero.location.present?
        %span.descriptor= link_to(hero.location, "https://github.com/search?type=Users&language=&q=location%3A#{hero.location.gsub(/\s/, '%2B')}&repo=&langOverride=&x=0&y=0&start_value=1", :target => '_blank')

.row
  .span16.bio
    - if hero.bio.present? && hero.bio.to_s != 'null'
      %p= hero.bio.html_safe
    %p= hero.auto_bio.html_safe

.row
  .span16.vote
    - unless current_hero.present?
      %a{:href => '/heroes/auth/github', :class => 'btn success large primary popup', 'data-height' => '400', 'data-width' => '600'}
        Login with GitHub to Vote!
    - else
      = render :partial => 'vote_buttons', :locals => { :hero => @hero }
Check if location is present
Check if location is present