spina 0.8.3 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spina might be problematic. Click here for more details.

Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +63 -52
  3. data/app/assets/javascripts/spina/admin/application.js +0 -1
  4. data/app/controllers/spina/admin/accounts_controller.rb +11 -16
  5. data/app/controllers/spina/admin/admin_controller.rb +12 -23
  6. data/app/controllers/spina/admin/attachments_controller.rb +1 -1
  7. data/app/controllers/spina/admin/pages_controller.rb +14 -7
  8. data/app/controllers/spina/admin/photos_controller.rb +4 -2
  9. data/app/controllers/spina/admin/sessions_controller.rb +3 -3
  10. data/app/controllers/spina/admin/users_controller.rb +3 -3
  11. data/app/controllers/spina/application_controller.rb +7 -3
  12. data/app/controllers/spina/pages_controller.rb +13 -2
  13. data/app/controllers/spina/sitemaps_controller.rb +1 -0
  14. data/app/helpers/spina/admin/pages_helper.rb +12 -2
  15. data/app/helpers/spina/application_helper.rb +0 -9
  16. data/app/models/concerns/spina/part.rb +31 -0
  17. data/app/models/{spina → concerns/spina}/partable.rb +0 -0
  18. data/app/models/spina/ability.rb +0 -1
  19. data/app/models/spina/account.rb +6 -6
  20. data/app/models/spina/attachment.rb +1 -1
  21. data/app/models/spina/layout_part.rb +4 -27
  22. data/app/models/spina/line.rb +2 -0
  23. data/app/models/spina/page.rb +24 -5
  24. data/app/models/spina/page_part.rb +6 -30
  25. data/app/models/spina/structure_part.rb +7 -19
  26. data/app/models/spina/text.rb +2 -0
  27. data/app/views/layouts/spina/admin/application.html.haml +12 -14
  28. data/app/views/layouts/spina/admin/media_library.html.haml +4 -4
  29. data/app/views/layouts/spina/admin/settings.html.haml +7 -8
  30. data/app/views/layouts/spina/admin/website.html.haml +9 -16
  31. data/app/views/spina/admin/accounts/style.html.haml +10 -10
  32. data/app/views/spina/admin/attachments/_attachment.html.haml +1 -2
  33. data/app/views/spina/admin/{pages/_attachment_fields.html.haml → attachments/_fields.html.haml} +0 -0
  34. data/app/views/spina/admin/attachments/index.html.haml +2 -7
  35. data/app/views/spina/admin/layout_partables/colors/_form.html.haml +4 -0
  36. data/app/views/spina/admin/layout_partables/lines/_form.html.haml +2 -0
  37. data/app/views/spina/admin/page_partables/attachment_collections/_form.html.haml +15 -0
  38. data/app/views/spina/admin/page_partables/attachments/_form.html.haml +14 -0
  39. data/app/views/spina/admin/page_partables/colors/_form.html.haml +7 -0
  40. data/app/views/spina/admin/page_partables/lines/_form.html.haml +5 -0
  41. data/app/views/spina/admin/page_partables/photo_collections/_form.html.haml +17 -0
  42. data/app/views/spina/admin/page_partables/photos/_form.html.haml +18 -0
  43. data/app/views/spina/admin/page_partables/structures/_form.html.haml +22 -0
  44. data/app/views/spina/admin/page_partables/texts/_form.html.haml +5 -0
  45. data/app/views/spina/admin/pages/_form.html.haml +11 -8
  46. data/app/views/spina/admin/pages/_form_advanced.html.haml +3 -3
  47. data/app/views/spina/admin/pages/_form_page_content.html.haml +8 -3
  48. data/app/views/spina/admin/pages/_form_page_seo.html.haml +1 -1
  49. data/app/views/spina/admin/pages/edit.html.haml +13 -1
  50. data/app/views/spina/admin/photos/_photo.html.haml +1 -3
  51. data/app/views/spina/admin/photos/create.js.erb +1 -2
  52. data/app/views/spina/admin/photos/create_and_select.js.erb +7 -0
  53. data/app/views/spina/admin/photos/index.html.haml +7 -6
  54. data/app/views/spina/admin/shared/_primary_navigation.html.haml +19 -0
  55. data/app/views/spina/admin/shared/_rich_text_field.html.haml +2 -2
  56. data/app/views/spina/admin/structure_items/_fields.html.haml +16 -0
  57. data/app/views/spina/admin/structure_partables/lines/_form.html.haml +2 -0
  58. data/app/views/spina/admin/structure_partables/photos/_form.html.haml +11 -0
  59. data/app/views/spina/admin/structure_partables/texts/_form.html.haml +2 -0
  60. data/app/views/spina/sitemaps/show.xml.builder +12 -8
  61. data/{lib/spina/carrierwave.rb → config/initializers/spina.rb} +0 -0
  62. data/config/locales/de.yml +0 -26
  63. data/config/locales/en.yml +4 -26
  64. data/config/locales/es.yml +0 -26
  65. data/config/locales/fr.yml +4 -27
  66. data/config/locales/it.yml +0 -26
  67. data/config/locales/nl.yml +2 -28
  68. data/config/locales/pt-BR.yml +0 -26
  69. data/config/locales/ru.yml +0 -26
  70. data/config/locales/tr.yml +2 -28
  71. data/config/locales/zh-CN.yml +0 -3
  72. data/config/routes.rb +3 -19
  73. data/db/migrate/{20150507135428_create_spina_tables.rb → 1_create_spina_tables.rb} +0 -11
  74. data/db/migrate/2_create_spina_translation_tables.rb +13 -0
  75. data/lib/generators/spina/install_generator.rb +23 -9
  76. data/lib/generators/spina/templates/app/assets/stylesheets/demo/application.css.sass +3 -0
  77. data/lib/generators/spina/templates/app/views/demo/shared/_languages.html.haml +2 -0
  78. data/lib/generators/spina/templates/app/views/layouts/demo/application.html.haml +1 -0
  79. data/lib/generators/spina/templates/config/initializers/carrierwave.rb +17 -0
  80. data/lib/generators/spina/templates/config/initializers/spina.rb +2 -22
  81. data/lib/generators/spina/templates/config/initializers/themes/default.rb +29 -45
  82. data/lib/generators/spina/templates/config/initializers/themes/demo.rb +82 -92
  83. data/lib/spina.rb +24 -30
  84. data/lib/spina/engine.rb +2 -22
  85. data/lib/spina/plugin.rb +21 -3
  86. data/lib/spina/railtie.rb +9 -0
  87. data/lib/spina/theme.rb +34 -6
  88. data/lib/spina/version.rb +1 -1
  89. metadata +51 -124
  90. data/app/assets/javascripts/spina/admin/aviary.js.coffee +0 -25
  91. data/app/controllers/spina/admin/inquiries_controller.rb +0 -63
  92. data/app/controllers/spina/inquiries_controller.rb +0 -30
  93. data/app/mailers/spina/inquiry_mailer.rb +0 -19
  94. data/app/models/spina/inquiry.rb +0 -41
  95. data/app/views/layouts/spina/admin/messages.html.haml +0 -24
  96. data/app/views/spina/admin/accounts/aviary.html.haml +0 -26
  97. data/app/views/spina/admin/inquiries/inbox.html.haml +0 -30
  98. data/app/views/spina/admin/inquiries/index.html.haml +0 -36
  99. data/app/views/spina/admin/inquiries/show.html.haml +0 -23
  100. data/app/views/spina/admin/inquiries/spam.html.haml +0 -36
  101. data/app/views/spina/admin/layout_partables/_color_form.html.haml +0 -4
  102. data/app/views/spina/admin/layout_partables/_line_form.html.haml +0 -2
  103. data/app/views/spina/admin/page_partables/_attachment_collection_form.html.haml +0 -20
  104. data/app/views/spina/admin/page_partables/_attachment_form.html.haml +0 -19
  105. data/app/views/spina/admin/page_partables/_color_form.html.haml +0 -12
  106. data/app/views/spina/admin/page_partables/_line_form.html.haml +0 -10
  107. data/app/views/spina/admin/page_partables/_photo_collection_form.html.haml +0 -22
  108. data/app/views/spina/admin/page_partables/_photo_form.html.haml +0 -23
  109. data/app/views/spina/admin/page_partables/_structure_form.html.haml +0 -28
  110. data/app/views/spina/admin/page_partables/_text_form.html.haml +0 -10
  111. data/app/views/spina/admin/pages/_structure_item_fields.html.haml +0 -15
  112. data/app/views/spina/admin/shared/_navigation.html.haml +0 -21
  113. data/app/views/spina/admin/structure_partables/_line_form.html.haml +0 -2
  114. data/app/views/spina/admin/structure_partables/_photo_form.html.haml +0 -11
  115. data/app/views/spina/admin/structure_partables/_text_form.html.haml +0 -2
  116. data/app/views/spina/inquiries/create.html.haml +0 -2
  117. data/app/views/spina/inquiries/index.html.haml +0 -19
  118. data/app/views/spina/inquiry_mailer/inquiry.html.haml +0 -15
  119. data/test/dummy/README.rdoc +0 -261
  120. data/test/dummy/Rakefile +0 -7
  121. data/test/dummy/app/assets/javascripts/application.js +0 -15
  122. data/test/dummy/app/assets/stylesheets/default/application.css.sass +0 -0
  123. data/test/dummy/app/assets/stylesheets/demo/application.css.sass +0 -66
  124. data/test/dummy/app/assets/stylesheets/fonts.css.sass +0 -3
  125. data/test/dummy/app/controllers/application_controller.rb +0 -3
  126. data/test/dummy/app/helpers/application_helper.rb +0 -2
  127. data/test/dummy/app/views/default/pages/homepage.html.haml +0 -2
  128. data/test/dummy/app/views/default/pages/show.html.haml +0 -3
  129. data/test/dummy/app/views/default/shared/_navigation.html.haml +0 -5
  130. data/test/dummy/app/views/demo/pages/demo.html.haml +0 -30
  131. data/test/dummy/app/views/demo/pages/homepage.html.haml +0 -2
  132. data/test/dummy/app/views/demo/pages/show.html.haml +0 -3
  133. data/test/dummy/app/views/demo/shared/_navigation.html.haml +0 -5
  134. data/test/dummy/app/views/layouts/default/application.html.haml +0 -11
  135. data/test/dummy/app/views/layouts/demo/application.html.haml +0 -11
  136. data/test/dummy/config.ru +0 -4
  137. data/test/dummy/config/application.rb +0 -52
  138. data/test/dummy/config/application.yml +0 -2
  139. data/test/dummy/config/boot.rb +0 -10
  140. data/test/dummy/config/database.yml +0 -24
  141. data/test/dummy/config/environment.rb +0 -5
  142. data/test/dummy/config/environments/development.rb +0 -41
  143. data/test/dummy/config/environments/production.rb +0 -70
  144. data/test/dummy/config/environments/test.rb +0 -38
  145. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  146. data/test/dummy/config/initializers/inflections.rb +0 -15
  147. data/test/dummy/config/initializers/mime_types.rb +0 -5
  148. data/test/dummy/config/initializers/session_store.rb +0 -8
  149. data/test/dummy/config/initializers/spina.rb +0 -33
  150. data/test/dummy/config/initializers/themes/default.rb +0 -47
  151. data/test/dummy/config/initializers/themes/demo.rb +0 -103
  152. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  153. data/test/dummy/config/locales/en.yml +0 -5
  154. data/test/dummy/config/locales/nl.yml +0 -214
  155. data/test/dummy/config/routes.rb +0 -4
  156. data/test/dummy/config/secrets.yml +0 -7
  157. data/test/dummy/db/migrate/20160114085213_create_spina_tables.spina.rb +0 -167
  158. data/test/dummy/db/schema.rb +0 -183
  159. data/test/dummy/db/seeds.rb +0 -1
  160. data/test/dummy/public/404.html +0 -26
  161. data/test/dummy/public/422.html +0 -26
  162. data/test/dummy/public/500.html +0 -25
  163. data/test/dummy/public/favicon.ico +0 -0
  164. data/test/dummy/script/rails +0 -6
  165. data/test/dummy/tmp/restart.txt +0 -0
  166. data/test/fixtures/spina/accounts.yml +0 -3
  167. data/test/fixtures/spina/pages.yml +0 -10
  168. data/test/fixtures/spina/users.yml +0 -5
  169. data/test/functional/spina/admin/admin_controller.rb +0 -36
  170. data/test/functional/spina/admin/sessions_controller_test.rb +0 -32
  171. data/test/functional/spina/pages_controller_test.rb +0 -16
  172. data/test/integration/navigation_test.rb +0 -8
  173. data/test/integration/spina/admin/login_test.rb +0 -31
  174. data/test/integration/spina/admin/logout_test.rb +0 -17
  175. data/test/integration/spina/admin/pages_test.rb +0 -34
  176. data/test/integration/spina/pages_test.rb +0 -19
  177. data/test/models/spina/line_test.rb +0 -9
  178. data/test/models/spina/text_test.rb +0 -9
  179. data/test/test_helper.rb +0 -23
  180. data/test/unit/helpers/spina/accounts_helper_test.rb +0 -6
  181. data/test/unit/helpers/spina/inquiries_helper_test.rb +0 -6
  182. data/test/unit/helpers/spina/page_parts_helper_test.rb +0 -6
  183. data/test/unit/helpers/spina/pages_helper_test.rb +0 -6
  184. data/test/unit/helpers/spina/photos_helper_test.rb +0 -6
  185. data/test/unit/helpers/spina/sessions_helper_test.rb +0 -6
  186. data/test/unit/helpers/spina/users_helper_test.rb +0 -6
  187. data/test/unit/spina/account_test.rb +0 -9
  188. data/test/unit/spina/file_collection_file_test.rb +0 -9
  189. data/test/unit/spina/gallery_test.rb +0 -9
  190. data/test/unit/spina/inquiry_test.rb +0 -9
  191. data/test/unit/spina/page_include_test.rb +0 -9
  192. data/test/unit/spina/page_part_test.rb +0 -9
  193. data/test/unit/spina/page_test.rb +0 -9
  194. data/test/unit/spina/photo_collection_file_test.rb +0 -9
  195. data/test/unit/spina/photo_collection_test.rb +0 -9
  196. data/test/unit/spina/photo_test.rb +0 -9
  197. data/test/unit/spina/user_test.rb +0 -9
