representative_block.haml 867 Bytes
Newer Older
Arnaud Fabre's avatar
Arnaud Fabre committed
1
- load representatives_extras
Arnaud Fabre's avatar
Arnaud Fabre committed
2 3 4 5

.representative

  %h1.name
Arnaud Fabre's avatar
Arnaud Fabre committed
6
    ={representative.full_name}
Arnaud Fabre's avatar
Arnaud Fabre committed
7 8 9 10 11 12 13 14 15 16 17

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

    .col-md-8
      %table.table.table-condensed.detail-view
        %tr.score
          %th Score
          %td
Arnaud Fabre's avatar
Arnaud Fabre committed
18
            = representative.score|score_label
Arnaud Fabre's avatar
Arnaud Fabre committed
19 20
        %tr
          %th Country
Arnaud Fabre's avatar
Arnaud Fabre committed
21 22
          %td
            = representative.country|country_flag
Arnaud Fabre's avatar
Arnaud Fabre committed
23 24 25 26 27 28 29 30 31 32 33
        %tr
          %th Party
          %td
            %a{:href => "{{ representative.main_mandate|by_group_url }}"}
              {{ representative.main_mandate.role }} of
              {{ representative.main_mandate.group.name }}
        %tr
          %th Biography
          %td
            Born in {{ representative.birth_place }} the
            {{ representative.birth_date }} ({{ representative.get_gender_display }})