pugin 0.6.1 → 0.6.2

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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/pugin/cards/_person-list.haml +4 -4
  3. data/app/views/pugin/components/_navigation-letter.haml +15 -0
  4. data/app/views/pugin/components/_navigation-main.haml +11 -0
  5. data/app/views/pugin/components/_status.haml +10 -6
  6. data/app/views/pugin/layouts/pugin.haml +1 -0
  7. data/config/locales/en.yml +15 -8
  8. data/lib/pugin.rb +1 -1
  9. data/lib/pugin/version.rb +1 -1
  10. data/spec/dummy/db/test.sqlite3 +0 -0
  11. data/spec/dummy/log/development.log +36 -0
  12. data/spec/dummy/log/test.log +183 -0
  13. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-G/-GyAYJjar0g5CPnFCUhwOOfXQe2IqnrWh1aONZ0nmA0.cache +3 -0
  14. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-h/-hJnTi9-PvZ8jH8d7rELtQUT2NYS5mzryuQTOHeg8fI.cache +0 -0
  15. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/40/40nhJiELTyR97DHGs6M0qpi7z3TY2gmlJSyMIa7LN7c.cache +1 -0
  16. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4_/4_JQn8ulT9tB_tca1taRk-JejZarO7CMYd6plYIMEpo.cache +1 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5a/5a5wEAyFzyfsBAfrRNTGO3ltfh3N5eLiJYjFbUubBYI.cache +2 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9T/9TjibkDb7Rx_qOlaZMKFg0Jz2_IcKvViCJR0yM_4x90.cache +1 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cf/cflb8FVFMu9am4L6oe5WC3Jjfwy6NqWgTmZFjkDy720.cache +1 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jy/JyvnDIQaRZ5MPQA8iwNwKbUTz4Ar7cLU6zeYvm_yCF0.cache +1 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nv/Nv6rIsKzBVeohA50lFJN197MeSZwR0ofTV7yV1Qfolc.cache +0 -0
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PQ/PQ64nNEWICOVjSLLK3IcbSLEIYIh6FFSskJ9gxEoX6o.cache +0 -0
  23. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PQ/PQhjFnHKO54lkCrGiPig70PYmuOUmCAchEDXsOqsZKk.cache +2 -0
  24. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QK/QK13QPRFpbmGMoRr_H6ohTSYQJpun2YU6BfoGEvwgYM.cache +1 -0
  25. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Rp/RpSaOx-iNikD9PEgEWQl1JNr4FUXBSacjWKFztE_UHE.cache +1 -0
  26. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TH/THy8omBn1UK7XIeTAqF9vof4rHt_29hN1c47oOtV1pg.cache +0 -0
  27. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/U3/U3J8VIOqOsxd4mz_QE7do7lwjgaOs17WuXHHB_U7JX4.cache +2 -0
  28. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VQ/VQOPLQhd-oOHDHPcXHXEx7AKb9_QMqgMHP-sa-QCG1E.cache +0 -0
  29. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Z9/Z98OlWQ5yjVk3HyW31BKb0htp-JZuXhQob92lbYzamM.cache +1 -0
  30. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_J/_JtbBiIeaSTrLweialnFRASDaA7ogDa9e3WP4MZxQgg.cache +1 -0
  31. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cd/cdzOcklPNdKBoW6cnzpmlq5UdUYrpXaCvlncIxIAa-I.cache +1 -0
  32. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dY/dYE9sYKw7z5dY6zUrdv_jJrylshWFMf1GFwuXHmXlzE.cache +1 -0
  33. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/g_/g_PE6B0npZ_BLO1zmkdAryZ3d6iWJSjmgjXdB0ZzxJo.cache +1 -0
  34. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qD/Qdyo6BYiRTijCZGqjSBq3JItniOo20TM2fAA4n6O-YE.cache +1 -0
  35. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/r3/r3qtcnigoyejsNKbLDSwuGLWtmuFr7I7J5CgVRxw0F0.cache +1 -0
  36. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sD/sDCGBPwV6noJmb0tQF8pLiXE9fL_5aazD7f7QdY0OY4.cache +3 -0
  37. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sj/sjteVBlXgHg81qlSz7RRjeezBmfhr-mWBZca8J-wlms.cache +0 -0
  38. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tl/tlBv3MYJiVXQzday1XNB-r4kMfHOAdfdqFqNIp-JRFs.cache +3 -0
  39. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/u5/u5DlcffGA6QZ9iYe3eC_kPpuYdbSw754SbJM-8GSaYA.cache +1 -0
  40. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vi/viPp12F8U4LcbUm_qUga87pk_xpubFbuyC7Ut_CPPo0.cache +2 -0
  41. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xQ/xqZ-eoq9eoAn2ZSThyKvxOBZn8X8DQe61k2rp0RDGsU.cache +0 -0
  42. data/spec/views/pugin/cards/_person-list.html.haml_spec.rb +11 -11
  43. data/spec/views/pugin/components/_navigation-letter.html.haml_spec.rb +107 -0
  44. data/spec/views/pugin/components/_navigation-main.haml_spec.rb +42 -0
  45. data/spec/views/pugin/components/_status.html.haml_spec.rb +80 -3
  46. metadata +67 -4
  47. data/app/views/pugin/components/_letter-navigation.haml +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75bfa228f4488a7a594d28eca533641de29643b4
4
- data.tar.gz: 031754c0df8efcc3008738ca7ea19e46659c7bf3
3
+ metadata.gz: febc48d95711e46c7655331803cd21a99f6abac3
4
+ data.tar.gz: f922b607f64643d1ba90d1d3bd164d97faf8065b
5
5
  SHA512:
6
- metadata.gz: 5035d7e9ab9e4f5e72e55253b9c1aa351ee799eba756c5e4cc6ee72ba61e8e7cdc39eb975a8a8b2ac1488d9da96ef0830aa5e5513cc4a476b1982498b2348aea
7
- data.tar.gz: 2f126d54328bbb93d0979a8c75cd03426fba608a6b21799d1169b76c8b7ef5404f1141f72a3c41380443a10e9c4d57b42501e839c9a9276668f19d3bf8615641
6
+ metadata.gz: f6dcda9d6e9c03876dcac3b2d5d77a35797eee6b24f471bd0167cb70266d9e55a05184c6120a288a7633b83d90a73936496bdf34a60056732c632d751553d6bb
7
+ data.tar.gz: 60c5d87d2d3e166af7b5482874c6f921fd6ffed0bdf84f0228a75318975c43cbce318a520b991e800ebb649e6b6464ebbb07c7f6f32af837d2c019da7f5d7b78
@@ -1,12 +1,12 @@
1
1
  -if people.empty?
2
- %ol.list
3
- %li.list__item
2
+ %ol.list--box
3
+ %li
4
4
  %p= I18n.t('no_content.empty_list.members.description', letter: letter.upcase)
5
5
  -else
6
- %ol.list
6
+ %ol.list--box
7
7
  - people.each do |person|
8
8
  - if person.respond_to?(:graph_id)
9
- %li.list__item
9
+ %li
10
10
  %h2
11
11
  %a{:href => "/people/#{person.graph_id}"}= person.display_name
12
12
  - if !person.statuses[:house_membership_status].empty? && !person.statuses[:house_membership_status].include?('Current MP')
@@ -0,0 +1,15 @@
1
+ %p
2
+ A to Z -
3
+ = params[:letter].present? ? "#{I18n.t('pugin.components.navigation-letter.showing_results')} #{params[:letter].capitalize}" : "#{I18n.t('pugin.components.navigation-letter.select_letter')}"
4
+ %nav.navigation--letter{ aria:{ label: I18n.t('pugin.components.navigation-letter.aria_label') } }
5
+ %ul
6
+ - ('a'..'z').each do |letter|
7
+ %li{ data: { letter: letter }, class: ('active' if (params[:letter] == letter)) }
8
+ - if @letters.include?(letter.upcase)
9
+ - unless letter == params[:letter]
10
+ = navigation_link(route_symbol: route_symbol, letter: letter, primary_id: local_assigns.fetch(:primary_id, nil), secondary_id: local_assigns.fetch(:secondary_id, nil))
11
+ - else
12
+ = letter
13
+ - else
14
+ = letter
15
+
@@ -0,0 +1,11 @@
1
+ %nav.navigation--main{aria:{ label: I18n.t('pugin.components.navigation-main.aria_label') } }
2
+ .container
3
+ %ul
4
+ %li
5
+ %a{ href: '/houses/KL2k1BGP/members/current/a-z/a'}= I18n.t('pugin.components.navigation-main.item_1')
6
+ %li
7
+ %a{ href: '/houses/m1EgVTLj/members/current/a-z/a'}= I18n.t('pugin.components.navigation-main.item_2')
8
+ %li
9
+ %a{ href: '/houses/KL2k1BGP/parties/current'}= I18n.t('pugin.components.navigation-main.item_3')
10
+ %li
11
+ %a{ href: '/constituencies/current/a-z/a'}= I18n.t('pugin.components.navigation-main.item_4')
@@ -1,10 +1,14 @@
1
- .highlight__status.highlight--default
1
+ .highlight--status.highlight--default
2
2
  .container
