- load memopol_tags
- load representatives_tags
- load representatives_recommendations_tags
- load humanize

.representative

  %h1.name<
    ={representative.full_name}

  .row
    .col-md-4
      %p.photo<
        %img{:src => "{{ representative.photo }}"}/

    .col-md-8
      %table.table.table-condensed.detail-view
        %tr.score
          %th Score
          %td
            = representative.score.score|score_label
        %tr
          %th Chamber
          %td<
            %a{'href': "{% url 'representatives:representative-list' group_kind='chamber' group=representative.chamber.name %}"}
              = representative.chamber|chamber_icon
        %tr
          %th Country
          %td<
            %a{:href => "{{ representative.country.get_absolute_url }}"}
              = representative.country|country_flag
        %tr
          %th Party
          %td<
            %a{:href => "{{ representative.main_mandate.group.get_absolute_url }}"}
              = representative.main_mandate|mandate_icon
        %tr
          %th Biography
          %td<
            Born in {{ representative.birth_place }} the
            {{ representative.birth_date|naturalday:'d/m/Y' }}
            ({{ representative.get_gender_display }})

        - if representative.social_websites|length > 0
          %tr
            %th Social
            %td
              - for site in representative.social_websites
                - if site.kind == 'twitter'
                  = site.url|twitter_link
                - elif site.kind == 'facebook'
                  = site.url|facebook_link