pugin 0.5.4 → 0.5.5.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/pugin/cards/{_person-list.html.haml → _person-list.haml} +2 -2
  3. data/app/views/pugin/components/_footer.haml +8 -0
  4. data/app/views/pugin/components/_header.haml +3 -0
  5. data/app/views/pugin/components/{_letter-navigation.html.haml → _letter-navigation.haml} +3 -3
  6. data/app/views/pugin/components/_status.haml +9 -0
  7. data/app/views/pugin/constituencies/list/_list.html.haml +3 -0
  8. data/app/views/pugin/constituencies/list/current/_current_constituency.html.haml +6 -0
  9. data/app/views/pugin/constituencies/list/former/_former_constituency.html.haml +3 -0
  10. data/app/views/pugin/elements/_list.html.haml +7 -0
  11. data/app/views/pugin/elements/{_skip-content.html.haml → _skip-content.haml} +0 -0
  12. data/app/views/pugin/javascript/{_google_tag_manager.html.haml → _google_tag_manager.haml} +0 -0
  13. data/app/views/pugin/javascript/{_google_tag_manager_noscript.html.haml → _google_tag_manager_noscript.haml} +0 -0
  14. data/app/views/pugin/layouts/pugin-sinatra.haml +22 -0
  15. data/app/views/pugin/layouts/{pugin.html.haml → pugin.haml} +3 -3
  16. data/app/views/pugin/parties/list/_list.html.haml +3 -0
  17. data/app/views/pugin/parties/list/current/current_party.html.haml +1 -0
  18. data/app/views/pugin/parties/list/former/former_party.html.haml +1 -0
  19. data/app/views/pugin/people/list/_list.html.haml +3 -0
  20. data/app/views/pugin/people/list/lord/_lord.html.haml +4 -0
  21. data/app/views/pugin/people/list/lord/current/_current_lord.html.haml +12 -0
  22. data/app/views/pugin/people/list/lord/former/_former_lord.html.haml +4 -0
  23. data/app/views/pugin/people/list/member/_member.html.haml +4 -0
  24. data/app/views/pugin/people/list/member/current/_current_member.html.haml +10 -0
  25. data/app/views/pugin/people/list/member/former/_former_member.html.haml +4 -0
  26. data/config/locales/en.yml +10 -0
  27. data/lib/pugin.rb +72 -2
  28. data/lib/pugin/version.rb +1 -1
  29. data/spec/views/pugin/components/_status.html.haml_spec.rb +6 -17
  30. metadata +35 -20
  31. data/app/views/pugin/components/_footer.html.haml +0 -8
  32. data/app/views/pugin/components/_header.html.haml +0 -3
  33. data/app/views/pugin/components/_status.html.haml +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bee6e0b7161011aceb3cea3e722e12fbeffd178c
4
- data.tar.gz: 7da8a1f11967db37a11fc16e280b5a8307c8a1c0
3
+ metadata.gz: b8f493fc4f4dee25a2846df1c2ef844507cd637c
4
+ data.tar.gz: c1b8ccfb0a0a4dedf1458365b5a996c3cf92920a
5
5
  SHA512:
6
- metadata.gz: e00ea8a7e9213c801d3e27de08ddce423d68796cbe8c2ca825e42e1707bb7f4f85272dc7bc411f944001c57da165feb0c3ec78dd04f0e5d32b49aaf2654c9b80
7
- data.tar.gz: 9e481ae8538ad71056a9a50935cc99c89a60ccc3811d0aaa9c7f3fb70720a3a27f7282fa1e6e04113eb2be13d92ba20fcfa017c5a76f4ea0868c98973819074d
6
+ metadata.gz: 2a8c93c44c12da7ac4d285ad8ec781c1310d63550f6e664faef75af90166cd7f108607b54b42d249d218e0e5e490f62660b3f8e5d34d3449fff5e48d78f5638e
7
+ data.tar.gz: 835e0b10d2c5ad6c5fb4588eef02e0b0cace591eb9500d0996760d58902f4e07c9fc1c7dfcdaa3ba5ec83b147f3e9beb2ca1d1d90d9343368a1f1e5cd61807dd
@@ -1,7 +1,7 @@
1
1
  -if people.empty?