3
3
  %p
4
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')
5
+ %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
6
  = I18n.t('pugin.components.status.status_text_2')
8
- = succeed '' do
9
- %a{ href: 'https://www.gov.uk/register-to-vote' }= I18n.t('pugin.components.status.register_to_vote')
10
- = I18n.t('pugin.components.status.status_text_3')
7
+ - if defined?(FlagHelper.dissolution?) && FlagHelper.dissolution?
8
+ - if defined?(FlagHelper.register_to_vote?) && FlagHelper.register_to_vote?
9
+ %a{ href: 'https://www.gov.uk/register-to-vote' }= I18n.t('pugin.components.status.register_to_vote')
10
+ = I18n.t('pugin.components.status.election_text_1')
11
+ - else
12
+ = I18n.t('pugin.components.status.election_text_2')
13
+
14
+
@@ -14,6 +14,7 @@
14
14
  = render partial: 'pugin/elements/skip-content'
15
15
  = render 'pugin/components/header'
16
16
  = render partial: 'pugin/components/status', locals: { status: nil }
17
+ = render partial: 'pugin/components/navigation-main' if @enable_navigation_main
17
18
  %main
18
19
  = yield
19
20
  = render 'pugin/components/footer'
@@ -1,7 +1,7 @@
1
1
  en:
2
2
  pugin:
3
3
  cards:
4
- person-list:
4
+ person-list:
5
5
  current_mp_for: "Current MP for"
6
6
  components:
7
7
  header:
@@ -9,28 +9,35 @@ en:
9
9
  status:
10
10
  status_text_1: 'This is a test website, so may be inaccurate.'
11
11
  status_text_2: 'to help improve it.'
12
- status_text_3: 'in the General Election by 22 May.'
12
+ election_text_1: 'in the General Election by 22 May.'
13
+ election_text_2: 'Remember to vote in the general election on 8th June.'
13
14
  give_feedback: 'Give feedback'
14
15
  register_to_vote: 'Register to vote'
15
- footer:
16
+ footer:
16
17
  uk_parliament: "UK Parliament"
17
18
  current_website: "Current Parliament.uk website"
18
19
  cookie_policy: "Cookie Policy"
19
- letter-navigation:
20
+ navigation-letter:
20
21
  aria_label: "Paged navigation"
21
22
  select_letter: "select a letter"
22
23
  showing_results: "Showing results for"
24
+ navigation-main:
25
+ aria_label: "navigation"
26
+ item_1: "MPs"
27
+ item_2: "Lords"
28
+ item_3: "Parties"
29
+ item_4: "Constituencies"
23
30
  people:
24
31
  list:
25
32
  member:
26
- current:
33
+ current:
27
34
  current_member:
28
35
  current_mp_for: "Current MP for"
29
- layouts:
30
- pugin:
36
+ layouts:
37
+ pugin:
31
38
  website_brand: "UK Parliament"
32
39
  open_new_window: "website opens in a new window"
33
40
  no_content:
34
41
  empty_list:
35
42
  members:
36
- description: "Sorry there are no results for '%{letter}'"
43
+ description: "Sorry there are no results for '%{letter}'"
data/lib/pugin.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'pugin/version'
2
2
 
3
3
  module Pugin
4
- ASSET_VERSION = '1.3.1'.freeze
4
+ ASSET_VERSION = '1.4.1'.freeze
5
5
  ASSET_LOCATION_URL = ENV.fetch('ASSET_LOCATION_URL', 'https://s3-eu-west-1.amazonaws.com/web1devci.pugin-website')
6
6
 
7
7
  class << self
data/lib/pugin/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pugin
2
- VERSION = '0.6.1'.freeze
2
+ VERSION = '0.6.2'.freeze
3
3
  end
Binary file
@@ -42,3 +42,39 @@
42
42
  ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
43
43
   (0.1ms) begin transaction
44
44
   (0.0ms) commit transaction
