representative_block.haml 610 Bytes
Newer Older
Arnaud Fabre's avatar
Arnaud Fabre committed
1
- load by_group_url
luxcem's avatar
luxcem committed
2
3

%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
Arnaud Fabre's avatar
Arnaud Fabre committed
16
17
  %a{'href': "{{ representative.current_group_mandate|by_group_url }}"}
    ={representative.current_group_mandate.group.abbreviation}