localizable_routes 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +74 -0
- data/Rakefile +35 -0
- data/lib/localizable_routes/extensions/action_dispatch/mapper.rb +84 -0
- data/lib/localizable_routes/extensions/action_dispatch/named_route_collection.rb +43 -0
- data/lib/localizable_routes/railtie.rb +14 -0
- data/lib/localizable_routes/version.rb +5 -0
- data/lib/localizable_routes.rb +6 -0
- data/test/dummy/Rakefile +5 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/namespace/pages_controller.rb +6 -0
- data/test/dummy/app/controllers/namespace/resources_controller.rb +6 -0
- data/test/dummy/app/controllers/nesteds_controller.rb +6 -0
- data/test/dummy/app/controllers/pages_controller.rb +12 -0
- data/test/dummy/app/controllers/resources_controller.rb +6 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config/application.rb +27 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +38 -0
- data/test/dummy/config/environments/production.rb +76 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/secret_token.rb +3 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
- data/test/dummy/config/locales/en.yml +12 -0
- data/test/dummy/config/locales/es.yml +12 -0
- data/test/dummy/config/routes.rb +40 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/log/development.log +0 -0
- data/test/dummy/log/test.log +381 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/helpers_test.rb +185 -0
- data/test/routes_test.rb +185 -0
- data/test/support/i18n_support.rb +17 -0
- data/test/test_helper.rb +12 -0
- metadata +162 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
|
3
|
+
concern :routes do
|
4
|
+
root to: 'pages#index'
|
5
|
+
namespace :namespace do
|
6
|
+
get 'nested', to: 'pages#nested', as: :nested
|
7
|
+
resources :resources
|
8
|
+
end
|
9
|
+
get 'simple', to: 'pages#simple', as: :simple
|
10
|
+
get 'complex/:p1/:p2', to: 'pages#complex', as: :complex
|
11
|
+
resources :resources do
|
12
|
+
member do
|
13
|
+
get 'member'
|
14
|
+
end
|
15
|
+
collection do
|
16
|
+
get 'collection'
|
17
|
+
end
|
18
|
+
resources :nesteds
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
localized strategy: :param, locales: %i(es en) do
|
23
|
+
scope as: :param do
|
24
|
+
concerns :routes
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
localized strategy: :subdomain, locales: { 'es' => :es, 'en' => :en } do
|
29
|
+
scope as: :subdomain do
|
30
|
+
concerns :routes
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
localized strategy: :domain, locales: { 'test.es' => :es, 'test.en' => :en } do
|
35
|
+
scope as: :domain do
|
36
|
+
concerns :routes
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 921ea9f25943669d3a4b0a6c8762cb6a97a00c42732c84b3a4c80900d4f2be79081cad03e0ec8d5d0f2f293874b2bbd04c1444e7a6d6b9147de8f4ffb3acff11
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 0e085a62fbfd58069441e0eb7dd8c3d0a7035017443181a5fba2c04041a03f8d0d427216ac56a51da79125898d125bb9fb8badb48404919fe3188eb309231570
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV['SECRET_KEY_BASE'] %>
|
File without changes
|
@@ -0,0 +1,381 @@
|
|
1
|
+
-------------------------
|
2
|
+
HelpersTest: test_helpers
|
3
|
+
-------------------------
|
4
|
+
-----------------------
|
5
|
+
RoutesTest: test_routes
|
6
|
+
-----------------------
|
7
|
+
-----------------------
|
8
|
+
RoutesTest: test_routes
|
9
|
+
-----------------------
|
10
|
+
-------------------------
|
11
|
+
HelpersTest: test_helpers
|
12
|
+
-------------------------
|
13
|
+
-------------------------
|
14
|
+
HelpersTest: test_helpers
|
15
|
+
-------------------------
|
16
|
+
-----------------------
|
17
|
+
RoutesTest: test_routes
|
18
|
+
-----------------------
|
19
|
+
-------------------------
|
20
|
+
HelpersTest: test_helpers
|
21
|
+
-------------------------
|
22
|
+
-----------------------
|
23
|
+
RoutesTest: test_routes
|
24
|
+
-----------------------
|
25
|
+
-------------------------
|
26
|
+
HelpersTest: test_helpers
|
27
|
+
-------------------------
|
28
|
+
-----------------------
|
29
|
+
RoutesTest: test_routes
|
30
|
+
-----------------------
|
31
|
+
-------------------------
|
32
|
+
HelpersTest: test_helpers
|
33
|
+
-------------------------
|
34
|
+
-----------------------
|
35
|
+
RoutesTest: test_routes
|
36
|
+
-----------------------
|
37
|
+
-------------------------
|
38
|
+
HelpersTest: test_helpers
|
39
|
+
-------------------------
|
40
|
+
-----------------------
|
41
|
+
RoutesTest: test_routes
|
42
|
+
-----------------------
|
43
|
+
-----------------------------
|
44
|
+
RoutesTest: test_param_routes
|
45
|
+
-----------------------------
|
46
|
+
-------------------------
|
47
|
+
HelpersTest: test_helpers
|
48
|
+
-------------------------
|
49
|
+
-------------------------
|
50
|
+
HelpersTest: test_helpers
|
51
|
+
-------------------------
|
52
|
+
-----------------------------
|
53
|
+
RoutesTest: test_param_routes
|
54
|
+
-----------------------------
|
55
|
+
-------------------------
|
56
|
+
HelpersTest: test_helpers
|
57
|
+
-------------------------
|
58
|
+
-----------------------------
|
59
|
+
RoutesTest: test_param_routes
|
60
|
+
-----------------------------
|
61
|
+
-----------------------------
|
62
|
+
RoutesTest: test_param_routes
|
63
|
+
-----------------------------
|
64
|
+
-------------------------
|
65
|
+
HelpersTest: test_helpers
|
66
|
+
-------------------------
|
67
|
+
-------------------------
|
68
|
+
HelpersTest: test_helpers
|
69
|
+
-------------------------
|
70
|
+
-----------------------------
|
71
|
+
RoutesTest: test_param_routes
|
72
|
+
-----------------------------
|
73
|
+
-------------------------
|
74
|
+
HelpersTest: test_helpers
|
75
|
+
-------------------------
|
76
|
+
-----------------------------
|
77
|
+
RoutesTest: test_param_routes
|
78
|
+
-----------------------------
|
79
|
+
-------------------------
|
80
|
+
HelpersTest: test_helpers
|
81
|
+
-------------------------
|
82
|
+
-----------------------------
|
83
|
+
RoutesTest: test_param_routes
|
84
|
+
-----------------------------
|
85
|
+
-------------------------
|
86
|
+
HelpersTest: test_helpers
|
87
|
+
-------------------------
|
88
|
+
-----------------------------
|
89
|
+
RoutesTest: test_param_routes
|
90
|
+
-----------------------------
|
91
|
+
-----------------------------
|
92
|
+
RoutesTest: test_param_routes
|
93
|
+
-----------------------------
|
94
|
+
-------------------------
|
95
|
+
HelpersTest: test_helpers
|
96
|
+
-------------------------
|
97
|
+
-----------------------------
|
98
|
+
RoutesTest: test_param_routes
|
99
|
+
-----------------------------
|
100
|
+
-------------------------
|
101
|
+
HelpersTest: test_helpers
|
102
|
+
-------------------------
|
103
|
+
-------------------------
|
104
|
+
HelpersTest: test_helpers
|
105
|
+
-------------------------
|
106
|
+
-------------------------
|
107
|
+
HelpersTest: test_helpers
|
108
|
+
-------------------------
|
109
|
+
-----------------------------
|
110
|
+
RoutesTest: test_param_routes
|
111
|
+
-----------------------------
|
112
|
+
-------------------------
|
113
|
+
HelpersTest: test_helpers
|
114
|
+
-------------------------
|
115
|
+
-----------------------------
|
116
|
+
RoutesTest: test_param_routes
|
117
|
+
-----------------------------
|
118
|
+
-------------------------
|
119
|
+
HelpersTest: test_helpers
|
120
|
+
-------------------------
|
121
|
+
-----------------------------
|
122
|
+
RoutesTest: test_param_routes
|
123
|
+
-----------------------------
|
124
|
+
-------------------------
|
125
|
+
HelpersTest: test_helpers
|
126
|
+
-------------------------
|
127
|
+
-----------------------------
|
128
|
+
RoutesTest: test_param_routes
|
129
|
+
-----------------------------
|
130
|
+
-------------------------
|
131
|
+
HelpersTest: test_helpers
|
132
|
+
-------------------------
|
133
|
+
-----------------------------
|
134
|
+
RoutesTest: test_param_routes
|
135
|
+
-----------------------------
|
136
|
+
-------------------------
|
137
|
+
HelpersTest: test_helpers
|
138
|
+
-------------------------
|
139
|
+
-----------------------------
|
140
|
+
RoutesTest: test_param_routes
|
141
|
+
-----------------------------
|
142
|
+
-------------------------
|
143
|
+
HelpersTest: test_helpers
|
144
|
+
-------------------------
|
145
|
+
-------------------------
|
146
|
+
HelpersTest: test_helpers
|
147
|
+
-------------------------
|
148
|
+
-----------------------------
|
149
|
+
RoutesTest: test_param_routes
|
150
|
+
-----------------------------
|
151
|
+
-------------------------
|
152
|
+
HelpersTest: test_helpers
|
153
|
+
-------------------------
|
154
|
+
-----------------------------
|
155
|
+
RoutesTest: test_param_routes
|
156
|
+
-----------------------------
|
157
|
+
-----------------------------
|
158
|
+
RoutesTest: test_param_routes
|
159
|
+
-----------------------------
|
160
|
+
-------------------------
|
161
|
+
HelpersTest: test_helpers
|
162
|
+
-------------------------
|
163
|
+
-------------------------
|
164
|
+
HelpersTest: test_helpers
|
165
|
+
-------------------------
|
166
|
+
-----------------------------
|
167
|
+
RoutesTest: test_param_routes
|
168
|
+
-----------------------------
|
169
|
+
-------------------------
|
170
|
+
HelpersTest: test_helpers
|
171
|
+
-------------------------
|
172
|
+
-----------------------------
|
173
|
+
RoutesTest: test_param_routes
|
174
|
+
-----------------------------
|
175
|
+
-------------------------
|
176
|
+
HelpersTest: test_helpers
|
177
|
+
-------------------------
|
178
|
+
-----------------------------
|
179
|
+
RoutesTest: test_param_routes
|
180
|
+
-----------------------------
|
181
|
+
-------------------------
|
182
|
+
HelpersTest: test_helpers
|
183
|
+
-------------------------
|
184
|
+
-----------------------------
|
185
|
+
RoutesTest: test_param_routes
|
186
|
+
-----------------------------
|
187
|
+
-------------------------
|
188
|
+
HelpersTest: test_helpers
|
189
|
+
-------------------------
|
190
|
+
-------------------------
|
191
|
+
HelpersTest: test_helpers
|
192
|
+
-------------------------
|
193
|
+
-----------------------------
|
194
|
+
RoutesTest: test_param_routes
|
195
|
+
-----------------------------
|
196
|
+
-----------------------------
|
197
|
+
RoutesTest: test_param_routes
|
198
|
+
-----------------------------
|
199
|
+
-------------------------
|
200
|
+
HelpersTest: test_helpers
|
201
|
+
-------------------------
|
202
|
+
-----------------------------
|
203
|
+
RoutesTest: test_param_routes
|
204
|
+
-----------------------------
|
205
|
+
-------------------------
|
206
|
+
HelpersTest: test_helpers
|
207
|
+
-------------------------
|
208
|
+
-----------------------------
|
209
|
+
RoutesTest: test_param_routes
|
210
|
+
-----------------------------
|
211
|
+
-------------------------
|
212
|
+
HelpersTest: test_helpers
|
213
|
+
-------------------------
|
214
|
+
-----------------------------
|
215
|
+
RoutesTest: test_param_routes
|
216
|
+
-----------------------------
|
217
|
+
-------------------------
|
218
|
+
HelpersTest: test_helpers
|
219
|
+
-------------------------
|
220
|
+
-------------------------
|
221
|
+
HelpersTest: test_helpers
|
222
|
+
-------------------------
|
223
|
+
-----------------------------
|
224
|
+
RoutesTest: test_param_routes
|
225
|
+
-----------------------------
|
226
|
+
-----------------------------
|
227
|
+
RoutesTest: test_param_routes
|
228
|
+
-----------------------------
|
229
|
+
-------------------------
|
230
|
+
HelpersTest: test_helpers
|
231
|
+
-------------------------
|
232
|
+
-------------------------
|
233
|
+
HelpersTest: test_helpers
|
234
|
+
-------------------------
|
235
|
+
-----------------------------
|
236
|
+
RoutesTest: test_param_routes
|
237
|
+
-----------------------------
|
238
|
+
-------------------------
|
239
|
+
HelpersTest: test_methods
|
240
|
+
-------------------------
|
241
|
+
-----------------------
|
242
|
+
RoutesTest: test_params
|
243
|
+
-----------------------
|
244
|
+
-------------------------
|
245
|
+
HelpersTest: test_methods
|
246
|
+
-------------------------
|
247
|
+
-----------------------
|
248
|
+
RoutesTest: test_params
|
249
|
+
-----------------------
|
250
|
+
-----------------------
|
251
|
+
RoutesTest: test_params
|
252
|
+
-----------------------
|
253
|
+
-------------------------
|
254
|
+
HelpersTest: test_methods
|
255
|
+
-------------------------
|
256
|
+
-----------------------
|
257
|
+
RoutesTest: test_params
|
258
|
+
-----------------------
|
259
|
+
-------------------------
|
260
|
+
HelpersTest: test_methods
|
261
|
+
-------------------------
|
262
|
+
-----------------------
|
263
|
+
RoutesTest: test_params
|
264
|
+
-----------------------
|
265
|
+
-------------------------
|
266
|
+
HelpersTest: test_methods
|
267
|
+
-------------------------
|
268
|
+
-----------------------
|
269
|
+
RoutesTest: test_params
|
270
|
+
-----------------------
|
271
|
+
-------------------------
|
272
|
+
HelpersTest: test_methods
|
273
|
+
-------------------------
|
274
|
+
-----------------------
|
275
|
+
RoutesTest: test_params
|
276
|
+
-----------------------
|
277
|
+
-------------------------
|
278
|
+
HelpersTest: test_methods
|
279
|
+
-------------------------
|
280
|
+
-------------------------
|
281
|
+
HelpersTest: test_methods
|
282
|
+
-------------------------
|
283
|
+
-----------------------
|
284
|
+
RoutesTest: test_params
|
285
|
+
-----------------------
|
286
|
+
-------------------------
|
287
|
+
HelpersTest: test_methods
|
288
|
+
-------------------------
|
289
|
+
-----------------------
|
290
|
+
RoutesTest: test_params
|
291
|
+
-----------------------
|
292
|
+
-------------------------
|
293
|
+
HelpersTest: test_methods
|
294
|
+
-------------------------
|
295
|
+
-----------------------
|
296
|
+
RoutesTest: test_params
|
297
|
+
-----------------------
|
298
|
+
-------------------------
|
299
|
+
HelpersTest: test_methods
|
300
|
+
-------------------------
|
301
|
+
-----------------------
|
302
|
+
RoutesTest: test_params
|
303
|
+
-----------------------
|
304
|
+
-----------------------
|
305
|
+
RoutesTest: test_params
|
306
|
+
-----------------------
|
307
|
+
-------------------------
|
308
|
+
HelpersTest: test_methods
|
309
|
+
-------------------------
|
310
|
+
-------------------------
|
311
|
+
HelpersTest: test_methods
|
312
|
+
-------------------------
|
313
|
+
-----------------------
|
314
|
+
RoutesTest: test_params
|
315
|
+
-----------------------
|
316
|
+
-----------------------
|
317
|
+
RoutesTest: test_params
|
318
|
+
-----------------------
|
319
|
+
-------------------------
|
320
|
+
HelpersTest: test_methods
|
321
|
+
-------------------------
|
322
|
+
-------------------------
|
323
|
+
HelpersTest: test_methods
|
324
|
+
-------------------------
|
325
|
+
-----------------------
|
326
|
+
RoutesTest: test_params
|
327
|
+
-----------------------
|
328
|
+
-------------------------
|
329
|
+
HelpersTest: test_methods
|
330
|
+
-------------------------
|
331
|
+
-----------------------
|
332
|
+
RoutesTest: test_params
|
333
|
+
-----------------------
|
334
|
+
-------------------------
|
335
|
+
HelpersTest: test_methods
|
336
|
+
-------------------------
|
337
|
+
-----------------------
|
338
|
+
RoutesTest: test_params
|
339
|
+
-----------------------
|
340
|
+
-----------------------
|
341
|
+
RoutesTest: test_params
|
342
|
+
-----------------------
|
343
|
+
-------------------------
|
344
|
+
HelpersTest: test_methods
|
345
|
+
-------------------------
|
346
|
+
-----------------------
|
347
|
+
RoutesTest: test_params
|
348
|
+
-----------------------
|
349
|
+
-------------------------
|
350
|
+
HelpersTest: test_methods
|
351
|
+
-------------------------
|
352
|
+
-------------------------
|
353
|
+
HelpersTest: test_methods
|
354
|
+
-------------------------
|
355
|
+
-----------------------
|
356
|
+
RoutesTest: test_params
|
357
|
+
-----------------------
|
358
|
+
-------------------------
|
359
|
+
HelpersTest: test_methods
|
360
|
+
-------------------------
|
361
|
+
-----------------------
|
362
|
+
RoutesTest: test_params
|
363
|
+
-----------------------
|
364
|
+
-------------------------
|
365
|
+
HelpersTest: test_methods
|
366
|
+
-------------------------
|
367
|
+
-----------------------
|
368
|
+
RoutesTest: test_params
|
369
|
+
-----------------------
|
370
|
+
-------------------------
|
371
|
+
HelpersTest: test_methods
|
372
|
+
-------------------------
|
373
|
+
-----------------------
|
374
|
+
RoutesTest: test_params
|
375
|
+
-----------------------
|
376
|
+
-------------------------
|
377
|
+
HelpersTest: test_methods
|
378
|
+
-------------------------
|
379
|
+
-----------------------
|
380
|
+
RoutesTest: test_params
|
381
|
+
-----------------------
|
@@ -0,0 +1,67 @@
|
|
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
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
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
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
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>
|
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>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
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
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
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>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|