alchemy_cms 3.1.3 → 3.2.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +2 -2
  3. data/.hound.yml +2 -0
  4. data/.rubocop.yml +1063 -0
  5. data/.travis.yml +14 -10
  6. data/Gemfile +4 -7
  7. data/README.md +16 -8
  8. data/alchemy_cms.gemspec +8 -7
  9. data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +10 -11
  10. data/app/assets/javascripts/alchemy/alchemy.js +1 -1
  11. data/app/assets/stylesheets/alchemy/{admin.css.scss → admin.scss} +1 -0
  12. data/app/assets/stylesheets/alchemy/{icon-font.css.scss → icon-font.scss} +0 -0
  13. data/app/assets/stylesheets/alchemy/{menubar.css.scss → menubar.scss} +0 -0
  14. data/app/assets/stylesheets/alchemy/{print.css.scss → print.scss} +0 -0
  15. data/app/assets/stylesheets/alchemy/selects.scss +0 -6
  16. data/app/controllers/alchemy/admin/contents_controller.rb +3 -4
  17. data/app/controllers/alchemy/admin/pictures_controller.rb +0 -2
  18. data/app/controllers/alchemy/api/contents_controller.rb +1 -1
  19. data/app/controllers/alchemy/api/elements_controller.rb +2 -2
  20. data/app/controllers/alchemy/api/pages_controller.rb +1 -1
  21. data/app/controllers/alchemy/elements_controller.rb +0 -6
  22. data/app/controllers/alchemy/pages_controller.rb +17 -13
  23. data/app/controllers/alchemy/pictures_controller.rb +1 -0
  24. data/app/helpers/alchemy/admin/navigation_helper.rb +1 -1
  25. data/app/models/alchemy/element.rb +41 -17
  26. data/app/models/alchemy/page/page_naming.rb +16 -29
  27. data/bin/alchemy +1 -1
  28. data/config/routes.rb +1 -2
  29. data/db/migrate/20130827094554_alchemy_two_point_six.rb +0 -17
  30. data/lib/alchemy/capistrano.rb +3 -4
  31. data/lib/alchemy/controller_actions.rb +2 -1
  32. data/lib/alchemy/engine.rb +1 -0
  33. data/lib/alchemy/errors.rb +7 -0
  34. data/lib/alchemy/essence.rb +4 -4
  35. data/lib/alchemy/permissions.rb +1 -1
  36. data/lib/alchemy/shell.rb +26 -11
  37. data/lib/alchemy/test_support/controller_requests.rb +48 -12
  38. data/lib/alchemy/upgrader.rb +1 -0
  39. data/lib/alchemy/upgrader/three_point_one.rb +0 -1
  40. data/lib/alchemy/upgrader/three_point_two.rb +39 -0
  41. data/lib/alchemy/version.rb +1 -1
  42. data/lib/rails/templates/alchemy.rb +2 -2
  43. data/lib/tasks/alchemy/install.rake +2 -1
  44. data/spec/controllers/admin/attachments_controller_spec.rb +14 -14
  45. data/spec/controllers/admin/clipboard_controller_spec.rb +5 -5
  46. data/spec/controllers/admin/contents_controller_spec.rb +8 -14
  47. data/spec/controllers/admin/dashboard_controller_spec.rb +12 -12
  48. data/spec/controllers/admin/elements_controller_spec.rb +30 -31
  49. data/spec/controllers/admin/essence_files_controller_spec.rb +6 -6
  50. data/spec/controllers/admin/essence_pictures_controller_spec.rb +17 -17
  51. data/spec/controllers/admin/languages_controller_spec.rb +3 -3
  52. data/spec/controllers/admin/layoutpages_controller_spec.rb +3 -3
  53. data/spec/controllers/admin/pages_controller_spec.rb +48 -48
  54. data/spec/controllers/admin/pictures_controller_spec.rb +19 -19
  55. data/spec/controllers/admin/resources_controller_spec.rb +2 -2
  56. data/spec/controllers/admin/trash_controller_spec.rb +5 -5
  57. data/spec/controllers/alchemy/admin/tags_controller_spec.rb +5 -5
  58. data/spec/controllers/alchemy/api/contents_controller_spec.rb +46 -11
  59. data/spec/controllers/alchemy/api/elements_controller_spec.rb +42 -14
  60. data/spec/controllers/alchemy/api/pages_controller_spec.rb +26 -16
  61. data/spec/controllers/attachments_controller_spec.rb +7 -7
  62. data/spec/controllers/elements_controller_spec.rb +16 -19
  63. data/spec/controllers/messages_controller_spec.rb +15 -15
  64. data/spec/controllers/pages_controller_spec.rb +16 -25
  65. data/spec/controllers/pictures_controller_spec.rb +75 -49
  66. data/spec/dummy/Rakefile +1 -1
  67. data/spec/dummy/app/assets/stylesheets/application.css +5 -3
  68. data/spec/dummy/config/application.rb +11 -1
  69. data/spec/dummy/config/boot.rb +1 -1
  70. data/spec/dummy/config/environment.rb +1 -1
  71. data/spec/dummy/config/environments/development.rb +14 -2
  72. data/spec/dummy/config/environments/production.rb +18 -21
  73. data/spec/dummy/config/environments/test.rb +9 -4
  74. data/spec/dummy/config/initializers/assets.rb +11 -0
  75. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  76. data/spec/dummy/config/initializers/mime_types.rb +0 -1
  77. data/spec/dummy/config/initializers/session_store.rb +1 -1
  78. data/spec/dummy/config/secrets.yml +22 -0
  79. data/spec/dummy/db/migrate/20130827094554_alchemy_two_point_six.rb +380 -0
  80. data/spec/dummy/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +5 -0
  81. data/spec/dummy/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +5 -0
  82. data/spec/dummy/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +5 -0
  83. data/spec/dummy/db/migrate/20150122213511_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb +31 -0
  84. data/{db/migrate/20140107192720_add_missing_unique_indices_to_tags_and_taggings.rb → spec/dummy/db/migrate/20150122213512_add_missing_unique_indices.acts_as_taggable_on_engine.rb} +5 -6
  85. data/{db/migrate/20140701160159_add_taggings_counter_cache_to_tags.rb → spec/dummy/db/migrate/20150122213513_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb} +2 -1
  86. data/{db/migrate/20140701160225_add_missing_taggable_index.rb → spec/dummy/db/migrate/20150122213514_add_missing_taggable_index.acts_as_taggable_on_engine.rb} +1 -0
  87. data/spec/dummy/db/schema.rb +27 -31
  88. data/spec/dummy/public/404.html +20 -11
  89. data/spec/dummy/public/422.html +20 -11
  90. data/spec/dummy/public/500.html +19 -10
  91. data/spec/features/admin/page_creation_feature_spec.rb +2 -2
  92. data/spec/libraries/resource_spec.rb +1 -1
  93. data/spec/libraries/shell_spec.rb +2 -0
  94. data/spec/models/page_spec.rb +1 -13
  95. data/spec/spec_helper.rb +6 -4
  96. data/spec/support/rspec-activemodel-mocks_patch.rb +8 -0
  97. metadata +63 -56
  98. data/app/controllers/alchemy/contents_controller.rb +0 -18
  99. data/spec/controllers/contents_controller_spec.rb +0 -22
  100. data/spec/dummy/app/models/dummy_model.rb +0 -3
  101. data/spec/dummy/db/migrate/20130827094554_alchemy_two_point_six.rb +0 -1
  102. data/spec/dummy/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +0 -1
  103. data/spec/dummy/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +0 -1
  104. data/spec/dummy/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +0 -1
  105. data/spec/dummy/db/migrate/20140107192720_add_missing_unique_indices_to_tags_and_taggings.rb +0 -1
  106. data/spec/dummy/db/migrate/20140701160159_add_taggings_counter_cache_to_tags.rb +0 -1
  107. data/spec/dummy/db/migrate/20140701160225_add_missing_taggable_index.rb +0 -1
  108. data/spec/dummy/db/migrate/20150412103152_create_dummy_model.rb +0 -7
  109. data/spec/dummy/spec/javascripts +0 -1
  110. data/spec/models/dummy_model_spec.rb +0 -11