2
2
  %ol.list
3
3
  %li.list__item
4
- %p= t('no_content.empty_list.members.description', letter: letter.upcase)
4
+ %p= I18n.t('no_content.empty_list.members.description', letter: letter.upcase)
5
5
  -else
6
6
  %ol.list
7
7
  - people.each do |person|
@@ -14,7 +14,7 @@
14
14
  - if !person.constituencies.empty?
15
15
  - seat_incumbency = person.seat_incumbencies.select(&:current?).first
16
16
  - unless seat_incumbency.nil?
17
- %p= "#{t('.current_mp_for')} #{seat_incumbency.constituency.name}"
17
+ %p= "#{I18n.t('pugin.cards.person-list.current_mp_for')} #{seat_incumbency.constituency.name}"
18
18
  - if !person.parties.empty?
19
19
  - party_membership = person.party_memberships.select(&:current?).first
20
20
  - unless party_membership.nil?
@@ -0,0 +1,8 @@
1
+ %footer
2
+ .container--full-grid
3
+ %h2.logo= I18n.t('pugin.components.footer.uk_parliament')
4
+ %ul.list
5
+ %li
6
+ %a{:href => 'https://www.parliament.uk/'}= I18n.t('pugin.components.footer.current_website')
7
+ %li
8
+ %a{:href => 'http://beta.parliament.uk/meta/cookie-policy'}= I18n.t('pugin.components.footer.cookie_policy')
@@ -0,0 +1,3 @@
1
+ %header
2
+ .container--full-grid
3
+ %a.logo{:href => "/"}= I18n.t('pugin.components.header.parliament_header')
@@ -1,9 +1,9 @@
1
1
  .block
2
2
  %p.lead
3
3
  A to Z -
4
- = params[:letter].present? ? "Showing results for #{params[:letter].capitalize}" : 'select a letter'
5
- %nav{ aria:{ label: t('a_to_z.aria_label') } }
6
- %ul.navigation__letter
4
+ = params[:letter].present? ? "#{I18n.t('pugin.components.letter-navigation.showing_results')} #{params[:letter].capitalize}" : "#{I18n.t('pugin.components.letter-navigation.select_letter')}"
5
+ %nav{ aria:{ label: I18n.t('pugin.components.letter-navigation.aria_label') } }
6
+ %ul.navigation
7
7
  - ('a'..'z').each do |letter|
8
8
  %li{ data: { letter: letter }, class: ('active' if (params[:letter] == letter)) }
9
9
  - if @letters.include?(letter.upcase)
