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.
- checksums.yaml +4 -4
- data/.editorconfig +2 -2
- data/.hound.yml +2 -0
- data/.rubocop.yml +1063 -0
- data/.travis.yml +14 -10
- data/Gemfile +4 -7
- data/README.md +16 -8
- data/alchemy_cms.gemspec +8 -7
- data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +10 -11
- data/app/assets/javascripts/alchemy/alchemy.js +1 -1
- data/app/assets/stylesheets/alchemy/{admin.css.scss → admin.scss} +1 -0
- data/app/assets/stylesheets/alchemy/{icon-font.css.scss → icon-font.scss} +0 -0
- data/app/assets/stylesheets/alchemy/{menubar.css.scss → menubar.scss} +0 -0
- data/app/assets/stylesheets/alchemy/{print.css.scss → print.scss} +0 -0
- data/app/assets/stylesheets/alchemy/selects.scss +0 -6
- data/app/controllers/alchemy/admin/contents_controller.rb +3 -4
- data/app/controllers/alchemy/admin/pictures_controller.rb +0 -2
- data/app/controllers/alchemy/api/contents_controller.rb +1 -1
- data/app/controllers/alchemy/api/elements_controller.rb +2 -2
- data/app/controllers/alchemy/api/pages_controller.rb +1 -1
- data/app/controllers/alchemy/elements_controller.rb +0 -6
- data/app/controllers/alchemy/pages_controller.rb +17 -13
- data/app/controllers/alchemy/pictures_controller.rb +1 -0
- data/app/helpers/alchemy/admin/navigation_helper.rb +1 -1
- data/app/models/alchemy/element.rb +41 -17
- data/app/models/alchemy/page/page_naming.rb +16 -29
- data/bin/alchemy +1 -1
- data/config/routes.rb +1 -2
- data/db/migrate/20130827094554_alchemy_two_point_six.rb +0 -17
- data/lib/alchemy/capistrano.rb +3 -4
- data/lib/alchemy/controller_actions.rb +2 -1
- data/lib/alchemy/engine.rb +1 -0
- data/lib/alchemy/errors.rb +7 -0
- data/lib/alchemy/essence.rb +4 -4
- data/lib/alchemy/permissions.rb +1 -1
- data/lib/alchemy/shell.rb +26 -11
- data/lib/alchemy/test_support/controller_requests.rb +48 -12
- data/lib/alchemy/upgrader.rb +1 -0
- data/lib/alchemy/upgrader/three_point_one.rb +0 -1
- data/lib/alchemy/upgrader/three_point_two.rb +39 -0
- data/lib/alchemy/version.rb +1 -1
- data/lib/rails/templates/alchemy.rb +2 -2
- data/lib/tasks/alchemy/install.rake +2 -1
- data/spec/controllers/admin/attachments_controller_spec.rb +14 -14
- data/spec/controllers/admin/clipboard_controller_spec.rb +5 -5
- data/spec/controllers/admin/contents_controller_spec.rb +8 -14
- data/spec/controllers/admin/dashboard_controller_spec.rb +12 -12
- data/spec/controllers/admin/elements_controller_spec.rb +30 -31
- data/spec/controllers/admin/essence_files_controller_spec.rb +6 -6
- data/spec/controllers/admin/essence_pictures_controller_spec.rb +17 -17
- data/spec/controllers/admin/languages_controller_spec.rb +3 -3
- data/spec/controllers/admin/layoutpages_controller_spec.rb +3 -3
- data/spec/controllers/admin/pages_controller_spec.rb +48 -48
- data/spec/controllers/admin/pictures_controller_spec.rb +19 -19
- data/spec/controllers/admin/resources_controller_spec.rb +2 -2
- data/spec/controllers/admin/trash_controller_spec.rb +5 -5
- data/spec/controllers/alchemy/admin/tags_controller_spec.rb +5 -5
- data/spec/controllers/alchemy/api/contents_controller_spec.rb +46 -11
- data/spec/controllers/alchemy/api/elements_controller_spec.rb +42 -14
- data/spec/controllers/alchemy/api/pages_controller_spec.rb +26 -16
- data/spec/controllers/attachments_controller_spec.rb +7 -7
- data/spec/controllers/elements_controller_spec.rb +16 -19
- data/spec/controllers/messages_controller_spec.rb +15 -15
- data/spec/controllers/pages_controller_spec.rb +16 -25
- data/spec/controllers/pictures_controller_spec.rb +75 -49
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/app/assets/stylesheets/application.css +5 -3
- data/spec/dummy/config/application.rb +11 -1
- data/spec/dummy/config/boot.rb +1 -1
- data/spec/dummy/config/environment.rb +1 -1
- data/spec/dummy/config/environments/development.rb +14 -2
- data/spec/dummy/config/environments/production.rb +18 -21
- data/spec/dummy/config/environments/test.rb +9 -4
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/mime_types.rb +0 -1
- data/spec/dummy/config/initializers/session_store.rb +1 -1
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/migrate/20130827094554_alchemy_two_point_six.rb +380 -0
- data/spec/dummy/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +5 -0
- data/spec/dummy/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +5 -0
- data/spec/dummy/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +5 -0
- data/spec/dummy/db/migrate/20150122213511_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb +31 -0
- 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
- 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
- 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
- data/spec/dummy/db/schema.rb +27 -31
- data/spec/dummy/public/404.html +20 -11
- data/spec/dummy/public/422.html +20 -11
- data/spec/dummy/public/500.html +19 -10
- data/spec/features/admin/page_creation_feature_spec.rb +2 -2
- data/spec/libraries/resource_spec.rb +1 -1
- data/spec/libraries/shell_spec.rb +2 -0
- data/spec/models/page_spec.rb +1 -13
- data/spec/spec_helper.rb +6 -4
- data/spec/support/rspec-activemodel-mocks_patch.rb +8 -0
- metadata +63 -56
- data/app/controllers/alchemy/contents_controller.rb +0 -18
- data/spec/controllers/contents_controller_spec.rb +0 -22
- data/spec/dummy/app/models/dummy_model.rb +0 -3
- data/spec/dummy/db/migrate/20130827094554_alchemy_two_point_six.rb +0 -1
- data/spec/dummy/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +0 -1
- data/spec/dummy/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +0 -1
- data/spec/dummy/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +0 -1
- data/spec/dummy/db/migrate/20140107192720_add_missing_unique_indices_to_tags_and_taggings.rb +0 -1
- data/spec/dummy/db/migrate/20140701160159_add_taggings_counter_cache_to_tags.rb +0 -1
- data/spec/dummy/db/migrate/20140701160225_add_missing_taggable_index.rb +0 -1
- data/spec/dummy/db/migrate/20150412103152_create_dummy_model.rb +0 -7
- data/spec/dummy/spec/javascripts +0 -1
- data/spec/models/dummy_model_spec.rb +0 -11
@@ -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
|
-
|
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
|
-
|
10
|
-
|
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: '
|
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
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -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:
|
14
|
+
ActiveRecord::Schema.define(version: 20150122213514) do
|
15
15
|
|
16
|
-
create_table "alchemy_attachments", force:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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 "
|
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:
|
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:
|
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:
|
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:
|
311
|
+
create_table "tags", force: true do |t|
|
316
312
|
t.string "name"
|
317
313
|
t.integer "taggings_count", default: 0
|
318
314
|
end
|
data/spec/dummy/public/404.html
CHANGED
@@ -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:
|
15
|
-
|
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
|
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
|
-
|
34
|
-
|
35
|
-
|
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
|
-
<
|
54
|
-
|
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>
|
data/spec/dummy/public/422.html
CHANGED
@@ -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:
|
15
|
-
|
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
|
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
|
-
|
34
|
-
|
35
|
-
|
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
|
-
<
|
54
|
-
|
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>
|