@@ -0,0 +1,5 @@
1
+ class RemoveDoNotIndexFromAlchemyEssenceTexts < ActiveRecord::Migration
2
+ def up
3
+ remove_column :alchemy_essence_texts, :do_not_index
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class RemoveDoNotIndexFromAlchemyEssenceRichtexts < ActiveRecord::Migration
2
+ def up
3
+ remove_column :alchemy_essence_richtexts, :do_not_index
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddPublishedAtToAlchemyPages < ActiveRecord::Migration
2
+ def change
3
+ add_column :alchemy_pages, :published_at, :timestamp
4
+ end
5
+ end
@@ -0,0 +1,31 @@
1
+ # This migration comes from acts_as_taggable_on_engine (originally 1)
2
+ class ActsAsTaggableOnMigration < ActiveRecord::Migration
3
+ def self.up
4
+ create_table :tags do |t|
5
+ t.string :name
6
+ end
7
+
8
+ create_table :taggings do |t|
9
+ t.references :tag
10
+
11
+ # You should make sure that the column created is
12
+ # long enough to store the required class names.
13
+ t.references :taggable, polymorphic: true
14
+ t.references :tagger, polymorphic: true
15
+
16
+ # Limit is created to prevent MySQL error on index
17
+ # length for MyISAM table type: http://bit.ly/vgW2Ql
18
+ t.string :context, limit: 128
19
+
20
+ t.datetime :created_at
21
+ end
22
+
23
+ add_index :taggings, :tag_id
24
+ add_index :taggings, [:taggable_id, :taggable_type, :context]
25
+ end
26
+
27
+ def self.down
28
+ drop_table :taggings
29
+ drop_table :tags
30
+ end
31
+ end
@@ -1,21 +1,20 @@
1
- class AddMissingUniqueIndicesToTagsAndTaggings < ActiveRecord::Migration
2
-
1
+ # This migration comes from acts_as_taggable_on_engine (originally 2)
2
+ class AddMissingUniqueIndices < ActiveRecord::Migration
3
3
  def self.up
