representative_block.haml 615 Bytes
Newer Older
luxcem's avatar
luxcem committed
1
2
3
- load by_mandate_url

%td
4
  %a{'href': "{% url 'legislature:representative_view_by_name' representative.full_name %}"} 
luxcem's avatar
luxcem committed
5
    %img{'src': '={representative.photo}', 'width': '80'}/
6

luxcem's avatar
luxcem committed
7
%td
8
  %a{'href': "{% url 'legislature:representative_view_by_name' representative.full_name %}"} 
luxcem's avatar
luxcem committed
9
10
11
    ={representative.full_name}

%td
12
  %a{'href': "{% url 'legislature:representatives_by_group' group_kind='country' search=representative.country.code %}"}
luxcem's avatar
luxcem committed
13
    ={representative.country.name}
14

luxcem's avatar
luxcem committed
15
%td
16
17
  %a{'href': "{{ representative.current_group_mandate|by_mandate_url }}"}
    ={representative.current_group_mandate.mgroup.abbreviation}