Sha256: e6f86e9bb1684640e2f48369c954c9a262c9b8d8cf8f021973982d24ac3961f9

Contents?: true

Size: 437 Bytes

Versions: 9

Compression:

Stored size: 437 Bytes

Contents

%h2
  %a{:href => "/people/#{data.graph_id}"}= data.display_name
- if !data.constituencies.empty?
  - seat_incumbency = data.seat_incumbencies.select(&:current?).first
  - unless seat_incumbency.nil?
    %p= "#{t('.current_mp_for')} #{seat_incumbency.constituency.name}"
- if !data.parties.empty?
  - party_membership = data.party_memberships.select(&:current?).first
  - unless party_membership.nil?
    %p= party_membership.party.name

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pugin-0.8.0 app/views/pugin/people/list/member/current/_current_member.html.haml
pugin-0.7.1 app/views/pugin/people/list/member/current/_current_member.html.haml
pugin-0.7.0 app/views/pugin/people/list/member/current/_current_member.html.haml
pugin-0.6.4 app/views/pugin/people/list/member/current/_current_member.html.haml
pugin-0.6.3 app/views/pugin/people/list/member/current/_current_member.html.haml
pugin-0.6.2 app/views/pugin/people/list/member/current/_current_member.html.haml
pugin-0.6.1 app/views/pugin/people/list/member/current/_current_member.html.haml
pugin-0.6.0 app/views/pugin/people/list/member/current/_current_member.html.haml
pugin-0.5.5.pre app/views/pugin/people/list/member/current/_current_member.html.haml