4
4
  add_index :tags, :name, unique: true
5
5
 
6
6
  remove_index :taggings, :tag_id
7
7
  remove_index :taggings, [:taggable_id, :taggable_type, :context]
8
8
  add_index :taggings,
9
- [:tag_id, :taggable_id, :taggable_type, :context, :tagger_id, :tagger_type],
10
- unique: true, name: 'taggings_idx'
9
+ [:tag_id, :taggable_id, :taggable_type, :context, :tagger_id, :tagger_type],
10
+ unique: true, name: 'taggings_idx'
11
11
  end
12
12
 
13
13
  def self.down
14
14
  remove_index :tags, :name
15
15
 
16
- remove_index :taggings, name: 'tagging_idx'
16
+ remove_index :taggings, name: 'taggings_idx'
17
17
  add_index :taggings, :tag_id
18
18
  add_index :taggings, [:taggable_id, :taggable_type, :context]
19
19
  end
20
-
21
20
  end
@@ -1,3 +1,4 @@
1
+ # This migration comes from acts_as_taggable_on_engine (originally 3)
1
2
  class AddTaggingsCounterCacheToTags < ActiveRecord::Migration
2
3
  def self.up
3
4
  add_column :tags, :taggings_count, :integer, default: 0
@@ -11,4 +12,4 @@ class AddTaggingsCounterCacheToTags < ActiveRecord::Migration
11
12
  def self.down
12
13
  remove_column :tags, :taggings_count
13
14
  end
14
- end
15
+ end
@@ -1,3 +1,4 @@
1
+ # This migration comes from acts_as_taggable_on_engine (originally 4)
1
2
  class AddMissingTaggableIndex < ActiveRecord::Migration
2
3
  def self.up
3
4
  add_index :taggings, [:taggable_id, :taggable_type, :context]
@@ -11,9 +11,9 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150412103152) do
14
+ ActiveRecord::Schema.define(version: 20150122213514) do
15
15
 
16
- create_table "alchemy_attachments", force: :cascade do |t|
16
+ create_table "alchemy_attachments", force: true do |t|
17
17
  t.string "name"
18
18
  t.string "file_name"
19
19
  t.string "file_mime_type"
@@ -28,14 +28,14 @@ ActiveRecord::Schema.define(version: 20150412103152) do
28
28
 
29
29
  add_index "alchemy_attachments", ["file_uid"], name: "index_alchemy_attachments_on_file_uid"
30
30
 
31
- create_table "alchemy_cells", force: :cascade do |t|
31
+ create_table "alchemy_cells", force: true do |t|
32
32
  t.integer "page_id"
