representative_block.haml 602 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
12
13
    ={representative.full_name}

%td
  %a{'href': "{% url 'legislature:representatives_by_mandate' mandate_kind='country' search=representative.country.code %}"}
    ={representative.country.name}
14

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