metadata_presenter 2.18.5 → 2.18.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d095e72ae5ace4da89c15e9fe4ec82f4436b55729f8e34ecb70ac0e0dd2ce4b0
4
- data.tar.gz: d88608ab1a4ea5867744fa6ed1ad0a04b4aae330db4a4f215aea2b436c67667b
3
+ metadata.gz: 1cda2ddb44cfc7b96722cff6acfe71ee950444f79887e2992c90a8e5378cee18
4
+ data.tar.gz: cb6255fa36cd1885a52a17895e4f09eb96ff1776a574a75aba4e5db374133529
5
5
  SHA512:
6
- metadata.gz: 3d4186100c3c167dd89d58c63fe5367e0d76549af68544075b49bc5b96229278e9fb45bc22d1efc096090ad1b1f49e69b90b5485347263369d04c7aceb1d9cf9
7
- data.tar.gz: dfc74a78d0652519086729b954374d0fceb9396fe20d1ea1195f9062f1e983b3e6163dabf1a0273b5fbb976ff83d8581fadf43438d862f20296b13cd78163178
6
+ metadata.gz: 57f991e50056dbb14a621fb8bb43676a68c4af6fe1d6f309f202bc69530dd85f847200e692214c93b152507eb0234995a76703c7ec5d25bcd4aeb6e22186aff8
7
+ data.tar.gz: c23c04f42abe30539adb502113e13d7fc971b952ca905196e45542debec80e84471457cb62bc749a0159e461291fb2477f9f4bab65f5e81d936f5294676bc34d
@@ -131,7 +131,7 @@ module MetadataPresenter
131
131
  end
132
132
 
133
133
  def editor_preview?
134
- URI(request.original_url).path.split('/').last == 'preview'
134
+ URI(request.original_url).path.split('/').include?('preview')
135
135
  end
136
136
  end
137
137
  end
@@ -1,67 +1,7 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- .rails-default-error-page {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
1
+ <div>
2
+ <h1>Page not found</h1>
3
+ <p>If you typed the web address, check it is correct.</p>
4
+ <p>If you pasted the web address, check you copied the entire address.</p>
5
+ <p>If the problem persists, <a href="https://moj-forms.service.justice.gov.uk/contact/">contact the MoJ Forms team.</a></p>
6
+ </div>
14
7
 
15
- .rails-default-error-page div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- .rails-default-error-page div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- .rails-default-error-page h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- .rails-default-error-page div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body class="rails-default-error-page">
58
- <!-- This file lives in public/404.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The page you were looking for doesn't exist.</h1>
62
- <p>You may have mistyped the address or the page may have moved.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,3 +1,3 @@
1
1
  module MetadataPresenter
2
- VERSION = '2.18.5'.freeze
2
+ VERSION = '2.18.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metadata_presenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.18.5
4
+ version: 2.18.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - MoJ Forms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-27 00:00:00.000000000 Z
11
+ date: 2023-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_design_system_formbuilder