33
33
  t.string "name"
34
34
  t.datetime "created_at", null: false
35
35
  t.datetime "updated_at", null: false
36
36
  end
37
37
 
38
- create_table "alchemy_contents", force: :cascade do |t|
38
+ create_table "alchemy_contents", force: true do |t|
39
39
  t.string "name"
40
40
  t.string "essence_type"
41
41
  t.integer "essence_id"
@@ -49,7 +49,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
49
49
 
50
50
  add_index "alchemy_contents", ["element_id", "position"], name: "index_contents_on_element_id_and_position"
51
51
 
52
- create_table "alchemy_elements", force: :cascade do |t|
52
+ create_table "alchemy_elements", force: true do |t|
53
53
  t.string "name"
54
54
  t.integer "position"
55
55
  t.integer "page_id"
@@ -66,12 +66,12 @@ ActiveRecord::Schema.define(version: 20150412103152) do
66
66
 
67
67
  add_index "alchemy_elements", ["page_id", "position"], name: "index_elements_on_page_id_and_position"
68
68
 
69
- create_table "alchemy_elements_alchemy_pages", id: false, force: :cascade do |t|
69
+ create_table "alchemy_elements_alchemy_pages", id: false, force: true do |t|
70
70
  t.integer "element_id"
71
71
  t.integer "page_id"
72
72
  end
73
73
 
74
- create_table "alchemy_essence_booleans", force: :cascade do |t|
74
+ create_table "alchemy_essence_booleans", force: true do |t|
75
75
  t.boolean "value"
76
76
  t.datetime "created_at", null: false
77
77
  t.datetime "updated_at", null: false
@@ -81,7 +81,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
81
81
 
82
82
  add_index "alchemy_essence_booleans", ["value"], name: "index_alchemy_essence_booleans_on_value"
83
83
 
84
- create_table "alchemy_essence_dates", force: :cascade do |t|
84
+ create_table "alchemy_essence_dates", force: true do |t|
85
85
  t.datetime "date"
86
86
  t.integer "creator_id"
87
87
  t.integer "updater_id"
@@ -89,7 +89,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
89
89
  t.datetime "updated_at", null: false
90
90
  end
91
91
 
92
- create_table "alchemy_essence_files", force: :cascade do |t|
92
+ create_table "alchemy_essence_files", force: true do |t|
93
93
  t.integer "attachment_id"
94
94
  t.string "title"
95
95
  t.string "css_class"
@@ -99,7 +99,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
99
99
  t.datetime "updated_at", null: false
100
100
  end
101
101
 
102
- create_table "alchemy_essence_htmls", force: :cascade do |t|
102
+ create_table "alchemy_essence_htmls", force: true do |t|
103
103
  t.text "source"
104
104
  t.integer "creator_id"
105
105
  t.integer "updater_id"
@@ -107,7 +107,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
107
107
  t.datetime "updated_at", null: false
108
108
  end
109
109
 
110
- create_table "alchemy_essence_links", force: :cascade do |t|
110
+ create_table "alchemy_essence_links", force: true do |t|
111
111
  t.string "link"
112
112
  t.string "link_title"
113
113
  t.string "link_target"
@@ -118,7 +118,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
118
118
  t.integer "updater_id"
119
119
  end
120
120
 
121
- create_table "alchemy_essence_pictures", force: :cascade do |t|
121
+ create_table "alchemy_essence_pictures", force: true do |t|
122
122
  t.integer "picture_id"
123
123
  t.string "caption"
124
124
  t.string "title"
@@ -137,7 +137,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
137
137
  t.string "render_size"
138
138
  end
139
139
 
140
- create_table "alchemy_essence_richtexts", force: :cascade do |t|
140
+ create_table "alchemy_essence_richtexts", force: true do |t|
141
141
  t.text "body"
142
142
  t.text "stripped_body"
143
143
  t.boolean "public"
@@ -147,7 +147,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
147
147
  t.datetime "updated_at", null: false
148
148
  end
149
149
 
150
- create_table "alchemy_essence_selects", force: :cascade do |t|
150
+ create_table "alchemy_essence_selects", force: true do |t|
151
151
  t.string "value"
152
152
  t.datetime "created_at", null: false
153
153
  t.datetime "updated_at", null: false
