Sha256: 32cfd6546ac01d21a10ea5bfd09af54a3413a47129f38dd11c8746486879f06b
Contents?: true
Size: 1.65 KB
Versions: 29
Compression:
Stored size: 1.65 KB
Contents
%li .card .card__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 - date_string = " (#{l(constituencies.start_date, format: :year_only)} - #{l(constituencies.end_date, format: :year_only)})" if constituencies.respond_to?(:start_date) && constituencies.respond_to?(:end_date) %a{:href => "/constituencies/#{constituencies.graph_id}"}= "#{constituencies.name}#{date_string}" %p= "#{t('pugin.constituencies.list.former_constituency.former').capitalize} #{t('pugin.constituencies.list.former_constituency.constituency')}"
Version data entries
29 entries across 29 versions & 1 rubygems