Sha256: 694b34730f881624385dd8dabf177e9790fd91e06de87527e6d42bbbdd94ba0d
Contents?: true
Size: 1.47 KB
Versions: 3
Compression:
Stored size: 1.47 KB
Contents
%li .list--details - if !instance_variable_get("@parliament").nil? # parliament member %h2 %a{:href => "/constituencies/#{constituencies.graph_id}"}= constituencies.name -# Constituency has a member? TRUE = Member's Name : FALSE = "Vacant" text - unless constituencies.members.empty? - constituencies.seat_incumbencies.each do |incumbency| %p= "#{incumbency.member.display_name} #{t('pugin.constituencies.list.from')} #{l(incumbency.start_date, format: :default)} - #{l(incumbency.end_date, format: :default)}" - incumbency.member.party_memberships.each do |member_party| %p= member_party.party.name - elsif constituencies.current? %h2 %a{:href => "/constituencies/#{constituencies.graph_id}"}= constituencies.name -# Constituency has a member? TRUE = Member's Name : FALSE = "Vacant" text - if !constituencies.members.empty? %p= constituencies.current_member_display_name %p= constituencies.current_member_party_name - else %p= I18n.t('pugin.constituencies.list.current_constituency.vacant').capitalize - else %h2 %a{:href => "/constituencies/#{constituencies.graph_id}"}= "#{constituencies.name} (#{l(constituencies.start_date, format: :year_only)} - #{l(constituencies.end_date, format: :year_only)})" %p= "#{t('pugin.constituencies.list.former_constituency.former').capitalize} #{t('pugin.constituencies.list.former_constituency.constituency')}"
Version data entries
3 entries across 3 versions & 1 rubygems