@@ -157,7 +157,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
157
157
 
158
158
  add_index "alchemy_essence_selects", ["value"], name: "index_alchemy_essence_selects_on_value"
159
159
 
160
- create_table "alchemy_essence_texts", force: :cascade do |t|
160
+ create_table "alchemy_essence_texts", force: true do |t|
161
161
  t.text "body"
162
162
  t.string "link"
163
163
  t.string "link_title"
@@ -170,13 +170,13 @@ ActiveRecord::Schema.define(version: 20150412103152) do
170
170
  t.datetime "updated_at", null: false
171
171
  end
172
172
 
173
- create_table "alchemy_folded_pages", force: :cascade do |t|
173
+ create_table "alchemy_folded_pages", force: true do |t|
174
174
  t.integer "page_id"
175
175
  t.integer "user_id"
176
176
  t.boolean "folded", default: false
177
177
  end
178
178
 
179
- create_table "alchemy_languages", force: :cascade do |t|
179
+ create_table "alchemy_languages", force: true do |t|
180
180
  t.string "name"
181
181
  t.string "language_code"
182
182
  t.string "frontpage_name"
@@ -195,7 +195,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
195
195
  add_index "alchemy_languages", ["language_code"], name: "index_alchemy_languages_on_language_code"
196
196
  add_index "alchemy_languages", ["site_id"], name: "index_alchemy_languages_on_site_id"
197
197
 
198
- create_table "alchemy_legacy_page_urls", force: :cascade do |t|
198
+ create_table "alchemy_legacy_page_urls", force: true do |t|
199
199
  t.string "urlname", null: false
200
200
  t.integer "page_id", null: false
201
201
  t.datetime "created_at", null: false
@@ -204,7 +204,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
204
204
 
205
205
  add_index "alchemy_legacy_page_urls", ["urlname"], name: "index_alchemy_legacy_page_urls_on_urlname"
206
206
 
207
- create_table "alchemy_pages", force: :cascade do |t|
207
+ create_table "alchemy_pages", force: true do |t|
208
208
  t.string "name"
209
209
  t.string "urlname"
210
210
  t.string "title"
@@ -239,7 +239,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
239
239
  add_index "alchemy_pages", ["parent_id", "lft"], name: "index_pages_on_parent_id_and_lft"
240
240
  add_index "alchemy_pages", ["urlname"], name: "index_pages_on_urlname"
241
241
 
242
- create_table "alchemy_pictures", force: :cascade do |t|
242
+ create_table "alchemy_pictures", force: true do |t|
243
243
  t.string "name"
244
244
  t.string "image_file_name"
245
245
  t.integer "image_file_width"
@@ -254,7 +254,7 @@ ActiveRecord::Schema.define(version: 20150412103152) do
254
254
  t.integer "image_file_size"
255
255
  end
256
256
 
257
- create_table "alchemy_sites", force: :cascade do |t|
257
+ create_table "alchemy_sites", force: true do |t|
258
258
  t.string "host"
259
259
  t.string "name"
260
260
  t.datetime "created_at", null: false
@@ -267,18 +267,14 @@ ActiveRecord::Schema.define(version: 20150412103152) do
267
267
  add_index "alchemy_sites", ["host", "public"], name: "alchemy_sites_public_hosts_idx"
268
268
  add_index "alchemy_sites", ["host"], name: "index_alchemy_sites_on_host"
269
269
 
270
- create_table "dummy_models", force: :cascade do |t|
271
- t.string "data"
272
- end
273
-
274
- create_table "dummy_users", force: :cascade do |t|
270
+ create_table "dummy_users", force: true do |t|
275
271
  t.string "email"
276
272
  t.string "password"
277
273
  end
278
274
 
279
275
  add_index "dummy_users", ["email"], name: "index_dummy_users_on_email"
280
276
 
281
- create_table "events", force: :cascade do |t|
277
+ create_table "events", force: true do |t|
282
278
  t.string "name"
283
279
  t.string "hidden_name"
284
280
  t.datetime "starts_at"
@@ -293,26 +289,26 @@ ActiveRecord::Schema.define(version: 20150412103152) do
293
289
  t.datetime "updated_at", null: false
294
290
  end
295
291
 
296
- create_table "locations", force: :cascade do |t|
292
+ create_table "locations", force: true do |t|
297
293
  t.string "name"