45
+  (0.3ms) SELECT sqlite_version(*)
46
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
47
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
48
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES (0)
49
+  (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
50
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
51
+  (0.1ms) begin transaction
52
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-05-04 23:33:28.867508"], ["updated_at", "2017-05-04 23:33:28.867508"]]
53
+  (0.6ms) commit transaction
54
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
55
+  (0.1ms) begin transaction
56
+  (0.0ms) commit transaction
57
+  (0.3ms) SELECT sqlite_version(*)
58
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
59
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
60
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (0)
61
+  (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
62
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
63
+  (0.1ms) begin transaction
64
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-05-05 15:26:59.802605"], ["updated_at", "2017-05-05 15:26:59.802605"]]
65
+  (0.5ms) commit transaction
66
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
67
+  (0.0ms) begin transaction
68
+  (0.0ms) commit transaction
69
+  (0.1ms) SELECT sqlite_version(*)
70
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
71
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
72
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (0)
73
+  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
74
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
75
+  (0.1ms) begin transaction
76
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-05-05 15:27:15.812680"], ["updated_at", "2017-05-05 15:27:15.812680"]]
77
+  (0.5ms) commit transaction
78
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
79
+  (0.1ms) begin transaction
80
+  (0.1ms) commit transaction
@@ -1735,3 +1735,186 @@ Started GET "/assets/pugin/pugin.js" for 127.0.0.1 at 2017-04-26 13:47:52 +0100
1735
1735
  Rendering /Users/afzalu/Documents/Projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_footer.haml
1736
1736
  Rendered /Users/afzalu/Documents/Projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_footer.haml (5.7ms)
1737
1737
   (0.1ms) rollback transaction
1738
+  (0.0ms) begin transaction
1739
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_status.haml (49.7ms) [cache miss]
1740
+  (0.1ms) rollback transaction
1741
+  (0.1ms) begin transaction
1742
+  (0.0ms) rollback transaction
1743
+  (0.1ms) begin transaction
1744
+ Rendering /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_navigation-main.haml
1745
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_navigation-main.haml (3.8ms)
1746
+  (0.1ms) rollback transaction
1747
+  (0.1ms) begin transaction
1748
+  (0.1ms) rollback transaction
1749
+  (0.1ms) begin transaction
1750
+  (0.1ms) rollback transaction
1751
+  (0.1ms) begin transaction
1752
+  (0.0ms) rollback transaction
1753
+  (0.1ms) begin transaction
1754
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (3.5ms) [cache miss]
1755
+  (0.1ms) rollback transaction
1756
+  (0.1ms) begin transaction
1757
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (0.5ms) [cache miss]
1758
+  (0.1ms) rollback transaction
1759
+  (0.1ms) begin transaction
1760
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (0.1ms) [cache miss]
1761
+  (0.1ms) rollback transaction
1762
+  (0.3ms) begin transaction
1763
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (3.1ms) [cache miss]
1764
+  (0.1ms) rollback transaction
1765
+  (0.1ms) begin transaction
1766
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (0.3ms) [cache miss]
1767
+  (0.1ms) rollback transaction
1768
+  (0.1ms) begin transaction
1769
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (5.4ms) [cache miss]
1770
+  (0.1ms) rollback transaction
1771
+  (0.1ms) begin transaction
1772
+ Rendering /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/layouts/pugin.haml
1773
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/elements/_skip-content.haml (1.8ms) [cache miss]
1774
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_header.haml (2.0ms) [cache miss]
1775
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_status.haml (0.3ms) [cache miss]
1776
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_footer.haml (2.4ms) [cache miss]
1777
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/layouts/pugin.haml (88.2ms)
1778
+  (0.1ms) rollback transaction
1779
+  (0.1ms) begin transaction
1780
+ Rendering /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_header.haml
1781
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_header.haml (1.8ms)
1782
+  (0.1ms) rollback transaction
1783
+  (0.1ms) begin transaction
1784
+ Rendering /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_footer.haml
1785
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_footer.haml (2.5ms)
1786
+  (0.1ms) rollback transaction
1787
+  (0.1ms) begin transaction
1788
+ Started GET "/assets/pugin/pugin.css" for 127.0.0.1 at 2017-05-05 00:33:31 +0100
1789
+  (0.1ms) rollback transaction
1790
+  (0.2ms) begin transaction
1791
+ Started GET "/assets/pugin/pugin.js" for 127.0.0.1 at 2017-05-05 00:33:31 +0100
1792
+  (0.1ms) rollback transaction
1793
+  (0.1ms) begin transaction
1794
+ Rendering /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/layouts/pugin.haml
1795
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/elements/_skip-content.haml (1.8ms) [cache miss]
1796
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_header.haml (1.9ms) [cache miss]
1797
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_status.haml (4.9ms) [cache miss]
1798
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_footer.haml (4.3ms) [cache miss]
1799
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/layouts/pugin.haml (121.5ms)
1800
+  (0.1ms) rollback transaction
1801
+  (0.1ms) begin transaction
1802
+  (0.1ms) rollback transaction
1803
+  (0.1ms) begin transaction
1804
+  (0.1ms) rollback transaction
1805
+  (0.1ms) begin transaction
1806
+  (0.1ms) rollback transaction
1807
+  (0.1ms) begin transaction
1808
+ Rendering /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_header.haml
1809
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_header.haml (7.1ms)
1810
+  (0.1ms) rollback transaction
1811
+  (0.1ms) begin transaction
1812
+ Started GET "/assets/pugin/pugin.css" for 127.0.0.1 at 2017-05-05 16:27:02 +0100
1813
+  (0.1ms) rollback transaction
1814
+  (0.1ms) begin transaction
1815
+ Started GET "/assets/pugin/pugin.js" for 127.0.0.1 at 2017-05-05 16:27:02 +0100
1816
+  (0.1ms) rollback transaction
1817
+  (0.3ms) begin transaction
1818
+ Rendering /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_footer.haml
1819
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_footer.haml (2.5ms)
1820
+  (0.1ms) rollback transaction
1821
+  (0.3ms) begin transaction
1822
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_status.haml (0.4ms) [cache miss]
1823
+  (0.1ms) rollback transaction
1824
+  (0.3ms) begin transaction
1825
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_status.haml (0.5ms) [cache miss]
1826
+  (0.1ms) rollback transaction
1827
+  (0.1ms) begin transaction
1828
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_status.haml (0.4ms) [cache miss]
1829
+  (0.1ms) rollback transaction
1830
+  (0.1ms) begin transaction
1831
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_navigation-letter.haml (4.1ms) [cache miss]
1832
+  (0.1ms) rollback transaction
1833
+  (0.2ms) begin transaction
1834
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (5.6ms) [cache miss]
1835
+  (0.1ms) rollback transaction
1836
+  (0.2ms) begin transaction
1837
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (3.9ms) [cache miss]
1838
+  (0.1ms) rollback transaction
1839
+  (0.1ms) begin transaction
1840
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (0.6ms) [cache miss]
1841
+  (0.1ms) rollback transaction
1842
+  (0.1ms) begin transaction
1843
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (1.2ms) [cache miss]
1844
+  (0.3ms) rollback transaction
1845
+  (0.1ms) begin transaction
1846
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (0.7ms) [cache miss]
1847
+  (0.1ms) rollback transaction
1848
+  (0.1ms) begin transaction
1849
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (0.9ms) [cache miss]
1850
+  (0.2ms) rollback transaction
1851
+  (0.1ms) begin transaction
1852
+ Rendering /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_navigation-main.haml
1853
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_navigation-main.haml (25.4ms)
1854
+  (0.1ms) rollback transaction
1855
+  (0.1ms) begin transaction
1856
+  (0.0ms) rollback transaction
1857
+  (0.1ms) begin transaction
1858
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_status.haml (15.4ms) [cache miss]
1859
+  (0.1ms) rollback transaction
1860
+  (0.1ms) begin transaction
1861
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_status.haml (0.2ms) [cache miss]
1862
+  (0.1ms) rollback transaction
1863
+  (0.1ms) begin transaction
1864
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_status.haml (0.2ms) [cache miss]
1865
+  (0.1ms) rollback transaction
1866
+  (0.1ms) begin transaction
1867
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_navigation-letter.haml (5.0ms) [cache miss]
1868
+  (0.1ms) rollback transaction
1869
+  (0.1ms) begin transaction
1870
+ Rendering /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_footer.haml
1871
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_footer.haml (2.5ms)
1872
+  (0.1ms) rollback transaction
1873
+  (0.1ms) begin transaction
1874
+ Rendering /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_header.haml
1875
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_header.haml (2.0ms)
1876
+  (0.1ms) rollback transaction
1877
+  (0.1ms) begin transaction
1878
+ Started GET "/assets/pugin/pugin.js" for 127.0.0.1 at 2017-05-05 16:27:17 +0100
1879
+  (0.1ms) rollback transaction
1880
+  (0.1ms) begin transaction
1881
+ Started GET "/assets/pugin/pugin.css" for 127.0.0.1 at 2017-05-05 16:27:17 +0100
1882
+  (0.1ms) rollback transaction
1883
+  (0.1ms) begin transaction
1884
+ Rendering /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/layouts/pugin.haml
1885
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/elements/_skip-content.haml (1.6ms) [cache miss]
1886
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_header.haml (1.8ms) [cache miss]
1887
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_status.haml (0.2ms) [cache miss]
1888
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_footer.haml (2.3ms) [cache miss]
1889
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/layouts/pugin.haml (80.5ms)
1890
+  (0.1ms) rollback transaction
1891
+  (0.1ms) begin transaction
1892
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (3.7ms) [cache miss]
1893
+  (0.2ms) rollback transaction
1894
+  (0.1ms) begin transaction
1895
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (0.8ms) [cache miss]
1896
+  (0.2ms) rollback transaction
1897
+  (0.1ms) begin transaction
1898
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (0.4ms) [cache miss]
1899
+  (0.1ms) rollback transaction
1900
+  (0.1ms) begin transaction
1901
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (15.2ms) [cache miss]
1902
+  (0.1ms) rollback transaction
1903
+  (0.1ms) begin transaction
1904
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (0.1ms) [cache miss]
1905
+  (0.1ms) rollback transaction
1906
+  (0.1ms) begin transaction
1907
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/cards/_person-list.haml (0.5ms) [cache miss]
1908
+  (0.1ms) rollback transaction
1909
+  (0.1ms) begin transaction
1910
+  (0.0ms) rollback transaction
1911
+  (0.6ms) begin transaction
1912
+  (0.1ms) rollback transaction
1913
+  (0.1ms) begin transaction
1914
+  (0.1ms) rollback transaction
1915
+  (0.2ms) begin transaction
1916
+ Rendering /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_navigation-main.haml
1917
+ Rendered /Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/views/pugin/components/_navigation-main.haml (7.2ms)
1918
+  (0.1ms) rollback transaction
1919
+  (0.1ms) begin transaction
1920
+  (0.0ms) rollback transaction
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Kprocessors:type=text/css&file_type=text/css&engines=.erb&pipeline=self;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/overrides/asset_overrides.css.erb;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/overrides/asset_overrides.css.erb?type=text/css&pipeline=self&id=0d909b0583f18afa2d7c2613a3147c6217bcb263f0cc7e68fb60ad25f7add04a:ET
@@ -0,0 +1 @@
1
+ I"�/Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/compiled/main.css?type=text/css&pipeline=self&id=63b20e7189b93ae56a6a1098fe9761dd5db4fcc142aa1f7c48976ed4046d860a:ET
@@ -0,0 +1 @@
1
+ "%X�<Q�¨C�(�{e����QX x[�R ���?�<
@@ -0,0 +1 @@
1
+ I"�/Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/pugin.css?type=text/css&id=1c28a25cba6dbe8af5917e4922d14c0f74649e16f74976e6741885ae6195c01c:ET
@@ -0,0 +1 @@
1
+ "%��N�Xs���׫<]ƶʊ ����� FJ:��
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/pugin.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/compiled/main.css;TTI"Kprocessors:type=text/css&file_type=text/css&engines=.erb&pipeline=self;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/overrides/asset_overrides.css.erb;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/compiled;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/overrides;TTF
@@ -0,0 +1 @@
1
+ "%XA~xfV��7%���R�&n.��<�{c沑j
@@ -0,0 +1 @@
1
+ I"�/Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/javascripts/pugin/pugin.js?type=application/javascript&id=c4fdea5efa0df8fce3d042411a391eaeeee602b64bb516909afbe4071d15d26e:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/javascripts/pugin/pugin.js;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/javascripts/pugin/compiled;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/javascripts/pugin/compiled/main.js;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/pugin.css?type=text/css&pipeline=self&id=0f9f7ccd9fd0f8087955262c5d87e70aed3be5bcea3329ec2d567f6e4bbe65e5:ET
@@ -0,0 +1 @@
1
+ I"�/Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/javascripts/pugin/pugin.js?type=application/javascript&pipeline=self&id=f93aa898e726f4bfae0a9f2f66ff24997f7e14eee7009321644d079e689344b1:ET
@@ -0,0 +1 @@
1
+ "%����'5� ȴ��t��� ����RQG�l}B8�
@@ -0,0 +1 @@
1
+ "%���-�n�- �:t҈���j��4Y�����
@@ -0,0 +1 @@
1
+ I"�/Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/javascripts/pugin/compiled/main.js?type=application/javascript&pipeline=self&id=fcf845f88890cb6f71687242b7c9c31747597d38b8dea9907934e1d3dcf7dcef:ET
@@ -0,0 +1 @@
1
+ "%�+s��rc���&�f��[��SdUa~������%
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/compiled/main.css;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/javascripts/pugin/compiled/main.js;TTF
@@ -0,0 +1 @@
1
+ "%��B�����șo�$'�A�d��L���xR�U
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/pugin.css;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/compiled;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/compiled/main.css;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/overrides;TTI"�file-digest:///Users/afzalu/Documents/Projects/_projects/parliament.uk-pugin-components-rails/app/assets/stylesheets/pugin/overrides/asset_overrides.css.erb;TTF
@@ -54,8 +54,8 @@ describe 'pugin/cards/_person-list.html.haml', type: :view do
54
54
 
55
55
  expect(rendered).to eq(
56
56
  <<DATA
57
- <ol class='list'>
58
- <li class='list__item'>
57
+ <ol class='list--box'>
58
+ <li>
59
59
  <h2>
60
60
  <a href='/people/123'>Jane Smith</a>
61
61
  </h2>
@@ -77,8 +77,8 @@ DATA
77
77
  render partial: 'pugin/cards/person-list', locals: { people: @people, letter: 'a' }
78
78
 
79
79
  expect(response).to eq(<<DATA
80
- <ol class='list'>
81
- <li class='list__item'>
80
+ <ol class='list--box'>
81
+ <li>
82
82
  <p>Sorry there are no results for &#39;A&#39;</p>
83
83
  </li>
84
84
  </ol>
@@ -103,7 +103,7 @@ DATA
103
103
 
104
104
  expect(rendered).to eq(
105
105
  <<DATA
106
- <ol class='list'>
106
+ <ol class='list--box'>
107
107
  </ol>
108
108
  DATA
109
109
  )
@@ -153,8 +153,8 @@ DATA
153
153
 
154
154
  expect(rendered).to eq(
155
155
  <<DATA
156
- <ol class='list'>
157
- <li class='list__item'>
156
+ <ol class='list--box'>
157
+ <li>
158
158
  <h2>
159
159
  <a href='/people/123'></a>
160
160
  </h2>
@@ -199,8 +199,8 @@ DATA
199
199
 
200
200
  expect(rendered).to eq(
201
201
  <<DATA
202
- <ol class='list'>
203
- <li class='list__item'>
202
+ <ol class='list--box'>
203
+ <li>
204
204
  <h2>
205
205
  <a href='/people/123'>Jane Smith</a>
206
206
  </h2>
@@ -243,8 +243,8 @@ DATA
243
243
 
244
244
  expect(rendered).to eq(
245
245
  <<DATA
246
- <ol class='list'>
247
- <li class='list__item'>
246
+ <ol class='list--box'>
247
+ <li>
248
248
  <h2>
249
249
  <a href='/people/123'>Jane Smith</a>
250
250
  </h2>
@@ -0,0 +1,107 @@
1
+ require 'spec_helper'
2
+ require 'haml'
3
+
4
+ describe 'pugin/components/_navigation-letter.html.haml', type: :view do
5
+
6
+ context 'with no data' do
7
+
8
+ before :each do
9
+ @letters = []
10
+ end
11
+
12
+ it 'displays a navigation list with no links' do
13
+ render partial: 'pugin/components/navigation-letter', locals: { route_symbol: '/people' }
14
+
15
+ expect(rendered).to eq(
16
+ <<DATA
17
+ <p>
18
+ A to Z -
19
+ select a letter
20
+ </p>
21
+ <nav aria-label='Paged navigation' class='navigation--letter'>
22
+ <ul>
23
+ <li data-letter='a'>
24
+ a
25
+ </li>
26
+ <li data-letter='b'>
27
+ b
28
+ </li>
29
+ <li data-letter='c'>
30
+ c
31
+ </li>
32
+ <li data-letter='d'>
33
+ d
34
+ </li>
35
+ <li data-letter='e'>
36
+ e
37
+ </li>
38
+ <li data-letter='f'>
39
+ f
40
+ </li>
41
+ <li data-letter='g'>
42
+ g
43
+ </li>
44
+ <li data-letter='h'>
45
+ h
46
+ </li>
47
+ <li data-letter='i'>
48
+ i
49
+ </li>
50
+ <li data-letter='j'>
51
+ j
52
+ </li>
53
+ <li data-letter='k'>
54
+ k
55
+ </li>
56
+ <li data-letter='l'>
57
+ l
58
+ </li>
59
+ <li data-letter='m'>
60
+ m
61
+ </li>
62
+ <li data-letter='n'>
63
+ n
64
+ </li>
65
+ <li data-letter='o'>
66
+ o
67
+ </li>
68
+ <li data-letter='p'>
69
+ p
70
+ </li>
71
+ <li data-letter='q'>
72
+ q
73
+ </li>
74
+ <li data-letter='r'>
75
+ r
76
+ </li>
77
+ <li data-letter='s'>
78
+ s
79
+ </li>
80
+ <li data-letter='t'>
81
+ t
82
+ </li>
83
+ <li data-letter='u'>
84
+ u
85
+ </li>
86
+ <li data-letter='v'>
87
+ v
88
+ </li>
89
+ <li data-letter='w'>
90
+ w
91
+ </li>
92
+ <li data-letter='x'>
93
+ x
94
+ </li>
95
+ <li data-letter='y'>
96
+ y
97
+ </li>
98
+ <li data-letter='z'>
99
+ z
100
+ </li>
101
+ </ul>
102
+ </nav>
103
+ DATA
104
+ )
105
+ end
106
+ end
107
+ end
@@ -0,0 +1,42 @@
1
+ require 'spec_helper'
2
+ require 'haml'
3
+
4
+ describe 'pugin/components/_navigation-main.haml', type: :view do
5
+
6
+ context 'enable menu' do
7
+ it 'renders as expected' do
8
+ render
9
+
10
+ expect(response).to eq(<<DATA
11
+ <nav aria-label='navigation' class='navigation--main'>
12
+ <div class='container'>
13
+ <ul>
14
+ <li>
15
+ <a href='/houses/KL2k1BGP/members/current/a-z/a'>MPs</a>
16
+ </li>
17
+ <li>
18
+ <a href='/houses/m1EgVTLj/members/current/a-z/a'>Lords</a>
19
+ </li>
20
+ <li>
21
+ <a href='/houses/KL2k1BGP/parties/current'>Parties</a>
22
+ </li>
23
+ <li>
24
+ <a href='/constituencies/current/a-z/a'>Constituencies</a>
25
+ </li>
26
+ </ul>
27
+ </div>
28
+ </nav>
29
+ DATA
30
+ )
31
+ end
32
+ end
33
+
34
+ context 'disable menu' do
35
+ it 'does not render' do
36
+ render if @disable_navigation_main
37
+
38
+ expect(response).to be_empty
39
+ end
40
+ end
41
+
42
+ end
@@ -2,14 +2,58 @@ require 'spec_helper'
2
2
  require 'haml'
3
3
 
4
4
  describe 'pugin/components/_status.html.haml', type: :view do
5
+
6
+ context 'while not in a dissolution' do
5
7
 
6
- context 'without a status message' do
7
- it 'renders as expected' do
8
+ before :each do
9
+ module FlagHelper
10
+ def self.dissolution?
11
+ false
12
+ end
13
+ def self.register_to_vote?
14
+ false
15
+ end
16
+ end
17
+ end
18
+
19
+ it 'renders a message not related to the dissolution' do
8
20
  render partial: 'pugin/components/status', locals: { status: nil }
9
21
 
10
22
  expect(response).to eq(
11
23
  <<DATA
12
- <div class='highlight__status highlight--default'>
24
+ <div class='highlight--status highlight--default'>
25
+ <div class='container'>
26
+ <p>
27
+ This is a test website, so may be inaccurate.
28
+ <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>
29
+ to help improve it.
30
+ </p>
31
+ </div>
32
+ </div>
33
+ DATA
34
+ )
35
+ end
36
+ end
37
+
38
+ context 'while in a dissolution and still able to register to vote' do
39
+
40
+ before :each do
41
+ module FlagHelper
42
+ def self.dissolution?
43
+ true
44
+ end
45
+ def self.register_to_vote?
46
+ true
47
+ end
48
+ end
49
+ end
50
+
51
+ it 'renders a message that shows a link to register to vote' do
52
+ render partial: 'pugin/components/status', locals: { status: nil }
53
+ p FlagHelper.dissolution?
54
+ expect(response).to eq(
55
+ <<DATA
56
+ <div class='highlight--status highlight--default'>
13
57
  <div class='container'>
14
58
  <p>
15
59
  This is a test website, so may be inaccurate.
@@ -20,6 +64,39 @@ in the General Election by 22 May.
20
64
  </p>
21
65
  </div>
22
66
  </div>
67
+ DATA
68
+ )
69
+ end
70
+ end
71
+
72
+ context 'while in a dissolution and registration has closed' do
73
+
74
+ before :each do
75
+ module FlagHelper
76
+ def self.dissolution?
77
+ true
78
+ end
79
+ def self.register_to_vote?
80
+ false
81
+ end
82
+ end
83
+ end
84
+
85
+ it 'renders a message that reminds the user of the general election date' do
86
+ render partial: 'pugin/components/status', locals: { status: nil }
87
+
88
+ expect(response).to eq(
89
+ <<DATA
90
+ <div class='highlight--status highlight--default'>
91
+ <div class='container'>
92
+ <p>
93
+ This is a test website, so may be inaccurate.
94
+ <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>
95
+ to help improve it.
96
+ Remember to vote in the general election on 8th June.
97
+ </p>
98
+ </div>
99
+ </div>
23
100
  DATA
24
101
  )
25
102
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
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-05-03 00:00:00.000000000 Z
11
+ date: 2017-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -181,7 +181,8 @@ files:
181
181
  - app/views/pugin/cards/_person-list.haml
182
182
  - app/views/pugin/components/_footer.haml
183
183
  - app/views/pugin/components/_header.haml
184
- - app/views/pugin/components/_letter-navigation.haml
184
+ - app/views/pugin/components/_navigation-letter.haml
185
+ - app/views/pugin/components/_navigation-main.haml
185
186
  - app/views/pugin/components/_status.haml
186
187
  - app/views/pugin/constituencies/list/_list.html.haml
187
188
  - app/views/pugin/constituencies/list/current/_current_constituency.html.haml
@@ -267,7 +268,9 @@ files:
267
268
  - spec/dummy/public/apple-touch-icon.png
268
269
  - spec/dummy/public/favicon.ico
269
270
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/-B/-BarCDwZx1XMD5_7t8boZyKBI7oXG1UDfsF42IhEF_A.cache
271
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/-G/-GyAYJjar0g5CPnFCUhwOOfXQe2IqnrWh1aONZ0nmA0.cache
270
272
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/-O/-ORYsfuI6rMcvbATG61L5nNf3wQpIU3feLAZSJ3VLYA.cache
273
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/-h/-hJnTi9-PvZ8jH8d7rELtQUT2NYS5mzryuQTOHeg8fI.cache
271
274
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/0R/0R-MHkLMDkeVOzLHuPxcV7RRuYJnv5P9IFRr1j5Cv1Q.cache
272
275
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/10/10dSQLkbAJiDMgUt19dMYelhEoVg8J_iBI4jN91XzuI.cache
273
276
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/2D/2DNink9R7wYO1SZWx4KQaBbs5y5GmpXDTCvz2UWh4Lk.cache
@@ -275,11 +278,14 @@ files:
275
278
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/2u/2uJqLfb-VrSQT7pESA_rCZjvujI93s4tEHxULEDbltk.cache
276
279
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/3I/3I4d164bFPDGOYfPD4jWX_3Aa53q_RvhONSjaFRkMeg.cache
277
280
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/3n/3n_vB4jy-Rh6WjC6_aU0xH1rjbm5wMVd3vN5quVZ-VE.cache
281
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/40/40nhJiELTyR97DHGs6M0qpi7z3TY2gmlJSyMIa7LN7c.cache
278
282
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4G/4GGeHCylPM6iDbtK68ezJS3F0AFQcU8CoD4SnH95veM.cache
279
283
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4I/4Iyuu6jSarNZ_GM0_xn-zz7e6b9xH65pAy18fMzqcZ4.cache
280
284
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4W/4WHTyjRbgkuWZSfAMqGfUvFeH6e6lluBpfUWtee7Kz4.cache
285
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/4_/4_JQn8ulT9tB_tca1taRk-JejZarO7CMYd6plYIMEpo.cache
281
286
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4z/4zORIlwLT6as3voof3l_OcD2-veguQEslZIuzhrl2cU.cache
282
287
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/56/56-T-hZRNMgNk4Uh3WzZ1eWLTqvROiRwjq_aOdzqs0g.cache
288
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5a/5a5wEAyFzyfsBAfrRNTGO3ltfh3N5eLiJYjFbUubBYI.cache
283
289
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/5j/5jHCod8lw0AgBjLvlo9ZxTHpQnwOD_xvTDVsS-9TUbM.cache
284
290
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/5v/5vQY7dtUL8XwgiDsAoKrGI-unFjrB8HDPwvIIy6Cosg.cache
285
291
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/6L/6LRCEnxg0Mg0xaCUE7KuERr1q8Ah3UVv0pmxHcQ0Sj0.cache
@@ -293,6 +299,7 @@ files:
293
299
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/95/95zm39LWnSmXoeDSf11a3yOxxWxJL1O0EGL2tgpc2N0.cache
294
300
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/9H/9H8vBTix9diMBKXu1rDOqCJFG5ZBICxq8xmwmor6Dn0.cache
295
301
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/9P/9PuC6T_9m5erL83YluOyZQAYoi36aJ4Cywf_rR_eQsM.cache
302
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/9T/9TjibkDb7Rx_qOlaZMKFg0Jz2_IcKvViCJR0yM_4x90.cache
296
303
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/9o/9ocUMVHpXdjkMlzBGTL6zFD-K8lTYUXN4BQAkg5leAw.cache
297
304
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Aj/Ajhzban6LAuwUeeyPtZRjqXAN27D6NfRjpz09379JL0.cache
298
305
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Au/AuLNkB4-30q8DGD9qgsc6NRZ61iuib9xRdBxoXpsZLE.cache
@@ -300,6 +307,7 @@ files:
300
307
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/BH/BHBYwQdQfDvieK4MyBEg0S9soOB3VhLlMJp8pEr1IVQ.cache
301
308
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/BZ/BZFTbx2WKr1emX9HD42u92tJZ5ZcPOPTaZAuFRfaZds.cache
302
309
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Cf/CfYdsmbCmN533oNRgPEiRwSomjkOjrGbfhwEpnIDyqs.cache
310
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Cf/cflb8FVFMu9am4L6oe5WC3Jjfwy6NqWgTmZFjkDy720.cache
303
311
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Cv/Cv5cM-jeUBxIAKVDsdA0NXtHOwVEGSMhsQ37QFmVtnw.cache
304
312
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/D-/D-eJm83S3EWv-7o6bGMK8yKkhMU1qiNrZWRJT7oLdig.cache
305
313
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/EG/EGW7-ozSDimJM_SIntQD0JgigxSRI_RO_jcv7rhl1_g.cache
@@ -309,6 +317,7 @@ files:
309
317
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/HS/hSZcshGnmj55GMcv9Kqw-oAYuKn2FVCXUS7uBljSI-E.cache
310
318
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/He/HeQIaVqaejJYeTy2pmi6Ju-FkAIpz3_Vk7oz_lqDPZc.cache
311
319
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/He/Heq7EGWLLe21xaFlL4xwO-blqIvbWdq1oxvFEBqe45s.cache
320
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Jy/JyvnDIQaRZ5MPQA8iwNwKbUTz4Ar7cLU6zeYvm_yCF0.cache
312
321
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/K4/K4Nd6EuZZW3__Lfo5TwJRoNxeUUFhTNr-btFbdTJ2fM.cache
313
322
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/K7/K7yT6Gz-yWVPJb4RmMZsnjX1Qm0AuJ1k2ybSnDJh6bg.cache
314
323
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/KP/KPR0xKatVjFQHusG_huKLzzwU6ThazLuooLCVKkC4cU.cache
@@ -321,34 +330,46 @@ files:
321
330
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/M9/M9CSo4oVvn0pVzjAcajrbSUSYMduZHz4c88kQmlyDPw.cache
322
331
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/NE/NEyAxSiarQ14KsdEQXto1ZiWKMNs25h2zn3eaC9Mpks.cache
323
332
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/NE/nEfC4Fw74DIeDlvbjcDI-DRdTaSgccdzpM5lxggEhh4.cache
333
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Nv/Nv6rIsKzBVeohA50lFJN197MeSZwR0ofTV7yV1Qfolc.cache
324
334
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/P5/P5cXqDbBZdXhw9auXDbnE0c9gvl0Wy3Urv2ie56VPrI.cache
325
335
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/P9/P9u9WZ8VQzWuP7QHfdJg9SB4woiE42OJLZpt9dJQ0oI.cache
336
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/PQ/PQ64nNEWICOVjSLLK3IcbSLEIYIh6FFSskJ9gxEoX6o.cache
337
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/PQ/PQhjFnHKO54lkCrGiPig70PYmuOUmCAchEDXsOqsZKk.cache
338
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/QK/QK13QPRFpbmGMoRr_H6ohTSYQJpun2YU6BfoGEvwgYM.cache
326
339
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/QS/QS5UAs29OwnGr9YxEvyHaDbTcIX8l0TJEgoPlEd1Yw8.cache
327
340
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/R1/R12Z3ZsimZ5zWT8uI8Z8AVH8rjNENhQNMx4i2h5YHH4.cache
341
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Rp/RpSaOx-iNikD9PEgEWQl1JNr4FUXBSacjWKFztE_UHE.cache
328
342
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Sh/Shgu3scj8zwHhIDTZIQnqvpN_KB-6-0PPe-LMOgnK-o.cache
329
343
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/T1/T1CWqKT92Y7N2DJ0fWdOHmdWwOM_I5avygk_J_zp8jE.cache
330
344
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/T8/T8uhUTs3wHA1_oBmYr2gYuO48kqIrc-laTP4fM6huro.cache
331
345
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/T8/t8Ootbl3_8yELdvGpR_tldZr6r7Na_9votxNnE_rSzU.cache
332
346
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/TG/TGktiKZi3-JOKXoaR4ij33RAbUk4JkZIjmedBCCwiLI.cache
347
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/TH/THy8omBn1UK7XIeTAqF9vof4rHt_29hN1c47oOtV1pg.cache
333
348
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/TM/TMym8kpkprzXzQlJ_75parHf8xTayS17_BL1f6ZNcrY.cache
334
349
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/TW/TWPrCwyOnXGFLNUBmLQkXD2EUcanAiFU0cggzRmf1k4.cache
350
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/U3/U3J8VIOqOsxd4mz_QE7do7lwjgaOs17WuXHHB_U7JX4.cache
335
351
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/VK/VKBDqBK2QhBWjz0oWHoIKvlHcDviz7YtRDZuaIoQwds.cache
336
352
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/VL/VLM3xPfFt-Tt9oMJMFz_zrX-MP0HK90_-YXmfURvCAw.cache
353
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/VQ/VQOPLQhd-oOHDHPcXHXEx7AKb9_QMqgMHP-sa-QCG1E.cache
337
354
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wm/WmrSBqNUcqcq-yDWZHnfTRUHUwxl7uf0w6M3xQVEFYQ.cache
338
355
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wm/WmrXHSRkn1EieY9IAHwmbDviO7dz5CgovJPzgasfwWU.cache
339
356
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wt/WtYRsRMB_DrVV_Gi4_5IkyqDfhyzzkUcdiUTrvHRvkU.cache
340
357
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Yh/YhZLl6J6fkftbGsVIMTSbPSb__trlGCI4fXlstUdSzg.cache
341
358
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Yu/Yu7bGBfcSxasDPdLGC_2Um0047MLgwpOgG3qu4k8IuI.cache
359
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Z9/Z98OlWQ5yjVk3HyW31BKb0htp-JZuXhQob92lbYzamM.cache
342
360
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/ZV/ZV09r_IOeXLQ297xQZFjI7h2bcHrB2Hdj29s7daojxM.cache
343
361
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/_4/_41bZMlQ06TQQbNiiItBFrfs88rDSVO8leJ0uM3GSvo.cache
362
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/_J/_JtbBiIeaSTrLweialnFRASDaA7ogDa9e3WP4MZxQgg.cache
344
363
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/_s/_s5Fduhay-KZweDpLAREAU96Ftk0HDnr2I8_1WwFX5U.cache
345
364
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/aS/aScajB7oBE012xDn9_gd9edb4K1Ddlk8LsdASxtQGvc.cache
346
365
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/bL/bLL9uo9ZOT6-Q7wX3Vv74wTzkGSNKZ8MfHJfJrmokIc.cache
347
366
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache
348
367
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/cb/cbZWx00ZHhFf-WssvAJsikDn8QbHrAqblCfY70Js0wk.cache
368
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/cd/cdzOcklPNdKBoW6cnzpmlq5UdUYrpXaCvlncIxIAa-I.cache
349
369
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/cg/cglBpnkDLMVSUwS4au_VuW8Sej86DM6t1HYFSAGbJK4.cache
350
370
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/ck/ckoOZxkYgA5OrM5q4GUfCzajBAA3x3zleIGLdum4uss.cache
351
371
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/dO/dOql9xhr4Lgkyjq8ZwHhoDqBACeRU4QfnTl-SO6jCeQ.cache
372
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/dY/dYE9sYKw7z5dY6zUrdv_jJrylshWFMf1GFwuXHmXlzE.cache
352
373
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/dY/dYKLDblkJ75KeT2bBp4wDhouf_GNUEib6H5fK2oerYc.cache
353
374
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/eb/ebkmmikvKhG_r6DRQcl9_5zL7fStuai39k57irsXdbo.cache
354
375
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/fZ/fZYNZx6pFZsBv2Bh8NEWuIRs07H0GZiwnL5wQN95H3A.cache
@@ -356,6 +377,7 @@ files:
356
377
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/fj/fjJ2E5O-02yNbRNQJfFjvbkM3XlECYmIkiP9k8mbiV8.cache
357
378
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/fm/fmrt_4gl_uXIMahegXZJLrGtL4fCcp0d8nRjDkfk_M4.cache
358
379
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/gX/gXLPmgpkjBAIKV-uU164g4rTmprLZFYDJBp8VdaBEwc.cache
380
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/g_/g_PE6B0npZ_BLO1zmkdAryZ3d6iWJSjmgjXdB0ZzxJo.cache
359
381
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/ib/ibcTM9h6eJ8yD_joHHcw8vyzHfXpnLPitU0s2AYgAMo.cache
360
382
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/j3/j32PoOiJV8KwBubew_gO9e1gM3lQSjdbN4ORb28GbbI.cache
361
383
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/kn/knvX2TzIphHlz5tl5mKN4OfxdU92z9yPxnO6Zy1W_HQ.cache
@@ -372,17 +394,25 @@ files:
372
394
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/on/onNQKni5MvrvW-DmS0NO4G9oNQsf-4q0HdYKBOH1hiY.cache
373
395
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/pA/pAjgsxbmtSdRX3Y5qbG9GS1Nlrpb8PtDHnCFAVR1i-Q.cache
374
396
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/pB/pBznT4fsulOc5jXDZqdUyVZfkA2oGNkUBqlqjOSsR1o.cache
397
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/qD/Qdyo6BYiRTijCZGqjSBq3JItniOo20TM2fAA4n6O-YE.cache
375
398
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/qD/qDRSCLaHcvxLwISHmPrafnvHcm6L-eoNDm12Bp3q0Us.cache
399
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/r3/r3qtcnigoyejsNKbLDSwuGLWtmuFr7I7J5CgVRxw0F0.cache
400
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/sD/sDCGBPwV6noJmb0tQF8pLiXE9fL_5aazD7f7QdY0OY4.cache
401
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/sj/sjteVBlXgHg81qlSz7RRjeezBmfhr-mWBZca8J-wlms.cache
376
402
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/t6/t62Kmswg7sdQR7O8V51OICUZgGZs620L542Cmes09Ro.cache
377
403
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/td/tdM4lJuPiMMWmPw53ppvaWgz-xrvbx34t_wkfk4Zoa4.cache
404
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/tl/tlBv3MYJiVXQzday1XNB-r4kMfHOAdfdqFqNIp-JRFs.cache
405
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/u5/u5DlcffGA6QZ9iYe3eC_kPpuYdbSw754SbJM-8GSaYA.cache
378
406
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/u6/u6w_GBTD5gGXrW7KFso2KK8rrxTutEveddQ3Va8ovsI.cache
379
407
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/u8/u8A-6cdL8MRr7-2-Xgm21Mi4qahkM-qgsI4mq4qWS98.cache
380
408
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/uv/uv_qUJhvQT4Fsu_qA0M36MV0N9LWIqJ12j3CEiuRMlA.cache
409
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/vi/viPp12F8U4LcbUm_qUga87pk_xpubFbuyC7Ut_CPPo0.cache
381
410
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/wJ/wJ1JVo4EyfbsPxwicM_Q2WSVjo_sSq_12JV0LhBw04E.cache
382
411
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache
383
412
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/x9/x92Hs-x3qSBWnMbRCfZ3moYHlB8BN6l6bH5NMH1N-TM.cache
384
413
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/xQ/xQfWQEAcrLJRlqus7Z7ijD4cdQQGUGGviJnk-DERW6U.cache
385
414
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/xQ/xqAkG70fG6ZwaKoEFukhWq5vmSkE0qqwhtUm6J3if2c.cache
415
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/xQ/xqZ-eoq9eoAn2ZSThyKvxOBZn8X8DQe61k2rp0RDGsU.cache
386
416
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/yO/yOZ2Ba7Jpotgr3YdWqfI3Cn0RYGwu5JyUNBQgzzwuNs.cache
387
417
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/z2/z2UBDqCp2Md5BQvvfpsfKJatSRe3R7NCNvRBa4c6LrE.cache
388
418
  - spec/pugin/engine_spec.rb
@@ -391,6 +421,8 @@ files:
391
421
  - spec/views/pugin/cards/_person-list.html.haml_spec.rb
392
422
  - spec/views/pugin/components/_footer.html.haml_spec.rb
393
423
  - spec/views/pugin/components/_header.html.haml_spec.rb
424
+ - spec/views/pugin/components/_navigation-letter.html.haml_spec.rb
425
+ - spec/views/pugin/components/_navigation-main.haml_spec.rb
394
426
  - spec/views/pugin/components/_status.html.haml_spec.rb
395
427
  - spec/views/pugin/layouts/pugin.html.haml_spec.rb
396
428
  homepage: https://github.com/ukparliament/pugin
@@ -413,7 +445,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
413
445
  version: '0'
414
446
  requirements: []
415
447
  rubyforge_project:
416
- rubygems_version: 2.6.11
448
+ rubygems_version: 2.6.12
417
449
  signing_key:
418
450
  specification_version: 4
419
451
  summary: Pugin is a component-based pattern design library for UK Parliament microservices.
@@ -474,6 +506,8 @@ test_files:
474
506
  - spec/dummy/public/favicon.ico
475
507
  - spec/dummy/Rakefile
476
508
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/-B/-BarCDwZx1XMD5_7t8boZyKBI7oXG1UDfsF42IhEF_A.cache
509
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/-G/-GyAYJjar0g5CPnFCUhwOOfXQe2IqnrWh1aONZ0nmA0.cache
510
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/-h/-hJnTi9-PvZ8jH8d7rELtQUT2NYS5mzryuQTOHeg8fI.cache
477
511
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/-O/-ORYsfuI6rMcvbATG61L5nNf3wQpIU3feLAZSJ3VLYA.cache
478
512
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/0R/0R-MHkLMDkeVOzLHuPxcV7RRuYJnv5P9IFRr1j5Cv1Q.cache
479
513
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/10/10dSQLkbAJiDMgUt19dMYelhEoVg8J_iBI4jN91XzuI.cache
@@ -482,11 +516,14 @@ test_files:
482
516
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/2u/2uJqLfb-VrSQT7pESA_rCZjvujI93s4tEHxULEDbltk.cache
483
517
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/3I/3I4d164bFPDGOYfPD4jWX_3Aa53q_RvhONSjaFRkMeg.cache
484
518
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/3n/3n_vB4jy-Rh6WjC6_aU0xH1rjbm5wMVd3vN5quVZ-VE.cache
519
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/40/40nhJiELTyR97DHGs6M0qpi7z3TY2gmlJSyMIa7LN7c.cache
520
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/4_/4_JQn8ulT9tB_tca1taRk-JejZarO7CMYd6plYIMEpo.cache
485
521
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4G/4GGeHCylPM6iDbtK68ezJS3F0AFQcU8CoD4SnH95veM.cache
486
522
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4I/4Iyuu6jSarNZ_GM0_xn-zz7e6b9xH65pAy18fMzqcZ4.cache
487
523
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4W/4WHTyjRbgkuWZSfAMqGfUvFeH6e6lluBpfUWtee7Kz4.cache
488
524
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4z/4zORIlwLT6as3voof3l_OcD2-veguQEslZIuzhrl2cU.cache
489
525
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/56/56-T-hZRNMgNk4Uh3WzZ1eWLTqvROiRwjq_aOdzqs0g.cache
526
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5a/5a5wEAyFzyfsBAfrRNTGO3ltfh3N5eLiJYjFbUubBYI.cache
490
527
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/5j/5jHCod8lw0AgBjLvlo9ZxTHpQnwOD_xvTDVsS-9TUbM.cache
491
528
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/5v/5vQY7dtUL8XwgiDsAoKrGI-unFjrB8HDPwvIIy6Cosg.cache
492
529
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/6L/6LRCEnxg0Mg0xaCUE7KuERr1q8Ah3UVv0pmxHcQ0Sj0.cache
@@ -501,7 +538,9 @@ test_files:
501
538
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/9H/9H8vBTix9diMBKXu1rDOqCJFG5ZBICxq8xmwmor6Dn0.cache
502
539
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/9o/9ocUMVHpXdjkMlzBGTL6zFD-K8lTYUXN4BQAkg5leAw.cache
503
540
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/9P/9PuC6T_9m5erL83YluOyZQAYoi36aJ4Cywf_rR_eQsM.cache
541
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/9T/9TjibkDb7Rx_qOlaZMKFg0Jz2_IcKvViCJR0yM_4x90.cache
504
542
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/_4/_41bZMlQ06TQQbNiiItBFrfs88rDSVO8leJ0uM3GSvo.cache
543
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/_J/_JtbBiIeaSTrLweialnFRASDaA7ogDa9e3WP4MZxQgg.cache
505
544
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/_s/_s5Fduhay-KZweDpLAREAU96Ftk0HDnr2I8_1WwFX5U.cache
506
545
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Aj/Ajhzban6LAuwUeeyPtZRjqXAN27D6NfRjpz09379JL0.cache
507
546
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/aS/aScajB7oBE012xDn9_gd9edb4K1Ddlk8LsdASxtQGvc.cache
@@ -512,12 +551,15 @@ test_files:
512
551
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/bL/bLL9uo9ZOT6-Q7wX3Vv74wTzkGSNKZ8MfHJfJrmokIc.cache
513
552
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/BZ/BZFTbx2WKr1emX9HD42u92tJZ5ZcPOPTaZAuFRfaZds.cache
514
553
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/cb/cbZWx00ZHhFf-WssvAJsikDn8QbHrAqblCfY70Js0wk.cache
554
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/cd/cdzOcklPNdKBoW6cnzpmlq5UdUYrpXaCvlncIxIAa-I.cache
555
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Cf/cflb8FVFMu9am4L6oe5WC3Jjfwy6NqWgTmZFjkDy720.cache
515
556
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Cf/CfYdsmbCmN533oNRgPEiRwSomjkOjrGbfhwEpnIDyqs.cache
516
557
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/cg/cglBpnkDLMVSUwS4au_VuW8Sej86DM6t1HYFSAGbJK4.cache
517
558
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/ck/ckoOZxkYgA5OrM5q4GUfCzajBAA3x3zleIGLdum4uss.cache
518
559
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Cv/Cv5cM-jeUBxIAKVDsdA0NXtHOwVEGSMhsQ37QFmVtnw.cache
519
560
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/D-/D-eJm83S3EWv-7o6bGMK8yKkhMU1qiNrZWRJT7oLdig.cache
520
561
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/dO/dOql9xhr4Lgkyjq8ZwHhoDqBACeRU4QfnTl-SO6jCeQ.cache
562
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/dY/dYE9sYKw7z5dY6zUrdv_jJrylshWFMf1GFwuXHmXlzE.cache
521
563
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/dY/dYKLDblkJ75KeT2bBp4wDhouf_GNUEib6H5fK2oerYc.cache
522
564
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/eb/ebkmmikvKhG_r6DRQcl9_5zL7fStuai39k57irsXdbo.cache
523
565
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/EG/EGW7-ozSDimJM_SIntQD0JgigxSRI_RO_jcv7rhl1_g.cache
@@ -526,6 +568,7 @@ test_files:
526
568
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/fj/fjJ2E5O-02yNbRNQJfFjvbkM3XlECYmIkiP9k8mbiV8.cache
527
569
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/fm/fmrt_4gl_uXIMahegXZJLrGtL4fCcp0d8nRjDkfk_M4.cache
528
570
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/fZ/fZYNZx6pFZsBv2Bh8NEWuIRs07H0GZiwnL5wQN95H3A.cache
571
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/g_/g_PE6B0npZ_BLO1zmkdAryZ3d6iWJSjmgjXdB0ZzxJo.cache
529
572
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/GE/GEgXmh_Ipr0Q4v4xxgXBAj1IqaC6Pk5OxPeWKRfeHys.cache
530
573
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/gX/gXLPmgpkjBAIKV-uU164g4rTmprLZFYDJBp8VdaBEwc.cache
531
574
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/He/Heq7EGWLLe21xaFlL4xwO-blqIvbWdq1oxvFEBqe45s.cache
@@ -534,6 +577,7 @@ test_files:
534
577
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/HS/hSZcshGnmj55GMcv9Kqw-oAYuKn2FVCXUS7uBljSI-E.cache
535
578
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/ib/ibcTM9h6eJ8yD_joHHcw8vyzHfXpnLPitU0s2AYgAMo.cache
536
579
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/j3/j32PoOiJV8KwBubew_gO9e1gM3lQSjdbN4ORb28GbbI.cache
580
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Jy/JyvnDIQaRZ5MPQA8iwNwKbUTz4Ar7cLU6zeYvm_yCF0.cache
537
581
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/K4/K4Nd6EuZZW3__Lfo5TwJRoNxeUUFhTNr-btFbdTJ2fM.cache
538
582
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/K7/K7yT6Gz-yWVPJb4RmMZsnjX1Qm0AuJ1k2ybSnDJh6bg.cache
539
583
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/kn/knvX2TzIphHlz5tl5mKN4OfxdU92z9yPxnO6Zy1W_HQ.cache
@@ -556,29 +600,44 @@ test_files:
556
600
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/nN/nNQT24hXl1Uau_WCBNOXWEJxTaC0RHZ14MDKasd3Z9I.cache
557
601
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/nt/ntomlOvoaQ4fU0GAkqjoFPQH1NJ61IatgAr_h5cVnLA.cache
558
602
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/nU/nUWLj4QE-iX2K2yxPN7FwlQY3gGCeJIRH44-Ramp-Mw.cache
603
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Nv/Nv6rIsKzBVeohA50lFJN197MeSZwR0ofTV7yV1Qfolc.cache
559
604
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
560
605
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/on/onNQKni5MvrvW-DmS0NO4G9oNQsf-4q0HdYKBOH1hiY.cache
561
606
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/P5/P5cXqDbBZdXhw9auXDbnE0c9gvl0Wy3Urv2ie56VPrI.cache
562
607
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/P9/P9u9WZ8VQzWuP7QHfdJg9SB4woiE42OJLZpt9dJQ0oI.cache
563
608
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/pA/pAjgsxbmtSdRX3Y5qbG9GS1Nlrpb8PtDHnCFAVR1i-Q.cache
564
609
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/pB/pBznT4fsulOc5jXDZqdUyVZfkA2oGNkUBqlqjOSsR1o.cache
610
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/PQ/PQ64nNEWICOVjSLLK3IcbSLEIYIh6FFSskJ9gxEoX6o.cache
611
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/PQ/PQhjFnHKO54lkCrGiPig70PYmuOUmCAchEDXsOqsZKk.cache
565
612
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/qD/qDRSCLaHcvxLwISHmPrafnvHcm6L-eoNDm12Bp3q0Us.cache
613
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/qD/Qdyo6BYiRTijCZGqjSBq3JItniOo20TM2fAA4n6O-YE.cache
614
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/QK/QK13QPRFpbmGMoRr_H6ohTSYQJpun2YU6BfoGEvwgYM.cache
566
615
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/QS/QS5UAs29OwnGr9YxEvyHaDbTcIX8l0TJEgoPlEd1Yw8.cache
567
616
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/R1/R12Z3ZsimZ5zWT8uI8Z8AVH8rjNENhQNMx4i2h5YHH4.cache
617
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/r3/r3qtcnigoyejsNKbLDSwuGLWtmuFr7I7J5CgVRxw0F0.cache
618
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Rp/RpSaOx-iNikD9PEgEWQl1JNr4FUXBSacjWKFztE_UHE.cache
619
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/sD/sDCGBPwV6noJmb0tQF8pLiXE9fL_5aazD7f7QdY0OY4.cache
568
620
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Sh/Shgu3scj8zwHhIDTZIQnqvpN_KB-6-0PPe-LMOgnK-o.cache
621
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/sj/sjteVBlXgHg81qlSz7RRjeezBmfhr-mWBZca8J-wlms.cache
569
622
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/T1/T1CWqKT92Y7N2DJ0fWdOHmdWwOM_I5avygk_J_zp8jE.cache
570
623
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/t6/t62Kmswg7sdQR7O8V51OICUZgGZs620L542Cmes09Ro.cache
571
624
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/T8/t8Ootbl3_8yELdvGpR_tldZr6r7Na_9votxNnE_rSzU.cache
572
625
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/T8/T8uhUTs3wHA1_oBmYr2gYuO48kqIrc-laTP4fM6huro.cache
573
626
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/td/tdM4lJuPiMMWmPw53ppvaWgz-xrvbx34t_wkfk4Zoa4.cache
574
627
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/TG/TGktiKZi3-JOKXoaR4ij33RAbUk4JkZIjmedBCCwiLI.cache
628
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/TH/THy8omBn1UK7XIeTAqF9vof4rHt_29hN1c47oOtV1pg.cache
629
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/tl/tlBv3MYJiVXQzday1XNB-r4kMfHOAdfdqFqNIp-JRFs.cache
575
630
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/TM/TMym8kpkprzXzQlJ_75parHf8xTayS17_BL1f6ZNcrY.cache
576
631
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/TW/TWPrCwyOnXGFLNUBmLQkXD2EUcanAiFU0cggzRmf1k4.cache
632
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/U3/U3J8VIOqOsxd4mz_QE7do7lwjgaOs17WuXHHB_U7JX4.cache
633
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/u5/u5DlcffGA6QZ9iYe3eC_kPpuYdbSw754SbJM-8GSaYA.cache
577
634
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/u6/u6w_GBTD5gGXrW7KFso2KK8rrxTutEveddQ3Va8ovsI.cache
578
635
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/u8/u8A-6cdL8MRr7-2-Xgm21Mi4qahkM-qgsI4mq4qWS98.cache
579
636
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/uv/uv_qUJhvQT4Fsu_qA0M36MV0N9LWIqJ12j3CEiuRMlA.cache
637
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/vi/viPp12F8U4LcbUm_qUga87pk_xpubFbuyC7Ut_CPPo0.cache
580
638
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/VK/VKBDqBK2QhBWjz0oWHoIKvlHcDviz7YtRDZuaIoQwds.cache
581
639
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/VL/VLM3xPfFt-Tt9oMJMFz_zrX-MP0HK90_-YXmfURvCAw.cache
640
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/VQ/VQOPLQhd-oOHDHPcXHXEx7AKb9_QMqgMHP-sa-QCG1E.cache
582
641
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/wJ/wJ1JVo4EyfbsPxwicM_Q2WSVjo_sSq_12JV0LhBw04E.cache
583
642
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wm/WmrSBqNUcqcq-yDWZHnfTRUHUwxl7uf0w6M3xQVEFYQ.cache
584
643
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wm/WmrXHSRkn1EieY9IAHwmbDviO7dz5CgovJPzgasfwWU.cache
@@ -587,10 +646,12 @@ test_files:
587
646
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/x9/x92Hs-x3qSBWnMbRCfZ3moYHlB8BN6l6bH5NMH1N-TM.cache
588
647
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/xQ/xqAkG70fG6ZwaKoEFukhWq5vmSkE0qqwhtUm6J3if2c.cache
589
648
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/xQ/xQfWQEAcrLJRlqus7Z7ijD4cdQQGUGGviJnk-DERW6U.cache
649
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/xQ/xqZ-eoq9eoAn2ZSThyKvxOBZn8X8DQe61k2rp0RDGsU.cache
590
650
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Yh/YhZLl6J6fkftbGsVIMTSbPSb__trlGCI4fXlstUdSzg.cache
591
651
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/yO/yOZ2Ba7Jpotgr3YdWqfI3Cn0RYGwu5JyUNBQgzzwuNs.cache
592
652
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Yu/Yu7bGBfcSxasDPdLGC_2Um0047MLgwpOgG3qu4k8IuI.cache
593
653
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/z2/z2UBDqCp2Md5BQvvfpsfKJatSRe3R7NCNvRBa4c6LrE.cache
654
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Z9/Z98OlWQ5yjVk3HyW31BKb0htp-JZuXhQob92lbYzamM.cache
594
655
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/ZV/ZV09r_IOeXLQ297xQZFjI7h2bcHrB2Hdj29s7daojxM.cache
595
656
  - spec/pugin/engine_spec.rb
596
657
  - spec/pugin_spec.rb
@@ -598,5 +659,7 @@ test_files:
598
659
  - spec/views/pugin/cards/_person-list.html.haml_spec.rb
599
660
  - spec/views/pugin/components/_footer.html.haml_spec.rb
600
661
  - spec/views/pugin/components/_header.html.haml_spec.rb
662
+ - spec/views/pugin/components/_navigation-letter.html.haml_spec.rb
663
+ - spec/views/pugin/components/_navigation-main.haml_spec.rb
601
664
  - spec/views/pugin/components/_status.html.haml_spec.rb
602
665
  - spec/views/pugin/layouts/pugin.html.haml_spec.rb
@@ -1,12 +0,0 @@
1
- %p.lead
2
- A to Z -
3
- = params[:letter].present? ? "#{I18n.t('pugin.components.letter-navigation.showing_results')} #{params[:letter].capitalize}" : "#{I18n.t('pugin.components.letter-navigation.select_letter')}"
4
- %nav{ aria:{ label: I18n.t('pugin.components.letter-navigation.aria_label') } }
5
- %ul.navigation
6
- - ('a'..'z').each do |letter|
7
- %li{ data: { letter: letter }, class: ('active' if (params[:letter] == letter)) }
8
- - unless letter == params[:letter]
9
- = navigation_link(route_symbol: route_symbol, letter: letter, primary_id: local_assigns.fetch(:primary_id, nil), secondary_id: local_assigns.fetch(:secondary_id, nil))
10
- - else
11
- = letter
12
-