@@ -0,0 +1,9 @@
1
+ .highlight__status.status
2
+ .container--full-grid
3
+ %p
4
+ = I18n.t('pugin.components.status.status_text_1')
5
+ = precede ' - ' do
6
+ %a{ href: 'https://ukparliament-self.achieveservice.com/AchieveForms/?form_uri=sandbox://AF-Form-337e2b87-4c8b-40f7-bb72-a80f15284b21&category=AF-Category-108691b0-e15c-46d7-9d16-7ad0d35cdb2a&isPublished=false', target: '_blank', title: I18n.t('open_new_window')}= I18n.t('pugin.components.status.give_feedback')
7
+ = I18n.t('pugin.components.status.status_text_2')
8
+ = succeed '.' do
9
+ %a{ href: 'https://www.parliament.uk' }= I18n.t('pugin.components.status.current_website')
@@ -0,0 +1,3 @@
1
+ - constituency_status = data.current? ? "current" : "former"
2
+ %li.list__item
3
+ = render partial: "pugin/constituencies/list/#{constituency_status}/#{constituency_status}_constituency", locals: { constituency: local_assigns.fetch(:data, []) }
@@ -0,0 +1,6 @@
1
+ %ul
2
+ %li= link_to(constituency.name, constituency_path(constituency.graph_id))
3
+ - if constituency.members.empty?
4
+ %li= t('constituencies.shared_translations.vacant_by_election').capitalize
5
+ - else
6
+ %li= constituency.members.first.display_name
@@ -0,0 +1,3 @@
1
+ %ul
2
+ %li= link_to constituency.name, constituency_path(constituency.graph_id)
3
+ %li= constituency.current? ? "#{t('current').capitalize} #{t('constituency')}" : "#{t('former').capitalize} #{t('constituency')}"
@@ -0,0 +1,7 @@
1
+ - list_tag = local_assigns.fetch(:ordered?, false) ? :ol : :ul
2
+ = content_tag(list_tag, class: "list") do
3
+ - if data.empty?
4
+ %li.list__item
5
+ %p= t('no_content.empty_list.members.description', letter: params[:letter])
6
+ - else
7
+ = render partial: "pugin/#{item_type}/list/list", collection: local_assigns.fetch(:data, []), as: :data
@@ -0,0 +1,22 @@
1
+ !!! 5
2
+ %html{lang:'en'}
3
+ %head
4
+ - title = yield_content :title
5
+ %title= ( title.nil? || title.empty? ) ? I18n.t('pugin.layouts.pugin.website_brand') : title + ' - ' + I18n.t('pugin.layouts.pugin.website_brand')
6
+ %link{rel: 'stylesheet', href: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/stylesheets/main.css" }
7
+ %meta{name: 'viewport', content: 'width=device-width, initial-scale=1.0'}
8
+ %meta{'http-equiv': 'X-UA-Compatible', content: 'IE=edge'}
9
+ =# favicon_link_tag 'pugin/favicon.ico'
10
+ - if ENV['GTM_KEY']
11
+ = partial '/pugin/javascript/_google_tag_manager'
12
+ %body.no-js
13
+ - if ENV['GTM_KEY']
14
+ = partial '/pugin/javascript/_google_tag_manager_noscript'
15
+ = partial '/pugin/elements/_skip-content'
16
+ = partial '/pugin/components/_header'
17
+ = partial '/pugin/components/_status'
18
+ %main#content
19
+ .container--full-grid
20
+ = yield
21
+ = partial '/pugin/components/_footer'
22
+ %script{src: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/javascripts/main.js"}
@@ -1,15 +1,15 @@
1
1
  !!! 5
2
2
  %html{lang:'en'}
3
3
  %head
4
- %title= content_for?(:title) ? content_for(:title) + ' - ' + t('.website_brand') : t('.website_brand')
4
+ %title= content_for(:title).nil? ? I18n.t('pugin.layouts.pugin.website_brand') : content_for(:title) + ' - ' + I18n.t('pugin.layouts.pugin.website_brand')
5
5
  %link{rel: 'stylesheet', href: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/stylesheets/main.css" }
6
6
  %meta{name: 'viewport', content: 'width=device-width, initial-scale=1.0'}
7
7
  %meta{'http-equiv': 'X-UA-Compatible', content: 'IE=edge'}
8
- = favicon_link_tag 'pugin/favicon.ico'
8
+ =# favicon_link_tag 'pugin/favicon.ico'
9
9
  - if ENV['GTM_KEY']
10
10
  = render partial: 'pugin/javascript/google_tag_manager'
11
11
  %body.no-js
12
- - if Rails.application.secrets.gtm_key
12
+ - if ENV['GTM_KEY']
13
13
  = render partial: 'pugin/javascript/google_tag_manager_noscript'
14
14
  = render partial: 'pugin/elements/skip-content'
15
15
  = render 'pugin/components/header'
@@ -0,0 +1,3 @@
1
+ - current_party = data.parties.current? ? "current" : "former"
2
+ %li.list__item
3
+ = render partial: "pugin/parties/list/#{person_type}/#{person_type}", locals: { data: local_assigns.fetch(:data, []) }
@@ -0,0 +1,3 @@
1
+ - person_type = data.house_incumbencies.empty? ? "member" : "lord"
2
+ %li.list__item
3
+ = render partial: "pugin/people/list/#{person_type}/#{person_type}", locals: { data: local_assigns.fetch(:data, []) }
@@ -0,0 +1,4 @@
1
+ - current_incumbency = data.house_incumbencies.sort{ |inc_a, inc_b| inc_b.start_date <=> inc_a.start_date }.first
2
+ - current_incumbency = current_incumbency.current? ? "current" : "former"
3
+
4
+ = render partial: "pugin/people/list/lord/#{current_incumbency}/#{current_incumbency}_lord", locals: { data: local_assigns.fetch(:data, []) }
@@ -0,0 +1,12 @@
1
+ %h2
2
+ %a{:href => "/people/#{data.graph_id}"}= data.display_name
3
+ - if !data.statuses[:house_membership_status].empty? && !data.statuses[:house_membership_status].include?('Current MP')
4
+ %p= data.statuses[:house_membership_status].join(' and ')
5
+ - if !data.constituencies.empty?
6
+ - seat_incumbency = data.seat_incumbencies.select(&:current?).first
7
+ - unless seat_incumbency.nil?
8
+ %p= "#{t('.current_mp_for')} #{seat_incumbency.constituency.name}"
9
+ - if !data.parties.empty?
10
+ - party_membership = data.party_memberships.select(&:current?).first
11
+ - unless party_membership.nil?
12
+ %p= party_membership.party.name
@@ -0,0 +1,4 @@
1
+ %h2
2
+ %a{:href => "/people/#{data.graph_id}"}= data.display_name
3
+ - if !data.statuses[:house_membership_status].empty? && !data.statuses[:house_membership_status].include?('Current MP')
4
+ %p= data.statuses[:house_membership_status].join(' and ')
@@ -0,0 +1,4 @@
1
+ - current_incumbency = data.seat_incumbencies.sort{ |inc_a, inc_b| inc_b.start_date <=> inc_a.start_date }.first
2
+ - current_incumbency = current_incumbency.current? ? "current" : "former"
3
+
4
+ = render partial: "pugin/people/list/member/#{current_incumbency}/#{current_incumbency}_member", locals: { data: local_assigns.fetch(:data, []) }
@@ -0,0 +1,10 @@
1
+ %h2
2
+ %a{:href => "/people/#{data.graph_id}"}= data.display_name
3
+ - if !data.constituencies.empty?
4
+ - seat_incumbency = data.seat_incumbencies.select(&:current?).first
5
+ - unless seat_incumbency.nil?
6
+ %p= "#{t('.current_mp_for')} #{seat_incumbency.constituency.name}"
7
+ - if !data.parties.empty?
8
+ - party_membership = data.party_memberships.select(&:current?).first
9
+ - unless party_membership.nil?
10
+ %p= party_membership.party.name
@@ -0,0 +1,4 @@
1
+ %h2
2
+ %a{:href => "/people/#{data.graph_id}"}= data.display_name
3
+ - if !data.statuses[:house_membership_status].empty? && !data.statuses[:house_membership_status].include?('Current MP')
4
+ %p= data.statuses[:house_membership_status].join(' and ')
@@ -15,6 +15,16 @@ en:
15
15
  uk_parliament: "UK Parliament"
16
16
  current_website: "Current Parliament.uk website"
17
17
  cookie_policy: "Cookie Policy"
18
+ letter-navigation:
19
+ aria_label: "Paged navigation"
20
+ select_letter: "select a letter"
21
+ showing_results: "Showing results for"
22
+ people:
23
+ list:
24
+ member:
25
+ current:
26
+ current_member:
27
+ current_mp_for: "Current MP for"
18
28
  layouts:
19
29
  pugin:
20
30
  website_brand: "UK Parliament"
data/lib/pugin.rb CHANGED
@@ -1,8 +1,78 @@
1
- require 'pugin/engine'
2
- require 'pugin/railtie'
3
1
  require 'pugin/version'
4
2
 
5
3
  module Pugin
6
4
  ASSET_VERSION = '1.2.8'.freeze
7
5
  ASSET_LOCATION_URL = ENV.fetch('ASSET_LOCATION_URL', 'https://s3-eu-west-1.amazonaws.com/web1devci.pugin-website')
6
+
7
+ class << self
8
+ # Inspired by bootsrap-sass
9
+ def load!
10
+ if rails?
11
+ register_rails_files
12
+ elsif sinatra?
13
+ add_i18n_paths
14
+ elsif sprockets?
15
+ register_sprockets
16
+ end
17
+ end
18
+
19
+ # Paths
20
+ def gem_path
21
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
22
+ end
23
+
24
+ def images_path
25
+ File.join assets_path, 'images'
26
+ end
27
+
28
+ def javascripts_path
29
+ File.join assets_path, 'javascripts'
30
+ end
31
+
32
+ def stylesheets_path
33
+ File.join assets_path, 'stylesheets'
34
+ end
35
+
36
+ def views_path
37
+ File.join gem_path, 'app', 'views'
38
+ end
39
+
40
+ def assets_path
41
+ @assets_path ||= File.join gem_path, 'app', 'assets'
42
+ end
43
+
44
+ # Environment detection helpers
45
+ def rails?
46
+ defined?(::Rails)
47
+ end
48
+
49
+ def sinatra?
50
+ defined?(::Sinatra)
51
+ end
52
+
53
+ def sprockets?
54
+ defined?(::Sprockets)
55
+ end
56
+
57
+ private
58
+
59
+ def register_rails_files
60
+ require 'pugin/engine'
61
+ require 'pugin/railtie'
62
+ end
63
+
64
+ def add_i18n_paths
65
+ require 'i18n'
66
+ I18n.load_path += Dir[File.join(gem_path, 'config', 'locales', '*.yml')]
67
+ end
68
+
69
+ def register_sprockets
70
+ Sprockets.append_path(images_path)
71
+ Sprockets.append_path(javascripts_path)
72
+ Sprockets.append_path(stylesheets_path)
73
+ Sprockets.append_path(views_path)
74
+ end
75
+ end
8
76
  end
77
+
78
+ Pugin.load!
data/lib/pugin/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pugin
2
- VERSION = '0.5.4'.freeze
2
+ VERSION = '0.5.5.pre'.freeze
3
3
  end
@@ -11,23 +11,12 @@ describe 'pugin/components/_status.html.haml', type: :view do
11
11
  <<DATA
12
12
  <div class='highlight__status status'>
13
13
  <div class='container--full-grid'>
14
- <p>This is a test website, so may be inaccurate or misleading - <a target="_blank" title="website opens in a new window" href="https://ukparliament-self.achieveservice.com/AchieveForms/?form_uri=sandbox://AF-Form-337e2b87-4c8b-40f7-bb72-a80f15284b21&amp;category=AF-Category-108691b0-e15c-46d7-9d16-7ad0d35cdb2a&amp;isPublished=false">give feedback</a> to help improve it. Return to <a href="https://www.parliament.uk">current website</a>.</p>
15
- </div>
16
- </div>
17
- DATA
18
- )
19
- end
20
- end
21
-
22
- context 'with a status message' do
23
- it 'renders as expected' do
24
- render partial: 'pugin/components/status', locals: { status: "test" }
25
-
26
- expect(rendered).to eq(
27
- <<DATA
28
- <div class='highlight__status status__test'>
29
- <div class='container--full-grid'>
30
- <p>This is a test website, so may be inaccurate or misleading - <a target="_blank" title="website opens in a new window" href="https://ukparliament-self.achieveservice.com/AchieveForms/?form_uri=sandbox://AF-Form-337e2b87-4c8b-40f7-bb72-a80f15284b21&amp;category=AF-Category-108691b0-e15c-46d7-9d16-7ad0d35cdb2a&amp;isPublished=false">give feedback</a> to help improve it. Return to <a href="https://www.parliament.uk">current website</a>.</p>
14
+ <p>
15
+ This is a test website, so may be inaccurate or misleading
16
+ - <a href='https://ukparliament-self.achieveservice.com/AchieveForms/?form_uri=sandbox://AF-Form-337e2b87-4c8b-40f7-bb72-a80f15284b21&amp;amp;category=AF-Category-108691b0-e15c-46d7-9d16-7ad0d35cdb2a&amp;amp;isPublished=false' target='_blank' title='website opens in a new window'>give feedback</a>
17
+ to help improve it. Return to
18
+ <a href='https://www.parliament.uk'>current website</a>.
19
+ </p>
31
20
  </div>
32
21
  </div>
33
22
  DATA
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Rayner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-13 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: haml
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.0'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: haml
28
+ name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.0'
34
- type: :runtime
33
+ version: '5.0'
34
+ type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '4.0'
40
+ version: '5.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -178,15 +178,30 @@ files:
178
178
  - app/assets/stylesheets/pugin/compiled/main.css
179
179
  - app/assets/stylesheets/pugin/overrides/asset_overrides.css.erb
180
180
  - app/assets/stylesheets/pugin/pugin.css
181
- - app/views/pugin/cards/_person-list.html.haml
182
- - app/views/pugin/components/_footer.html.haml
183
- - app/views/pugin/components/_header.html.haml
184
- - app/views/pugin/components/_letter-navigation.html.haml
185
- - app/views/pugin/components/_status.html.haml
186
- - app/views/pugin/elements/_skip-content.html.haml
187
- - app/views/pugin/javascript/_google_tag_manager.html.haml
188
- - app/views/pugin/javascript/_google_tag_manager_noscript.html.haml
189
- - app/views/pugin/layouts/pugin.html.haml
181
+ - app/views/pugin/cards/_person-list.haml
182
+ - app/views/pugin/components/_footer.haml
183
+ - app/views/pugin/components/_header.haml
184
+ - app/views/pugin/components/_letter-navigation.haml
185
+ - app/views/pugin/components/_status.haml
186
+ - app/views/pugin/constituencies/list/_list.html.haml
187
+ - app/views/pugin/constituencies/list/current/_current_constituency.html.haml
188
+ - app/views/pugin/constituencies/list/former/_former_constituency.html.haml
189
+ - app/views/pugin/elements/_list.html.haml
190
+ - app/views/pugin/elements/_skip-content.haml
191
+ - app/views/pugin/javascript/_google_tag_manager.haml
192
+ - app/views/pugin/javascript/_google_tag_manager_noscript.haml
193
+ - app/views/pugin/layouts/pugin-sinatra.haml
194
+ - app/views/pugin/layouts/pugin.haml
195
+ - app/views/pugin/parties/list/_list.html.haml
196
+ - app/views/pugin/parties/list/current/current_party.html.haml
197
+ - app/views/pugin/parties/list/former/former_party.html.haml
198
+ - app/views/pugin/people/list/_list.html.haml
199
+ - app/views/pugin/people/list/lord/_lord.html.haml
200
+ - app/views/pugin/people/list/lord/current/_current_lord.html.haml
201
+ - app/views/pugin/people/list/lord/former/_former_lord.html.haml
202
+ - app/views/pugin/people/list/member/_member.html.haml
203
+ - app/views/pugin/people/list/member/current/_current_member.html.haml
204
+ - app/views/pugin/people/list/member/former/_former_member.html.haml
190
205
  - config/application.rb
191
206
  - config/locales/en.yml
192
207
  - config/routes.rb
@@ -270,9 +285,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
270
285
  version: '0'
271
286
  required_rubygems_version: !ruby/object:Gem::Requirement
272
287
  requirements:
273
- - - ">="
288
+ - - ">"
274
289
  - !ruby/object:Gem::Version
275
- version: '0'
290
+ version: 1.3.1
276
291
  requirements: []
277
292
  rubyforge_project:
278
293
  rubygems_version: 2.6.10
@@ -1,8 +0,0 @@
1
- %footer
2
- .container--full-grid
3
- %h2.logo= t('.uk_parliament')
4
- %ul.list
5
- %li
6
- %a{:href => "https://www.parliament.uk/"}= t('.current_website')
7
- %li
8
- %a{:href => "http://beta.parliament.uk/meta/cookie-policy"}= t('.cookie_policy')
@@ -1,3 +0,0 @@
1
- %header
2
- .container--full-grid
3
- %a.logo{:href => "/"}= t('.parliament_header')
@@ -1,3 +0,0 @@
1
- .highlight__status{class: "status#{ status.nil? ? '' : "__#{status}" }"}
2
- .container--full-grid
3
- %p #{t('.status_text_1')} - #{link_to t('.give_feedback'), 'https://ukparliament-self.achieveservice.com/AchieveForms/?form_uri=sandbox://AF-Form-337e2b87-4c8b-40f7-bb72-a80f15284b21&category=AF-Category-108691b0-e15c-46d7-9d16-7ad0d35cdb2a&isPublished=false', target: '_blank', title: t('open_new_window')} #{t('.status_text_2')} #{link_to t('.current_website'), 'https://www.parliament.uk'}.