298
294
  t.datetime "created_at"
299
295
  t.datetime "updated_at"
300
296
  end
301
297
 
302
- create_table "taggings", force: :cascade do |t|
298
+ create_table "taggings", force: true do |t|
303
299
  t.integer "tag_id"
304
300
  t.integer "taggable_id"
305
301
  t.string "taggable_type"
306
302
  t.integer "tagger_id"
307
303
  t.string "tagger_type"
308
- t.string "context"
304
+ t.string "context", limit: 128
309
305
  t.datetime "created_at"
310
306
  end
311
307
 
312
308
  add_index "taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "taggings_idx", unique: true
313
309
  add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context"
314
310
 
315
- create_table "tags", force: :cascade do |t|
311
+ create_table "tags", force: true do |t|
316
312
  t.string "name"
317
313
  t.integer "taggings_count", default: 0
318
314
  end
@@ -2,17 +2,23 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
5
6
  <style>
6
7
  body {
7
8
  background-color: #EFEFEF;
8
9
  color: #2E2F30;
9
10
  text-align: center;
10
11
  font-family: arial, sans-serif;
12
+ margin: 0;
11
13
  }
12
14
 
13
15
  div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
16
22
  border: 1px solid #CCC;
17
23
  border-right-color: #999;
18
24
  border-left-color: #999;
@@ -21,7 +27,8 @@
21
27
  border-top-left-radius: 9px;
22
28
  border-top-right-radius: 9px;
23
29
  background-color: white;
24
- padding: 7px 4em 0 4em;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
25
32
  }
26
33
 
27
34
  h1 {
@@ -30,19 +37,19 @@
30
37
  line-height: 1.5em;
31
38
  }
32
39
 
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
37
43
  background-color: #F7F7F7;
38
44
  border: 1px solid #CCC;
39
45
  border-right-color: #999;
46
+ border-left-color: #999;
40
47
  border-bottom-color: #999;
41
48
  border-bottom-left-radius: 4px;
42
49
  border-bottom-right-radius: 4px;
43
50
  border-top-color: #DADADA;
44
51
  color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
46
53
  }
47
54
  </style>
48
55
  </head>
@@ -50,9 +57,11 @@
50
57
  <body>
51
58
  <!-- This file lives in public/404.html -->
52
59
  <div class="dialog">
53
- <h1>The page you were looking for doesn't exist.</h1>
54
- <p>You may have mistyped the address or the page may have moved.</p>
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>
55
65
  </div>
56
- <p>If you are the application owner check the logs for more information.</p>
57
66
  </body>
58
67
  </html>
@@ -2,17 +2,23 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
5
6
  <style>
6
7
  body {
7
8
  background-color: #EFEFEF;
8
9
  color: #2E2F30;
9
10
  text-align: center;
10
11
  font-family: arial, sans-serif;
12
+ margin: 0;
11
13
  }
12
14
 
13
15
  div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
16
22
  border: 1px solid #CCC;
17
23
  border-right-color: #999;
18
24
  border-left-color: #999;
@@ -21,7 +27,8 @@
21
27
  border-top-left-radius: 9px;
22
28
  border-top-right-radius: 9px;
23
29
  background-color: white;
24
- padding: 7px 4em 0 4em;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
25
32
  }
26
33
 
27
34
  h1 {
@@ -30,19 +37,19 @@
30
37
  line-height: 1.5em;
31
38
  }
32
39
 
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
37
43
  background-color: #F7F7F7;
38
44
  border: 1px solid #CCC;
39
45
  border-right-color: #999;
46
+ border-left-color: #999;
40
47
  border-bottom-color: #999;
41
48
  border-bottom-left-radius: 4px;
42
49
  border-bottom-right-radius: 4px;
43
50
  border-top-color: #DADADA;
44
51
  color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
46
53
  }
47
54
  </style>
48
55
  </head>
@@ -50,9 +57,11 @@
50
57
  <body>
51
58
  <!-- This file lives in public/422.html -->
52
59
  <div class="dialog">
53
- <h1>The change you wanted was rejected.</h1>
54
- <p>Maybe you tried to change something you didn't have access to.</p>
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>
55
65
  </div>
56
- <p>If you are the application owner check the logs for more information.</p>
57
66
  </body>
58
67
  </html>