rails_codebook 0.0.1.alpha → 0.0.1.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.travis.yml +14 -1
- data/Gemfile +5 -1
- data/README.md +3 -29
- data/Rakefile +17 -0
- data/app/controllers/rails_codebook/admin/codebooks_controller.rb +8 -6
- data/app/controllers/rails_codebook/api/codebooks_controller.rb +5 -3
- data/app/models/rails_codebook/codebook.rb +5 -0
- data/app/views/rails_codebook/admin/codebooks/_codebook.html.erb +1 -1
- data/app/views/rails_codebook/admin/codebooks/index.html.erb +3 -3
- data/config/routes.rb +6 -11
- data/lib/generators/rails_codebook/install/templates/seeds.rb.erb +4 -4
- data/lib/rails_codebook/has_codebooks.rb +6 -6
- data/lib/rails_codebook/model/base.rb +8 -20
- data/lib/rails_codebook/version.rb +1 -1
- data/rails_codebook.gemspec +5 -1
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/articles.js +2 -0
- data/test/dummy/app/assets/javascripts/comments.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/articles.css +4 -0
- data/test/dummy/app/assets/stylesheets/comments.css +4 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/articles_controller.rb +58 -0
- data/test/dummy/app/controllers/comments_controller.rb +58 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/articles_helper.rb +2 -0
- data/test/dummy/app/helpers/comments_helper.rb +2 -0
- data/test/dummy/app/mailers/.keep +0 -0
- data/test/dummy/app/models/.keep +0 -0
- data/test/dummy/app/models/article.rb +18 -0
- data/test/dummy/app/models/comment.rb +13 -0
- data/test/dummy/app/models/comment_relation.rb +15 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/articles/_form.html.erb +33 -0
- data/test/dummy/app/views/articles/edit.html.erb +6 -0
- data/test/dummy/app/views/articles/index.html.erb +31 -0
- data/test/dummy/app/views/articles/new.html.erb +5 -0
- data/test/dummy/app/views/articles/show.html.erb +24 -0
- data/test/dummy/app/views/comments/_form.html.erb +29 -0
- data/test/dummy/app/views/comments/edit.html.erb +6 -0
- data/test/dummy/app/views/comments/index.html.erb +30 -0
- data/test/dummy/app/views/comments/new.html.erb +5 -0
- data/test/dummy/app/views/comments/show.html.erb +19 -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/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -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 +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +33 -0
- data/test/dummy/config/routes.rb +62 -0
- data/test/dummy/db/migrate/20131121101057_create_articles.rb +13 -0
- data/test/dummy/db/migrate/20131121101251_create_comments.rb +11 -0
- data/test/dummy/db/migrate/20131121142715_create_comment_relations.rb +12 -0
- data/test/dummy/db/schema.rb +42 -0
- data/test/dummy/db/seeds.rb +189 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/controllers/articles_controller_test.rb +50 -0
- data/test/dummy/test/controllers/comments_controller_test.rb +50 -0
- data/test/dummy/test/factories/articles.rb +11 -0
- data/test/dummy/test/factories/comment_relations.rb +8 -0
- data/test/dummy/test/factories/comments.rb +12 -0
- data/test/dummy/test/helpers/articles_helper_test.rb +9 -0
- data/test/dummy/test/helpers/comments_helper_test.rb +9 -0
- data/test/dummy/test/models/article_test.rb +10 -0
- data/test/dummy/test/models/comment_relations_test.rb +7 -0
- data/test/dummy/test/models/comment_test.rb +10 -0
- data/test/factories/factories.rb +41 -0
- data/test/integration/rails_codebook/admin/codebooks_test.rb +176 -0
- data/test/integration/rails_codebook/api/codebooks_test.rb +104 -0
- data/test/rails_codebook/acts_as_codebook_test.rb +12 -0
- data/test/rails_codebook/controller/base_test.rb +13 -0
- data/test/rails_codebook/has_codebooks_test.rb +13 -0
- data/test/rails_codebook/model/base_test.rb +19 -0
- data/test/rails_codebook_test.rb +34 -0
- data/test/test_helper.rb +20 -20
- data/test/unit/helpers/rails_codebook/admin/codebooks_helper_test.rb +17 -0
- data/test/unit/models/rails_codebook/codebook_test.rb +79 -0
- metadata +215 -3
@@ -0,0 +1,42 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20131121142715) do
|
15
|
+
|
16
|
+
create_table "articles", force: true do |t|
|
17
|
+
t.string "title"
|
18
|
+
t.text "text"
|
19
|
+
t.string "author"
|
20
|
+
t.string "importance_cb"
|
21
|
+
t.datetime "created_at"
|
22
|
+
t.datetime "updated_at"
|
23
|
+
end
|
24
|
+
|
25
|
+
create_table "comment_relations", force: true do |t|
|
26
|
+
t.integer "commentable_id"
|
27
|
+
t.string "commentable_type"
|
28
|
+
t.integer "comment_id"
|
29
|
+
t.string "status_cb"
|
30
|
+
t.datetime "created_at"
|
31
|
+
t.datetime "updated_at"
|
32
|
+
end
|
33
|
+
|
34
|
+
create_table "comments", force: true do |t|
|
35
|
+
t.string "author"
|
36
|
+
t.text "content"
|
37
|
+
t.string "type_cb"
|
38
|
+
t.datetime "created_at"
|
39
|
+
t.datetime "updated_at"
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
@@ -0,0 +1,189 @@
|
|
1
|
+
unless RailsCodebook::Codebook.search('cb_name', 'importances', true).length > 0
|
2
|
+
RailsCodebook::Codebook.create(value: "low",name: "cb.low",cb_name: "importances")
|
3
|
+
RailsCodebook::Codebook.create(value: "medium",name: "cb.medium",cb_name: "importances")
|
4
|
+
RailsCodebook::Codebook.create(value: "high",name: "cb.high",cb_name: "importances")
|
5
|
+
end
|
6
|
+
unless RailsCodebook::Codebook.search('cb_name', 'types', true).length > 0
|
7
|
+
RailsCodebook::Codebook.create(value: "concept",name: "cb.concept",cb_name: "types")
|
8
|
+
RailsCodebook::Codebook.create(value: "published",name: "cb.published",cb_name: "types")
|
9
|
+
RailsCodebook::Codebook.create(value: "archived",name: "cb.archived",cb_name: "types")
|
10
|
+
end
|
11
|
+
unless RailsCodebook::Codebook.search('cb_name', 'article_commet_relations_types', true).length > 0
|
12
|
+
RailsCodebook::Codebook.create(value: "home",name: "cb.home",cb_name: "article_commet_relations_types")
|
13
|
+
RailsCodebook::Codebook.create(value: "work",name: "cb.work",cb_name: "article_commet_relations_types")
|
14
|
+
RailsCodebook::Codebook.create(value: "public",name: "cb.public",cb_name: "article_commet_relations_types")
|
15
|
+
end
|
16
|
+
|
17
|
+
Article.create(
|
18
|
+
author: "Yourself",
|
19
|
+
title: "Lorem ipsum dolor sit amet",
|
20
|
+
text: "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin mattis lacinia justo.
|
21
|
+
Donec iaculis gravida nulla. Fusce dui leo, imperdiet in, aliquam sit amet, feugiat eu,
|
22
|
+
orci. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id
|
23
|
+
quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
|
24
|
+
Nullam lectus justo, vulputate eget mollis sed, tempor sed magna. Lorem ipsum dolor sit amet,
|
25
|
+
consectetuer adipiscing elit. Donec vitae arcu. Quisque porta. Suspendisse nisl. Etiam ligula pede,
|
26
|
+
sagittis quis, interdum ultricies, scelerisque eu. Praesent vitae arcu tempor neque lacinia pretium.
|
27
|
+
Vestibulum erat nulla, ullamcorper nec, rutrum non, nonummy ac, erat.",
|
28
|
+
importance_cb: "low"
|
29
|
+
)
|
30
|
+
|
31
|
+
Article.create(
|
32
|
+
author: "Others",
|
33
|
+
title: "Integer in sapien",
|
34
|
+
text: "Integer in sapien. Quisque tincidunt scelerisque libero. Nullam eget nisl. Duis condimentum augue id magna
|
35
|
+
semper rutrum. Pellentesque arcu. Nulla turpis magna, cursus sit amet, suscipit a, interdum id, felis. Etiam
|
36
|
+
posuere lacus quis dolor. Vivamus luctus egestas leo. Cum sociis natoque penatibus et magnis dis parturient montes,
|
37
|
+
nascetur ridiculus mus. Mauris dictum facilisis augue. Vivamus porttitor turpis ac leo. Itaque earum rerum hic
|
38
|
+
tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus
|
39
|
+
asperiores repellat. Aenean fermentum risus id tortor. Nulla accumsan, elit sit amet varius semper, nulla mauris
|
40
|
+
mollis quam, tempor suscipit diam nulla vel leo. Maecenas sollicitudin. Et harum quidem rerum facilis est et expedita
|
41
|
+
distinctio. Integer malesuada.",
|
42
|
+
importance_cb: "medium"
|
43
|
+
)
|
44
|
+
|
45
|
+
Article.create(
|
46
|
+
author: "Myself",
|
47
|
+
title: "Quisque tincidunt scelerisque libero",
|
48
|
+
text: "Quisque tincidunt scelerisque libero. Praesent vitae arcu tempor neque lacinia pretium. Nullam faucibus
|
49
|
+
mi quis velit. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut
|
50
|
+
et voluptates repudiandae sint et molestiae non recusandae. In dapibus augue non sapien. Vestibulum erat nulla,
|
51
|
+
ullamcorper nec, rutrum non, nonummy ac, erat. Fusce suscipit libero eget elit. Fusce tellus. Duis pulvinar.
|
52
|
+
Quisque porta. Phasellus rhoncus.",
|
53
|
+
importance_cb: "high"
|
54
|
+
)
|
55
|
+
|
56
|
+
Article.create(
|
57
|
+
author: "Somebody",
|
58
|
+
title: "Sed ac dolor sit amet purus",
|
59
|
+
text: "Sed ac dolor sit amet purus malesuada congue. Nunc auctor. Nulla accumsan, elit sit amet varius semper,
|
60
|
+
nulla mauris mollis quam, tempor suscipit diam nulla vel leo. Proin in tellus sit amet nibh dignissim sagittis.
|
61
|
+
Pellentesque ipsum. Duis pulvinar. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Nullam justo enim,
|
62
|
+
consectetuer nec, ullamcorper ac, vestibulum in, elit. In convallis. Pellentesque ipsum. Nullam dapibus fermentum
|
63
|
+
ipsum.",
|
64
|
+
importance_cb: "low"
|
65
|
+
)
|
66
|
+
|
67
|
+
Article.create(
|
68
|
+
author: "Anybody",
|
69
|
+
title: "Neque porro quisquam est",
|
70
|
+
text: "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam
|
71
|
+
eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Nullam at arcu a est sollicitudin
|
72
|
+
euismod. Nullam lectus justo, vulputate eget mollis sed, tempor sed magna. Integer imperdiet lectus quis justo.
|
73
|
+
Nunc auctor. Duis ante orci, molestie vitae vehicula venenatis, tincidunt ac pede. Vestibulum erat nulla,
|
74
|
+
ullamcorper nec, rutrum non, nonummy ac, erat. In convallis. Nunc dapibus tortor vel mi dapibus sollicitudin.
|
75
|
+
Nullam dapibus fermentum ipsum. Fusce suscipit libero eget elit. Suspendisse nisl.",
|
76
|
+
importance_cb: "high"
|
77
|
+
)
|
78
|
+
|
79
|
+
Comment.create(
|
80
|
+
author: "Anybody",
|
81
|
+
content: "ullamcorper nec, rutrum non, nonummy ac, erat. In convallis. Nunc dapibus tortor vel mi dapibus sollicitudin. ",
|
82
|
+
type_cb: "published"
|
83
|
+
)
|
84
|
+
Comment.create(
|
85
|
+
author: "Nobody",
|
86
|
+
content: "Nunc auctor. Duis ante orci, molestie vitae vehicula venenatis, tincidunt ac pede. Vestibulum erat nulla, ",
|
87
|
+
type_cb: "published"
|
88
|
+
)
|
89
|
+
Comment.create(
|
90
|
+
author: "Somebody",
|
91
|
+
content: "Nullam dapibus fermentum ipsum. Fusce suscipit libero eget elit. Suspendisse nisl.",
|
92
|
+
type_cb: "published"
|
93
|
+
)
|
94
|
+
Comment.create(
|
95
|
+
author: "Myself",
|
96
|
+
content: "mi quis velit. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut ",
|
97
|
+
type_cb: "concept"
|
98
|
+
)
|
99
|
+
Comment.create(
|
100
|
+
author: "Yourself",
|
101
|
+
content: "Integer in sapien. Quisque tincidunt scelerisque libero. Nullam eget nisl. Duis condimentum augue id magna semper ",
|
102
|
+
type_cb: "concept"
|
103
|
+
)
|
104
|
+
Comment.create(
|
105
|
+
author: "Everybody",
|
106
|
+
content: "s augue. Vivamus porttitor turpis ac leo. Itaque earum rerum hic tenetur a sapiente delectus, ut aut ",
|
107
|
+
type_cb: "concept"
|
108
|
+
)
|
109
|
+
Comment.create(
|
110
|
+
author: "Nobody",
|
111
|
+
content: " modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Nullam at arcu a est sollicitudin ",
|
112
|
+
type_cb: "concept"
|
113
|
+
)
|
114
|
+
Comment.create(
|
115
|
+
author: "Somebody",
|
116
|
+
content: "auctor. Duis ante orci, molestie vitae vehicula venenatis, tincidunt ac pede. Vestibulum erat nulla, ullamcorper nec, ",
|
117
|
+
type_cb: "archived"
|
118
|
+
)
|
119
|
+
Comment.create(
|
120
|
+
author: "Anybody",
|
121
|
+
content: "eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Nullam at arcu a est sollicitudin ",
|
122
|
+
type_cb: "archived"
|
123
|
+
)
|
124
|
+
Comment.create(
|
125
|
+
author: "Noone",
|
126
|
+
content: "pulvinar. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Nullam justo enim, consectetuer nec, ullamcorper ",
|
127
|
+
type_cb: "archived"
|
128
|
+
)
|
129
|
+
|
130
|
+
CommentRelation.create(
|
131
|
+
commentable_type: "Article",
|
132
|
+
commentable_id: "1",
|
133
|
+
comment_id: "1",
|
134
|
+
status_cb: "home"
|
135
|
+
)
|
136
|
+
CommentRelation.create(
|
137
|
+
commentable_type: "Article",
|
138
|
+
commentable_id: "5",
|
139
|
+
comment_id: "2",
|
140
|
+
status_cb: "home"
|
141
|
+
)
|
142
|
+
CommentRelation.create(
|
143
|
+
commentable_type: "Article",
|
144
|
+
commentable_id: "5",
|
145
|
+
comment_id: "3",
|
146
|
+
status_cb: "work"
|
147
|
+
)
|
148
|
+
CommentRelation.create(
|
149
|
+
commentable_type: "Article",
|
150
|
+
commentable_id: "5",
|
151
|
+
comment_id: "4",
|
152
|
+
status_cb: "home"
|
153
|
+
)
|
154
|
+
CommentRelation.create(
|
155
|
+
commentable_type: "Article",
|
156
|
+
commentable_id: "4",
|
157
|
+
comment_id: "5",
|
158
|
+
status_cb: "work"
|
159
|
+
)
|
160
|
+
CommentRelation.create(
|
161
|
+
commentable_type: "Article",
|
162
|
+
commentable_id: "4",
|
163
|
+
comment_id: "6",
|
164
|
+
status_cb: "public"
|
165
|
+
)
|
166
|
+
CommentRelation.create(
|
167
|
+
commentable_type: "Article",
|
168
|
+
commentable_id: "2",
|
169
|
+
comment_id: "7",
|
170
|
+
status_cb: "home"
|
171
|
+
)
|
172
|
+
CommentRelation.create(
|
173
|
+
commentable_type: "Article",
|
174
|
+
commentable_id: "2",
|
175
|
+
comment_id: "8",
|
176
|
+
status_cb: "public"
|
177
|
+
)
|
178
|
+
CommentRelation.create(
|
179
|
+
commentable_type: "Article",
|
180
|
+
commentable_id: "3",
|
181
|
+
comment_id: "9",
|
182
|
+
status_cb: "work"
|
183
|
+
)
|
184
|
+
CommentRelation.create(
|
185
|
+
commentable_type: "Article",
|
186
|
+
commentable_id: "3",
|
187
|
+
comment_id: "10",
|
188
|
+
status_cb: "work"
|
189
|
+
)
|
File without changes
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/404.html -->
|
52
|
+
<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>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/422.html -->
|
52
|
+
<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>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/500.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
54
|
+
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|