@@ -1,4 +0,0 @@
1
- Rails.application.routes.draw do
2
-
3
- mount Spina::Engine => '/'
4
- end
@@ -1,7 +0,0 @@
1
- development:
2
- secret_token: b2c9f1acae0dba14023782b8c846a7b403ae0e736aac18c695096e2ff9a90c93cbb621cca7d8a35e4e4af9cf1e3d747167fc94cb89eeb7526a75801c643b3006
3
- secret_key_base: 658ed37c472e85609095836720f0f9e11b435fa2e91f466e34419a2efa27f210e481636b131bdc8f0ba9e221f16d653a8724d2f5eb4b5e767073509d93dc3a82
4
-
5
- test:
6
- secret_token: 99173f12cbe7b642b08e5a432244e7cbffed79561c8196a527d2077e49291d8ffc57e030a448d2f9389e3eabb447ee9f8c54c64a3d85dd66047d6a2fb9e5877f
7
- secret_key_base: 68b02c3977dde8d2e69fdc42753d49c9c7bcf427c6b6c4405666479522bf9f5484ddf7ea12330721043f4ad302754abbebebab8aae50022e2f73ee64fbb70a23
@@ -1,167 +0,0 @@
1
- # This migration comes from spina (originally 20150507135428)
2
- class CreateSpinaTables < ActiveRecord::Migration
3
- def change
4
- create_table "spina_accounts", force: :cascade do |t|
5
- t.string "name"
6
- t.string "address"
7
- t.string "postal_code"
8
- t.string "city"
9
- t.string "phone"
10
- t.string "email"
11
- t.text "preferences"
12
- t.string "logo"
13
- t.datetime "created_at", null: false
14
- t.datetime "updated_at", null: false
15
- t.string "kvk_identifier"
16
- t.string "vat_identifier"
17
- t.boolean "robots_allowed", default: false
18
- end
19
-
20
- create_table "spina_attachment_collections", force: :cascade do |t|
21
- t.datetime "created_at", null: false
22
- t.datetime "updated_at", null: false
23
- end
24
-
25
- create_table "spina_attachment_collections_attachments", force: :cascade do |t|
26
- t.integer "attachment_collection_id"
27
- t.integer "attachment_id"
28
- end
29
-
30
- create_table "spina_attachments", force: :cascade do |t|
31
- t.string "file"
32
- t.datetime "created_at", null: false
33
- t.datetime "updated_at", null: false
34
- end
35
-
36
- create_table "spina_colors", force: :cascade do |t|
37
- t.text "content"
38
- t.datetime "created_at"
39
- t.datetime "updated_at"
40
- end
41
-
42
- create_table "spina_inquiries", force: :cascade do |t|
43
- t.string "name"
44
- t.string "email"
45
- t.string "phone"
46
- t.text "message"
47
- t.boolean "archived", default: false
48
- t.datetime "created_at", null: false
49
- t.datetime "updated_at", null: false
50
- t.boolean "spam"
51
- end
52
-
53
- create_table "spina_layout_parts", force: :cascade do |t|
54
- t.string "title"
55
- t.string "name"
56
- t.integer "layout_partable_id"
57
- t.string "layout_partable_type"
58
- t.datetime "created_at"
59
- t.datetime "updated_at"
60
- t.integer "account_id"
61
- end
62
-
63
- create_table "spina_lines", force: :cascade do |t|
64
- t.string "content"
65
- t.datetime "created_at"
66
- t.datetime "updated_at"
67
- end
68
-
69
- create_table "spina_page_parts", force: :cascade do |t|
70
- t.string "title"
71
- t.string "name"
72
- t.datetime "created_at", null: false
73
- t.datetime "updated_at", null: false
74
- t.integer "page_id"
75
- t.integer "page_partable_id"
76
- t.string "page_partable_type"
77
- end
78
-
79
- create_table "spina_pages", force: :cascade do |t|
80
- t.string "title"
81
- t.string "menu_title"
82
- t.string "description"
83
- t.boolean "show_in_menu", default: true
84
- t.string "slug"
85
- t.boolean "deletable", default: true
86
- t.datetime "created_at", null: false
87
- t.datetime "updated_at", null: false
88
- t.string "name"
89
- t.string "seo_title"
90
- t.boolean "skip_to_first_child", default: false
91
- t.string "view_template"
92
- t.string "layout_template"
93
- t.boolean "draft", default: false
94
- t.string "link_url"
95
- t.string "ancestry"
96
- t.integer "position"
97
- t.string "materialized_path"
98
- t.boolean "active", default: true
99
- end
100
-
101
- create_table "spina_photo_collections", force: :cascade do |t|
102
- t.datetime "created_at", null: false
103
- t.datetime "updated_at", null: false
104
- end
105
-
106
- create_table "spina_photo_collections_photos", force: :cascade do |t|
107
- t.integer "photo_collection_id"
108
- t.integer "photo_id"
109
- t.integer "position"
110
- end
111
-
112
- create_table "spina_photos", force: :cascade do |t|
113
- t.string "file"
114
- t.datetime "created_at", null: false
115
- t.datetime "updated_at", null: false
116
- end
117
-
118
- create_table "spina_structure_items", force: :cascade do |t|
119
- t.integer "structure_id"
120
- t.integer "position"
121
- t.datetime "created_at"
122
- t.datetime "updated_at"
123
- end
124
-
125
- add_index "spina_structure_items", ["structure_id"], name: "index_spina_structure_items_on_structure_id", using: :btree
126
-
127
- create_table "spina_structure_parts", force: :cascade do |t|
128
- t.integer "structure_item_id"
129
- t.integer "structure_partable_id"
130
- t.string "structure_partable_type"
131
- t.string "name"
132
- t.string "title"
133
- t.datetime "created_at"
134
- t.datetime "updated_at"
135
- end
136
-
137
- add_index "spina_structure_parts", ["structure_item_id"], name: "index_spina_structure_parts_on_structure_item_id", using: :btree
138
- add_index "spina_structure_parts", ["structure_partable_id"], name: "index_spina_structure_parts_on_structure_partable_id", using: :btree
139
-
140
- create_table "spina_structures", force: :cascade do |t|
141
- t.datetime "created_at"
142
- t.datetime "updated_at"
143
- end
144
-
145
- create_table "spina_texts", force: :cascade do |t|
146
- t.text "content"
147
- t.datetime "created_at"
148
- t.datetime "updated_at"
149
- end
150
-
151
- create_table "spina_users", force: :cascade do |t|
152
- t.string "name"
153
- t.string "email"
154
- t.string "password_digest"
155
- t.boolean "admin", default: false
156
- t.datetime "created_at", null: false
157
- t.datetime "updated_at", null: false
158
- t.datetime "last_logged_in"
159
- end
160
-
161
- create_table "spina_rewrite_rules", force: :cascade do |t|
162
- t.string :old_path
163
- t.string :new_path
164
- t.timestamps
165
- end
166
- end
167
- end
@@ -1,183 +0,0 @@
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: 20160114085213) do
15
-
16
- # These are extensions that must be enabled in order to support this database
17
- enable_extension "plpgsql"
18
-
19
- create_table "spina_accounts", force: :cascade do |t|
20
- t.string "name"
21
- t.string "address"
22
- t.string "postal_code"
23
- t.string "city"
24
- t.string "phone"
25
- t.string "email"
26
- t.text "preferences"
27
- t.string "logo"
28
- t.datetime "created_at", null: false
29
- t.datetime "updated_at", null: false
30
- t.string "kvk_identifier"
31
- t.string "vat_identifier"
32
- t.boolean "robots_allowed", default: false
33
- end
34
-
35
- create_table "spina_attachment_collections", force: :cascade do |t|
36
- t.datetime "created_at", null: false
37
- t.datetime "updated_at", null: false
38
- end
39
-
40
- create_table "spina_attachment_collections_attachments", force: :cascade do |t|
41
- t.integer "attachment_collection_id"
42
- t.integer "attachment_id"
43
- end
44
-
45
- create_table "spina_attachments", force: :cascade do |t|
46
- t.string "file"
47
- t.datetime "created_at", null: false
48
- t.datetime "updated_at", null: false
49
- end
50
-
51
- create_table "spina_colors", force: :cascade do |t|
52
- t.text "content"
53
- t.datetime "created_at"
54
- t.datetime "updated_at"
55
- end
56
-
57
- create_table "spina_inquiries", force: :cascade do |t|
58
- t.string "name"
59
- t.string "email"
60
- t.string "phone"
61
- t.text "message"
62
- t.boolean "archived", default: false
63
- t.datetime "created_at", null: false
64
- t.datetime "updated_at", null: false
65
- t.boolean "spam"
66
- end
67
-
68
- create_table "spina_layout_parts", force: :cascade do |t|
69
- t.string "title"
70
- t.string "name"
71
- t.integer "layout_partable_id"
72
- t.string "layout_partable_type"
73
- t.datetime "created_at"
74
- t.datetime "updated_at"
75
- t.integer "account_id"
76
- end
77
-
78
- create_table "spina_lines", force: :cascade do |t|
79
- t.string "content"
80
- t.datetime "created_at"
81
- t.datetime "updated_at"
82
- end
83
-
84
- create_table "spina_page_parts", force: :cascade do |t|
85
- t.string "title"
86
- t.string "name"
87
- t.datetime "created_at", null: false
88
- t.datetime "updated_at", null: false
89
- t.integer "page_id"
90
- t.integer "page_partable_id"
91
- t.string "page_partable_type"
92
- end
93
-
94
- create_table "spina_pages", force: :cascade do |t|
95
- t.string "title"
96
- t.string "menu_title"
97
- t.string "description"
98
- t.boolean "show_in_menu", default: true
99
- t.string "slug"
100
- t.boolean "deletable", default: true
101
- t.datetime "created_at", null: false
102
- t.datetime "updated_at", null: false
103
- t.string "name"
104
- t.string "seo_title"
105
- t.boolean "skip_to_first_child", default: false
106
- t.string "view_template"
107
- t.string "layout_template"
108
- t.boolean "draft", default: false
109
- t.string "link_url"
110
- t.string "ancestry"
111
- t.integer "position"
112
- t.string "materialized_path"
113
- t.boolean "active", default: true
114
- end
115
-
116
- create_table "spina_photo_collections", force: :cascade do |t|
117
- t.datetime "created_at", null: false
118
- t.datetime "updated_at", null: false
119
- end
120
-
121
- create_table "spina_photo_collections_photos", force: :cascade do |t|
122
- t.integer "photo_collection_id"
123
- t.integer "photo_id"
124
- t.integer "position"
125
- end
126
-
127
- create_table "spina_photos", force: :cascade do |t|
128
- t.string "file"
129
- t.datetime "created_at", null: false
130
- t.datetime "updated_at", null: false
131
- end
132
-
133
- create_table "spina_rewrite_rules", force: :cascade do |t|
134
- t.string "old_path"
135
- t.string "new_path"
136
- t.datetime "created_at"
137
- t.datetime "updated_at"
138
- end
139
-
140
- create_table "spina_structure_items", force: :cascade do |t|
141
- t.integer "structure_id"
142
- t.integer "position"
143
- t.datetime "created_at"
144
- t.datetime "updated_at"
145
- end
146
-
147
- add_index "spina_structure_items", ["structure_id"], name: "index_spina_structure_items_on_structure_id", using: :btree
148
-
149
- create_table "spina_structure_parts", force: :cascade do |t|
150
- t.integer "structure_item_id"
151
- t.integer "structure_partable_id"
152
- t.string "structure_partable_type"
153
- t.string "name"
154
- t.string "title"
155
- t.datetime "created_at"
156
- t.datetime "updated_at"
157
- end
158
-
159
- add_index "spina_structure_parts", ["structure_item_id"], name: "index_spina_structure_parts_on_structure_item_id", using: :btree
160
- add_index "spina_structure_parts", ["structure_partable_id"], name: "index_spina_structure_parts_on_structure_partable_id", using: :btree
161
-
162
- create_table "spina_structures", force: :cascade do |t|
163
- t.datetime "created_at"
164
- t.datetime "updated_at"
165
- end
166
-
167
- create_table "spina_texts", force: :cascade do |t|
168
- t.text "content"
169
- t.datetime "created_at"
170
- t.datetime "updated_at"
171
- end
172
-
173
- create_table "spina_users", force: :cascade do |t|
174
- t.string "name"
175
- t.string "email"
176
- t.string "password_digest"
177
- t.boolean "admin", default: false
178
- t.datetime "created_at", null: false
179
- t.datetime "updated_at", null: false
180
- t.datetime "last_logged_in"
181
- end
182
-
183
- end
@@ -1 +0,0 @@
1
- Spina::Engine.load_seed
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/404.html -->
21
- <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- </div>
24
- </body>
25
- </html>