comfypress 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.travis.yml +22 -0
  4. data/Gemfile +22 -0
  5. data/Gemfile.lock +175 -0
  6. data/LICENSE +20 -0
  7. data/README.md +79 -0
  8. data/Rakefile +5 -0
  9. data/app/assets/images/comfypress/arrow_bottom.gif +0 -0
  10. data/app/assets/images/comfypress/arrow_right.gif +0 -0
  11. data/app/assets/images/comfypress/bootstrap/glyphicons-halflings-white.png +0 -0
  12. data/app/assets/images/comfypress/bootstrap/glyphicons-halflings.png +0 -0
  13. data/app/assets/images/comfypress/checkerboard.gif +0 -0
  14. data/app/assets/images/comfypress/icon_draft.gif +0 -0
  15. data/app/assets/images/comfypress/icon_file.gif +0 -0
  16. data/app/assets/images/comfypress/icon_layout.gif +0 -0
  17. data/app/assets/images/comfypress/icon_move.gif +0 -0
  18. data/app/assets/images/comfypress/icon_page.gif +0 -0
  19. data/app/assets/images/comfypress/icon_site.gif +0 -0
  20. data/app/assets/images/comfypress/icon_snippet.gif +0 -0
  21. data/app/assets/images/comfypress/nav_arrow.png +0 -0
  22. data/app/assets/javascripts/comfypress/admin/application.js +1 -0
  23. data/app/assets/javascripts/comfypress/application.js.coffee +175 -0
  24. data/app/assets/javascripts/comfypress/lib/bootstrap-datetimepicker.js +21 -0
  25. data/app/assets/javascripts/comfypress/lib/bootstrap-wysihtml5.js +492 -0
  26. data/app/assets/javascripts/comfypress/lib/bootstrap.js +6 -0
  27. data/app/assets/javascripts/comfypress/lib/codemirror.js +10 -0
  28. data/app/assets/javascripts/comfypress/lib/wysihtml5.js +261 -0
  29. data/app/assets/stylesheets/comfypress/admin/application.css +1 -0
  30. data/app/assets/stylesheets/comfypress/application.css.sass +8 -0
  31. data/app/assets/stylesheets/comfypress/base.css.sass +333 -0
  32. data/app/assets/stylesheets/comfypress/bootstrap_overrides.css.sass +45 -0
  33. data/app/assets/stylesheets/comfypress/codemirror_overrides.css.sass +27 -0
  34. data/app/assets/stylesheets/comfypress/lib/bootstrap-datetimepicker.css +9 -0
  35. data/app/assets/stylesheets/comfypress/lib/bootstrap-wysihtml5.css +102 -0
  36. data/app/assets/stylesheets/comfypress/lib/bootstrap.css +9 -0
  37. data/app/assets/stylesheets/comfypress/lib/codemirror.css +240 -0
  38. data/app/assets/stylesheets/comfypress/wysihtml5_overrides.css.sass +5 -0
  39. data/app/controllers/application_controller.rb +5 -0
  40. data/app/controllers/cms_admin/base_controller.rb +51 -0
  41. data/app/controllers/cms_admin/categories_controller.rb +35 -0
  42. data/app/controllers/cms_admin/files_controller.rb +108 -0
  43. data/app/controllers/cms_admin/layouts_controller.rb +67 -0
  44. data/app/controllers/cms_admin/menu_items_controller.rb +65 -0
  45. data/app/controllers/cms_admin/menus_controller.rb +60 -0
  46. data/app/controllers/cms_admin/pages_controller.rb +112 -0
  47. data/app/controllers/cms_admin/revisions_controller.rb +57 -0
  48. data/app/controllers/cms_admin/sites_controller.rb +64 -0
  49. data/app/controllers/cms_admin/snippets_controller.rb +64 -0
  50. data/app/controllers/cms_content_controller.rb +79 -0
  51. data/app/helpers/application_helper.rb +16 -0
  52. data/app/models/cms/block.rb +48 -0
  53. data/app/models/cms/categorization.rb +21 -0
  54. data/app/models/cms/category.rb +30 -0
  55. data/app/models/cms/file.rb +75 -0
  56. data/app/models/cms/layout.rb +99 -0
  57. data/app/models/cms/menu.rb +26 -0
  58. data/app/models/cms/menu_item.rb +14 -0
  59. data/app/models/cms/page.rb +202 -0
  60. data/app/models/cms/revision.rb +17 -0
  61. data/app/models/cms/site.rb +113 -0
  62. data/app/models/cms/snippet.rb +58 -0
  63. data/app/models/cms.rb +5 -0
  64. data/app/views/cms_admin/categories/_categories.html.haml +3 -0
  65. data/app/views/cms_admin/categories/_edit.html.haml +6 -0
  66. data/app/views/cms_admin/categories/_form.html.haml +8 -0
  67. data/app/views/cms_admin/categories/_index.html.haml +24 -0
  68. data/app/views/cms_admin/categories/_show.html.haml +13 -0
  69. data/app/views/cms_admin/categories/create.js.erb +7 -0
  70. data/app/views/cms_admin/categories/destroy.js.erb +3 -0
  71. data/app/views/cms_admin/categories/edit.js.erb +3 -0
  72. data/app/views/cms_admin/categories/update.js.erb +6 -0
  73. data/app/views/cms_admin/files/_file.html.haml +13 -0
  74. data/app/views/cms_admin/files/_form.html.haml +14 -0
  75. data/app/views/cms_admin/files/_index.html.haml +14 -0
  76. data/app/views/cms_admin/files/_page_form.html.haml +9 -0
  77. data/app/views/cms_admin/files/destroy.js.coffee +2 -0
  78. data/app/views/cms_admin/files/edit.html.haml +5 -0
  79. data/app/views/cms_admin/files/index.html.haml +28 -0
  80. data/app/views/cms_admin/files/new.html.haml +5 -0
  81. data/app/views/cms_admin/layouts/_form.html.haml +17 -0
  82. data/app/views/cms_admin/layouts/_index_branch.html.haml +23 -0
  83. data/app/views/cms_admin/layouts/edit.html.haml +9 -0
  84. data/app/views/cms_admin/layouts/index.html.haml +9 -0
  85. data/app/views/cms_admin/layouts/new.html.haml +5 -0
  86. data/app/views/cms_admin/menu_items/_form.html.haml +22 -0
  87. data/app/views/cms_admin/menu_items/edit.html.haml +8 -0
  88. data/app/views/cms_admin/menu_items/index.html.haml +24 -0
  89. data/app/views/cms_admin/menu_items/new.html.haml +5 -0
  90. data/app/views/cms_admin/menus/_form.html.haml +8 -0
  91. data/app/views/cms_admin/menus/edit.html.haml +8 -0
  92. data/app/views/cms_admin/menus/index.html.haml +24 -0
  93. data/app/views/cms_admin/menus/new.html.haml +5 -0
  94. data/app/views/cms_admin/pages/_form.html.haml +38 -0
  95. data/app/views/cms_admin/pages/_form_blocks.html.haml +28 -0
  96. data/app/views/cms_admin/pages/_index_branch.html.haml +35 -0
  97. data/app/views/cms_admin/pages/edit.html.haml +9 -0
  98. data/app/views/cms_admin/pages/form_blocks.js.erb +2 -0
  99. data/app/views/cms_admin/pages/index.html.haml +11 -0
  100. data/app/views/cms_admin/pages/new.html.haml +5 -0
  101. data/app/views/cms_admin/pages/toggle_branch.js.erb +11 -0
  102. data/app/views/cms_admin/revisions/show.html.haml +28 -0
  103. data/app/views/cms_admin/sites/_form.html.haml +14 -0
  104. data/app/views/cms_admin/sites/_mirrors.html.haml +17 -0
  105. data/app/views/cms_admin/sites/edit.html.haml +5 -0
  106. data/app/views/cms_admin/sites/index.html.haml +24 -0
  107. data/app/views/cms_admin/sites/new.html.haml +5 -0
  108. data/app/views/cms_admin/snippets/_form.html.haml +11 -0
  109. data/app/views/cms_admin/snippets/edit.html.haml +9 -0
  110. data/app/views/cms_admin/snippets/index.html.haml +28 -0
  111. data/app/views/cms_admin/snippets/new.html.haml +5 -0
  112. data/app/views/cms_content/_menu.html.haml +5 -0
  113. data/app/views/cms_content/render_sitemap.xml.builder +15 -0
  114. data/app/views/layouts/cms_admin/_body.html.haml +16 -0
  115. data/app/views/layouts/cms_admin/_center.html.haml +7 -0
  116. data/app/views/layouts/cms_admin/_footer.html.haml +3 -0
  117. data/app/views/layouts/cms_admin/_footer_js.html.haml +7 -0
  118. data/app/views/layouts/cms_admin/_head.html.haml +12 -0
  119. data/app/views/layouts/cms_admin/_left.html.haml +11 -0
  120. data/app/views/layouts/cms_admin/_right.html.haml +1 -0
  121. data/app/views/layouts/cms_admin.html.haml +4 -0
  122. data/comfypress.gemspec +28 -0
  123. data/config/application.rb +69 -0
  124. data/config/boot.rb +6 -0
  125. data/config/database.sqlite.yml +47 -0
  126. data/config/database.yml +47 -0
  127. data/config/environment.rb +5 -0
  128. data/config/environments/development.rb +39 -0
  129. data/config/environments/production.rb +67 -0
  130. data/config/environments/test.rb +39 -0
  131. data/config/initializers/comfypress.rb +100 -0
  132. data/config/initializers/paperclip.rb +3 -0
  133. data/config/locales/de.yml +236 -0
  134. data/config/locales/en.yml +285 -0
  135. data/config/locales/es.yml +236 -0
  136. data/config/locales/fr.yml +236 -0
  137. data/config/locales/ja.yml +237 -0
  138. data/config/locales/pl.yml +236 -0
  139. data/config/locales/pt-BR.yml +236 -0
  140. data/config/locales/ru.yml +236 -0
  141. data/config/locales/sv.yml +236 -0
  142. data/config/locales/zh-CN.yml +236 -0
  143. data/config/routes.rb +10 -0
  144. data/config.ru +4 -0
  145. data/db/cms_fixtures/sample-site/layouts/default/_default.yml +1 -0
  146. data/db/cms_fixtures/sample-site/layouts/default/content.html +5 -0
  147. data/db/cms_fixtures/sample-site/layouts/default/css.css +1 -0
  148. data/db/cms_fixtures/sample-site/layouts/default/js.js +1 -0
  149. data/db/cms_fixtures/sample-site/layouts/default/nested/_nested.yml +2 -0
  150. data/db/cms_fixtures/sample-site/layouts/default/nested/content.html +2 -0
  151. data/db/cms_fixtures/sample-site/layouts/default/nested/css.css +1 -0
  152. data/db/cms_fixtures/sample-site/layouts/default/nested/js.js +1 -0
  153. data/db/cms_fixtures/sample-site/pages/index/_index.yml +2 -0
  154. data/db/cms_fixtures/sample-site/pages/index/child/_child.yml +3 -0
  155. data/db/cms_fixtures/sample-site/pages/index/child/left.html +1 -0
  156. data/db/cms_fixtures/sample-site/pages/index/child/right.html +1 -0
  157. data/db/cms_fixtures/sample-site/pages/index/content.html +2 -0
  158. data/db/cms_fixtures/sample-site/snippets/default/_default.yml +1 -0
  159. data/db/cms_fixtures/sample-site/snippets/default/content.html +1 -0
  160. data/db/migrate/01_create_cms.rb +163 -0
  161. data/db/seeds.rb +9 -0
  162. data/db/upgrade_migrations/02_upgrade_to_1_1_0.rb +19 -0
  163. data/db/upgrade_migrations/03_upgrade_to_1_2_0.rb +15 -0
  164. data/db/upgrade_migrations/04_upgrade_to_1_3_0.rb +23 -0
  165. data/db/upgrade_migrations/05_upgrade_to_1_4_0.rb +33 -0
  166. data/db/upgrade_migrations/06_upgrade_to_1_5_0.rb +21 -0
  167. data/db/upgrade_migrations/07_upgrade_to_1_6_0.rb +25 -0
  168. data/doc/preview.png +0 -0
  169. data/doc/sofa.png +0 -0
  170. data/lib/comfypress/authentication/dummy_auth.rb +8 -0
  171. data/lib/comfypress/authentication/http_auth.rb +18 -0
  172. data/lib/comfypress/configuration.rb +99 -0
  173. data/lib/comfypress/engine.rb +18 -0
  174. data/lib/comfypress/error.rb +24 -0
  175. data/lib/comfypress/extensions/acts_as_tree.rb +102 -0
  176. data/lib/comfypress/extensions/has_revisions.rb +64 -0
  177. data/lib/comfypress/extensions/is_categorized.rb +49 -0
  178. data/lib/comfypress/extensions/is_mirrored.rb +85 -0
  179. data/lib/comfypress/extensions/rails.rb +24 -0
  180. data/lib/comfypress/fixtures.rb +289 -0
  181. data/lib/comfypress/form_builder.rb +97 -0
  182. data/lib/comfypress/render_methods.rb +85 -0
  183. data/lib/comfypress/routing.rb +62 -0
  184. data/lib/comfypress/sitemap.rb +27 -0
  185. data/lib/comfypress/tag.rb +154 -0
  186. data/lib/comfypress/tags/asset.rb +25 -0
  187. data/lib/comfypress/tags/collection.rb +64 -0
  188. data/lib/comfypress/tags/field_datetime.rb +17 -0
  189. data/lib/comfypress/tags/field_integer.rb +17 -0
  190. data/lib/comfypress/tags/field_rich_text.rb +17 -0
  191. data/lib/comfypress/tags/field_string.rb +17 -0
  192. data/lib/comfypress/tags/field_text.rb +17 -0
  193. data/lib/comfypress/tags/file.rb +29 -0
  194. data/lib/comfypress/tags/helper.rb +24 -0
  195. data/lib/comfypress/tags/menu.rb +27 -0
  196. data/lib/comfypress/tags/page_datetime.rb +13 -0
  197. data/lib/comfypress/tags/page_file.rb +51 -0
  198. data/lib/comfypress/tags/page_files.rb +52 -0
  199. data/lib/comfypress/tags/page_integer.rb +13 -0
  200. data/lib/comfypress/tags/page_markdown.rb +22 -0
  201. data/lib/comfypress/tags/page_rich_text.rb +13 -0
  202. data/lib/comfypress/tags/page_string.rb +13 -0
  203. data/lib/comfypress/tags/page_text.rb +13 -0
  204. data/lib/comfypress/tags/partial.rb +23 -0
  205. data/lib/comfypress/tags/snippet.rb +19 -0
  206. data/lib/comfypress/version.rb +3 -0
  207. data/lib/comfypress/view_hooks.rb +32 -0
  208. data/lib/comfypress/view_methods.rb +52 -0
  209. data/lib/comfypress.rb +66 -0
  210. data/lib/generators/comfy/cms/README +10 -0
  211. data/lib/generators/comfy/cms/cms_generator.rb +57 -0
  212. data/lib/tasks/comfypress.rake +45 -0
  213. data/script/rails +6 -0
  214. data/test/fixtures/cms/blocks.yml +12 -0
  215. data/test/fixtures/cms/categories.yml +4 -0
  216. data/test/fixtures/cms/categorizations.yml +3 -0
  217. data/test/fixtures/cms/files.yml +9 -0
  218. data/test/fixtures/cms/layouts.yml +40 -0
  219. data/test/fixtures/cms/menu_items.yml +15 -0
  220. data/test/fixtures/cms/menus.yml +9 -0
  221. data/test/fixtures/cms/pages.yml +39 -0
  222. data/test/fixtures/cms/revisions.yml +21 -0
  223. data/test/fixtures/cms/sites.yml +6 -0
  224. data/test/fixtures/cms/snippets.yml +6 -0
  225. data/test/fixtures/files/data.zip +0 -0
  226. data/test/fixtures/files/document.pdf +0 -0
  227. data/test/fixtures/files/image.gif +0 -0
  228. data/test/fixtures/files/image.jpg +0 -0
  229. data/test/fixtures/views/_nav_hook.html.erb +1 -0
  230. data/test/fixtures/views/_nav_hook_2.html.erb +1 -0
  231. data/test/fixtures/views/render_test/_test.html.erb +1 -0
  232. data/test/fixtures/views/render_test/new.html.erb +1 -0
  233. data/test/fixtures/views/render_test/render_layout.html.erb +1 -0
  234. data/test/functional/cms_admin/base_controller_test.rb +18 -0
  235. data/test/functional/cms_admin/categories_controller_test.rb +70 -0
  236. data/test/functional/cms_admin/files_controller_test.rb +216 -0
  237. data/test/functional/cms_admin/layouts_controller_test.rb +123 -0
  238. data/test/functional/cms_admin/pages_controller_test.rb +450 -0
  239. data/test/functional/cms_admin/revisions_controller_test.rb +138 -0
  240. data/test/functional/cms_admin/sites_controller_test.rb +105 -0
  241. data/test/functional/cms_admin/snippets_controller_test.rb +140 -0
  242. data/test/functional/cms_content_controller_test.rb +205 -0
  243. data/test/gemfiles/Gemfile.rails.3.1 +16 -0
  244. data/test/gemfiles/Gemfile.rails.3.2 +16 -0
  245. data/test/gemfiles/Gemfile.rails.4.0 +16 -0
  246. data/test/integration/authentication_test.rb +48 -0
  247. data/test/integration/fixtures_test.rb +61 -0
  248. data/test/integration/mirrors_test.rb +72 -0
  249. data/test/integration/render_cms_test.rb +233 -0
  250. data/test/integration/sites_test.rb +120 -0
  251. data/test/integration/view_hooks_test.rb +43 -0
  252. data/test/test_helper.rb +124 -0
  253. data/test/unit/cms/menu_item_test.rb +7 -0
  254. data/test/unit/cms/menu_test.rb +7 -0
  255. data/test/unit/configuration_test.rb +42 -0
  256. data/test/unit/fixtures_test.rb +357 -0
  257. data/test/unit/mirrors_test.rb +242 -0
  258. data/test/unit/models/block_test.rb +199 -0
  259. data/test/unit/models/categorization_test.rb +76 -0
  260. data/test/unit/models/category_test.rb +39 -0
  261. data/test/unit/models/file_test.rb +89 -0
  262. data/test/unit/models/layout_test.rb +125 -0
  263. data/test/unit/models/page_test.rb +255 -0
  264. data/test/unit/models/site_test.rb +152 -0
  265. data/test/unit/models/snippet_test.rb +49 -0
  266. data/test/unit/revisions_test.rb +185 -0
  267. data/test/unit/sitemap_test.rb +20 -0
  268. data/test/unit/tag_test.rb +308 -0
  269. data/test/unit/tags/asset_test.rb +56 -0
  270. data/test/unit/tags/collection_test.rb +116 -0
  271. data/test/unit/tags/field_datetime_test.rb +50 -0
  272. data/test/unit/tags/field_integer_test.rb +49 -0
  273. data/test/unit/tags/field_rich_text_test.rb +49 -0
  274. data/test/unit/tags/field_string_test.rb +52 -0
  275. data/test/unit/tags/field_text_test.rb +48 -0
  276. data/test/unit/tags/file_test.rb +67 -0
  277. data/test/unit/tags/helper_test.rb +86 -0
  278. data/test/unit/tags/page_datetime_test.rb +50 -0
  279. data/test/unit/tags/page_file_test.rb +119 -0
  280. data/test/unit/tags/page_files_test.rb +113 -0
  281. data/test/unit/tags/page_integer_test.rb +49 -0
  282. data/test/unit/tags/page_markdown_test.rb +48 -0
  283. data/test/unit/tags/page_rich_text_test.rb +49 -0
  284. data/test/unit/tags/page_string_test.rb +49 -0
  285. data/test/unit/tags/page_text_test.rb +52 -0
  286. data/test/unit/tags/partial_test.rb +76 -0
  287. data/test/unit/tags/snippet_test.rb +45 -0
  288. data/test/unit/view_methods_test.rb +80 -0
  289. metadata +457 -0
@@ -0,0 +1,100 @@
1
+ # encoding: utf-8
2
+
3
+ ComfyPress.configure do |config|
4
+ # Title of the admin area
5
+ # config.cms_title = 'ComfyPress CMS Engine'
6
+
7
+ # Module responsible for authentication. You can replace it with your own.
8
+ # It simply needs to have #authenticate method. See http_auth.rb for reference.
9
+ # config.admin_auth = 'ComfyPress::HttpAuth'
10
+
11
+ # Module responsible for public authentication. Similar to the above. You also
12
+ # will have access to @cms_site, @cms_layout, @cms_page so you can use them in
13
+ # your logic. Default module doesn't do anything.
14
+ # config.public_auth = 'ComfyPress::DummyAuth'
15
+
16
+ # When arriving at /cms-admin you may chose to redirect to arbirtary path,
17
+ # for example '/cms-admin/users'
18
+ # config.admin_route_redirect = ''
19
+
20
+ # File uploads use Paperclip and can support filesystem or s3 uploads. Override
21
+ # the upload method and appropriate settings based on Paperclip. For S3 see:
22
+ # http://rdoc.info/gems/paperclip/2.3.8/Paperclip/Storage/S3, and for
23
+ # filesystem see: http://rdoc.info/gems/paperclip/2.3.8/Paperclip/Storage/Filesystem
24
+ # If you are using S3 and HTTPS, pass :s3_protocol => '' to have URLs that use the protocol of the page
25
+ # config.upload_file_options = {:url => '/system/:class/:id/:attachment/:style/:filename'}
26
+
27
+ # Sofa allows you to setup entire site from files. Database is updated with each
28
+ # request (if necessary). Please note that database entries are destroyed if there's
29
+ # no corresponding file. Fixtures are disabled by default.
30
+ # config.enable_fixtures = false
31
+
32
+ # Path where fixtures can be located.
33
+ # config.fixtures_path = File.expand_path('db/cms_fixtures', Rails.root)
34
+
35
+ # Importing fixtures into Database
36
+ # To load fixtures into the database just run this rake task:
37
+ # local: $ rake comfypress:fixtures:import FROM=example.local TO=localhost
38
+ # Heroku: $ heroku run rake comfypress:fixtures:import FROM=example.local TO=yourapp.herokuapp.com
39
+ # From indicates folder the fixtures are in and to is the Site hostname you have defined in the database.
40
+
41
+ # Exporting fixtures into Files
42
+ # If you need to dump database contents into fixture files run:
43
+ # local: $ rake comfypress:fixtures:export FROM=localhost TO=example.local
44
+ # Heroku: $ heroku run rake comfypress:fixtures:export FROM=yourapp.herokuapp.com TO=example.local
45
+ # This will create example.local folder and dump all content from example.com Site.
46
+
47
+ # Content for Layouts, Pages and Snippets has a revision history. You can revert
48
+ # a previous version using this system. You can control how many revisions per
49
+ # object you want to keep. Set it to 0 if you wish to turn this feature off.
50
+ # config.revisions_limit = 25
51
+
52
+ # Locale definitions. If you want to define your own locale merge
53
+ # {:locale => 'Locale Title'} with this.
54
+ # config.locales = {:en => 'English', :es => 'Español'}
55
+
56
+ # Admin interface will respect the locale of the site being managed. However you can
57
+ # force it to English by setting this to `:en`
58
+ # config.admin_locale = nil
59
+
60
+ # If you want to keep your CMS tables in a location other than the default database
61
+ # add a database_config. For example, setting it to 'cms' will look for a cms_#{Rails.env}
62
+ # definition in your database.yml file
63
+ # config.database_config = nil
64
+
65
+ # A class that is included as a sweeper to admin base controller if it's set
66
+ # config.admin_cache_sweeper = nil
67
+
68
+ # By default you cannot have irb code inside your layouts/pages/snippets.
69
+ # Generally this is to prevent putting something like this:
70
+ # <% User.delete_all %> but if you really want to allow it...
71
+ # config.allow_irb = false
72
+
73
+ # Whitelist of all helper methods that can be used via {{cms:helper}} tag. By default
74
+ # all helpers are allowed except `eval`, `send`, `call` and few others. Empty array
75
+ # will prevent rendering of all helpers.
76
+ # config.allowed_helpers = nil
77
+
78
+ # Whitelist of partials paths that can be used via {{cms:partial}} tag. All partials
79
+ # are accessible by default. Empty array will prevent rendering of all partials.
80
+ # config.allowed_partials = nil
81
+
82
+ # Site aliases, if you want to have aliases for your site. Good for harmonizing
83
+ # production env with dev/testing envs.
84
+ # e.g. config.hostname_aliases = {'host.com' => 'host.inv', 'host_a.com' => ['host.lvh.me', 'host.dev']}
85
+ # Default is nil (not used)
86
+ # config.hostname_aliases = nil
87
+
88
+ end
89
+
90
+ # Default credentials for ComfyPress::HttpAuth
91
+ # YOU REALLY WANT TO CHANGE THIS BEFORE PUTTING YOUR SITE LIVE
92
+ ComfyPress::HttpAuth.username = 'username'
93
+ ComfyPress::HttpAuth.password = 'password'
94
+
95
+ # If you need to inject some html in cms admin views you can define what partial
96
+ # should be rendered into the following areas:
97
+ # ComfyPress::ViewHooks.add(:header, '/layouts/admin/header')
98
+ # ComfyPress::ViewHooks.add(:navigation, '/layouts/admin/navigation')
99
+ # ComfyPress::ViewHooks.add(:html_head, '/layouts/admin/html_head')
100
+ # ComfyPress::ViewHooks.add(:page_form, '/layouts/admin/page_form')
@@ -0,0 +1,3 @@
1
+ defined?(Paperclip) && Paperclip.options[:command_path] = case Rails.env
2
+ when 'development', 'test' then '/usr/local/bin'
3
+ end
@@ -0,0 +1,236 @@
1
+ # encoding: utf-8
2
+ de:
3
+ # -- Models ---------------------------------------------------------------
4
+ attributes:
5
+ label: Bezeichnung
6
+ slug: Slug
7
+ parent_id: Parent
8
+ content: Inhalt
9
+ identifier: Identifikator
10
+ activerecord:
11
+ models:
12
+ cms/site: Web-Site
13
+ cms/layout: Layout
14
+ cms/page: Seite
15
+ cms/snippet: Schnipsel
16
+ cms/file: Datei
17
+ attributes:
18
+ cms/site:
19
+ identifier: Identifikator
20
+ hostname: Hostname
21
+ path: Pfad
22
+ locale: Sprache
23
+ is_mirrored: Gespiegelt
24
+ cms/layout:
25
+ identifier: Identifikator
26
+ label: Layout Name
27
+ app_layout: App Layout
28
+ parent_id: Parent Layout
29
+ css: Stylesheet
30
+ js: Javascript
31
+ cms/page:
32
+ label: Bezeichnung
33
+ layout_id: Layout
34
+ slug: Slug
35
+ target_page_id: Weiterleiten zu Seite
36
+ is_published: Veröffentlicht
37
+ cms/file:
38
+ file: Datei
39
+ description: Beschreibung
40
+ cms/snippet:
41
+ identifier: Identifikator
42
+
43
+ # -- Controllers ----------------------------------------------------------
44
+ cms:
45
+ base:
46
+ site_not_found: Web-Site nicht gefunden
47
+ fixtures_enabled: CMS Fixtures are aktiviert. Alle Änderungen hier gespeichert werden verworfen.
48
+
49
+ sites:
50
+ created: Web-Site erstellt
51
+ creation_failure: Fehler beim erstellen der Web-Site
52
+ updated: Web-Site aktualisiert
53
+ update_failure: Fehler beim speichern der Web-Site
54
+ deleted: Web-Site gelöscht
55
+ not_found: Web-Site nicht gefunden
56
+
57
+ layouts:
58
+ created: Layout erstellt
59
+ creation_failure: Fehler beim erstellen des Layouts
60
+ updated: Layout aktualisiert
61
+ update_failure: Fehler beim speichern des Layouts
62
+ deleted: Layout gelöscht
63
+ not_found: Layout nicht gefunden
64
+
65
+ pages:
66
+ created: Seite erstellt
67
+ creation_failure: Fehler beim erstellen der Seite
68
+ updated: Seite aktualisiert
69
+ update_failure: Fehler beim speichern der Seite
70
+ deleted: Seite gelöscht
71
+ not_found: Seite nicht gefunden
72
+ layout_not_found: Kein Layout gefunden. Bitte erstellen Sie eines.
73
+
74
+ snippets:
75
+ created: Schnipsel erstellt
76
+ creation_failure: Fehler beim erstellen des Schnipsels
77
+ updated: Schnipsel aktualisiert
78
+ update_failure: Fehler beim speichern des Schnipsel
79
+ deleted: Schnipsel gelöscht
80
+ not_found: Schnipsel nicht gefunden
81
+
82
+ revisions:
83
+ reverted: Inhalt wiederhergestellt
84
+ record_not_found: Eintrag nicht gefunden
85
+ not_found: Revision nicht gefunden
86
+
87
+ files:
88
+ created: Datei hochgeladet
89
+ creation_failure: Fehler beim hochladen der Datei
90
+ updated: Datei hochgeladet
91
+ update_failure: Fehler beim hochladen der Datei
92
+ deleted: Datei gelöscht
93
+ not_found: Datei nicht gefunden
94
+
95
+ content:
96
+ site_not_found: Web-Site nicht gefunden
97
+ layout_not_found: Layout nicht gefunden
98
+ page_not_found: Seite nicht gefunden
99
+
100
+ # -- Views ----------------------------------------------------------------
101
+ cms_admin:
102
+ base:
103
+ sites: Web-Sites
104
+ layouts: Layouts
105
+ pages: Seiten
106
+ snippets: Schnipsel
107
+ files: Datei
108
+
109
+ sites:
110
+ index:
111
+ title: Web-Sites
112
+ new_link: Erstelle neue Web-Site
113
+ select: Wähle Web-Site
114
+ edit: Bearbeiten
115
+ delete: Löschen
116
+ are_you_sure: Sind Sie sicher, dass Sie diese Web-Site löschen wollen?
117
+ new:
118
+ title: Neue Web-Site
119
+ edit:
120
+ title: Web-Site bearbeiten
121
+ form:
122
+ create: Erstelle Web-Site
123
+ update: Web-Site speichern
124
+ is_mirrored: Gespiegelt
125
+
126
+ layouts:
127
+ index:
128
+ title: Layouts
129
+ new_link: Erstelle neue Layout
130
+ index_branch:
131
+ add_child_layout: Erstelle untergeordnetes Layout
132
+ edit: Bearbeiten
133
+ delete: Löschen
134
+ are_you_sure: Sind Sie sicher?
135
+ new:
136
+ title: Neues Layout
137
+ edit:
138
+ title: Layout bearbeiten
139
+ revision: Revision
140
+ form:
141
+ select_parent_layout: Select Parent Layout
142
+ select_app_layout: Select Application Layout
143
+ create: Erstelle Layout
144
+ update: Layout speichern
145
+
146
+ pages:
147
+ index:
148
+ title: Seiten
149
+ new_link: Erstelle neue Seite
150
+ index_branch:
151
+ toggle: Toggle
152
+ add_child_page: Erstelle untergeordnete Seite
153
+ edit: Bearbeiten
154
+ delete: Löschen
155
+ are_you_sure: Sind Sie sicher?
156
+ new:
157
+ title: Neue Seite
158
+ edit:
159
+ title: Seite bearbeiten
160
+ revision: Revision
161
+ form:
162
+ select_target_page: Keine Weiterleitung
163
+ preview: Vorschau
164
+ create: Erstelle Seite
165
+ update: Seite speichern
166
+ is_published: Veröffentlicht
167
+ form_blocks:
168
+ no_tags: |-
169
+ Layout has hat keine Inhalt-Tags definiert.<br/>
170
+ Bearbeiten den Inhalt des Layout um ein Inhalt-Tag hinzuzufügen. Zum Beispiel: <code>{{cms:page:content}}</code>
171
+
172
+ snippets:
173
+ index:
174
+ title: Schnipsels
175
+ new_link: Erstelle neuen Schnipsel
176
+ edit: Bearbeiten
177
+ delete: Löschen
178
+ are_you_sure: Sind Sie sicher?
179
+ new:
180
+ title: Neuer Schnipsel
181
+ edit:
182
+ title: Schnipsel bearbeiten
183
+ revision: Revision
184
+ form:
185
+ create: Erstelle Schnipsel
186
+ update: Schnipsel speichern
187
+
188
+ revisions:
189
+ show:
190
+ title: Revisionen von
191
+ revision: Revision
192
+ full_path: Completer Pfad
193
+ slug: Slug
194
+ update: Zurücksetzen auf diese Revision
195
+ current: Aktuell
196
+
197
+ files:
198
+ index:
199
+ title: Datei
200
+ new_link: Neue Datei hochladen
201
+ edit: Bearbeiten
202
+ delete: Löschen
203
+ are_you_sure: Sind Sie sicher?
204
+ button: Datei hochladen
205
+ new:
206
+ title: Neue Datei
207
+ edit:
208
+ title: Datei bearbeiten
209
+ form:
210
+ current_file: Aktuelle Datei
211
+ create: Lade Datei hoch
212
+ update: Datei speichern
213
+ page_form:
214
+ are_you_sure: Sind Sie sicher?
215
+ file:
216
+ are_you_sure: Sind Sie sicher?
217
+
218
+ categories:
219
+ index:
220
+ label: Kategorien
221
+ edit: Bearbeiten
222
+ done: Erledigt
223
+ all: Alle
224
+ add: Hinzuzufügen
225
+ show:
226
+ are_you_sure: Sind Sie sicher?
227
+ edit:
228
+ save: Speichern
229
+ form:
230
+ label: Kategorien
231
+
232
+ dialogs:
233
+ image:
234
+ insert: Bild einfügen
235
+ link:
236
+ create: Link erstellen
@@ -0,0 +1,285 @@
1
+ # encoding: utf-8
2
+ en:
3
+ # -- Models ---------------------------------------------------------------
4
+ attributes:
5
+ label: Label
6
+ slug: Slug
7
+ parent_id: Parent
8
+ content: Content
9
+ identifier: Identifier
10
+ activerecord:
11
+ models:
12
+ cms/site: Site
13
+ cms/layout: Layout
14
+ cms/page: Page
15
+ cms/snippet: Snippet
16
+ cms/file: File
17
+ attributes:
18
+ cms/site:
19
+ identifier: Identifier
20
+ hostname: Hostname
21
+ path: Path
22
+ locale: Language
23
+ is_mirrored: Mirrored
24
+ cms/layout:
25
+ identifier: Identifier
26
+ label: Layout Name
27
+ app_layout: App Layout
28
+ parent_id: Parent Layout
29
+ css: Stylesheet
30
+ js: Javascript
31
+ cms/page:
32
+ label: Label
33
+ layout_id: Layout
34
+ slug: Slug
35
+ target_page_id: Redirect to Page
36
+ is_published: Published
37
+ cms/file:
38
+ file: File
39
+ description: Description
40
+ cms/snippet:
41
+ identifier: Identifier
42
+
43
+ # -- Controllers ----------------------------------------------------------
44
+ cms:
45
+ base:
46
+ site_not_found: Site not found
47
+ fixtures_enabled: CMS Fixtures are enabled. All changes done here will be discarded.
48
+
49
+ sites:
50
+ created: Site created
51
+ creation_failure: Failed to create site
52
+ updated: Site updated
53
+ update_failure: Failed to update site
54
+ deleted: Site deleted
55
+ not_found: Site not found
56
+
57
+ layouts:
58
+ created: Layout created
59
+ creation_failure: Failed to create layout
60
+ updated: Layout updated
61
+ update_failure: Failed to update layout
62
+ deleted: Layout deleted
63
+ not_found: Layout not found
64
+
65
+ pages:
66
+ created: Page created
67
+ creation_failure: Failed to create page
68
+ updated: Page updated
69
+ update_failure: Failed to update page
70
+ deleted: Page deleted
71
+ not_found: Page not found
72
+ layout_not_found: No Layouts found. Please create one.
73
+
74
+ menus:
75
+ created: Menu created
76
+ creation_failure: Failed to create menu
77
+ updated: Menu updated
78
+ update_failure: Failed to update menu
79
+ deleted: Menu deleted
80
+ not_found: Menu not found
81
+
82
+ menu_items:
83
+ created: Menu Item created
84
+ creation_failure: Failed to create menu item
85
+ updated: Menu Item updated
86
+ update_failure: Failed to update menu item
87
+ deleted: Menu Item deleted
88
+ not_found: Menu Item not found
89
+
90
+ snippets:
91
+ created: Snippet created
92
+ creation_failure: Failed to create snippet
93
+ updated: Snippet updated
94
+ update_failure: Failed to update snippet
95
+ deleted: Snippet deleted
96
+ not_found: Snippet not found
97
+
98
+ revisions:
99
+ reverted: Content Reverted
100
+ record_not_found: Record Not Found
101
+ not_found: Revision Not Found
102
+
103
+ files:
104
+ created: Files uploaded
105
+ creation_failure: Failed to upload files
106
+ updated: File updated
107
+ update_failure: Failed to update file
108
+ deleted: File deleted
109
+ not_found: File not found
110
+
111
+ content:
112
+ site_not_found: Site Not Found
113
+ layout_not_found: Layout Not Found
114
+ page_not_found: Page Not Found
115
+
116
+ # -- Views ----------------------------------------------------------------
117
+ cms_admin:
118
+ base:
119
+ sites: Sites
120
+ layouts: Layouts
121
+ pages: Pages
122
+ snippets: Snippets
123
+ files: Files
124
+
125
+ menus:
126
+ index:
127
+ title: Menus
128
+ new_link: Create New Menu
129
+ select: Select Menu
130
+ edit: Edit
131
+ menu_items: Menu Items
132
+ delete: Delete
133
+ are_you_sure: Are you sure you want to delete this menu?
134
+ new:
135
+ title: New Menu
136
+ edit:
137
+ title: Edit Menu
138
+ form:
139
+ create: Create Menu
140
+ update: Update Menu
141
+
142
+ menu_items:
143
+ index:
144
+ title: Menu Items
145
+ new_link: Create New Menu Item
146
+ select: Select Menu Item
147
+ edit: Edit
148
+ delete: Delete
149
+ are_you_sure: Are you sure you want to delete this menu item?
150
+ new:
151
+ title: New Menu Item
152
+ edit:
153
+ title: Edit Menu Item
154
+ form:
155
+ create: Create Menu Item
156
+ update: Update Menu Item
157
+
158
+ sites:
159
+ index:
160
+ title: Sites
161
+ new_link: Create New Site
162
+ select: Select Site
163
+ edit: Edit
164
+ delete: Delete
165
+ are_you_sure: Are you sure you want to delete this site?
166
+ new:
167
+ title: New Site
168
+ edit:
169
+ title: Editing Site
170
+ form:
171
+ create: Create Site
172
+ update: Update Site
173
+ is_mirrored: Mirrored
174
+
175
+ layouts:
176
+ index:
177
+ title: Layouts
178
+ new_link: Create New Layout
179
+ index_branch:
180
+ add_child_layout: Add Child Layout
181
+ edit: Edit
182
+ delete: Delete
183
+ are_you_sure: Are you sure?
184
+ new:
185
+ title: New Layout
186
+ edit:
187
+ title: Editing Layout
188
+ revision: Revision
189
+ form:
190
+ select_parent_layout: Select Parent Layout
191
+ select_app_layout: Select Application Layout
192
+ create: Create Layout
193
+ update: Update Layout
194
+
195
+ pages:
196
+ index:
197
+ title: Pages
198
+ new_link: Create New Page
199
+ index_branch:
200
+ toggle: Toggle
201
+ add_child_page: Add Child Page
202
+ edit: Edit
203
+ delete: Delete
204
+ are_you_sure: Are you sure?
205
+ new:
206
+ title: New Page
207
+ edit:
208
+ title: Editing Page
209
+ revision: Revision
210
+ form:
211
+ select_target_page: No Redirect
212
+ preview: Preview
213
+ create: Create Page
214
+ update: Update Page
215
+ is_published: Published
216
+ form_blocks:
217
+ no_tags: |-
218
+ Layout has no content tags defined.<br/>
219
+ Edit the content to include a page or field tag. For example: <code>{{cms:page:content}}</code>
220
+
221
+ snippets:
222
+ index:
223
+ title: Snippets
224
+ new_link: Create New Snippet
225
+ edit: Edit
226
+ delete: Delete
227
+ are_you_sure: Are you sure?
228
+ new:
229
+ title: New Snippet
230
+ edit:
231
+ title: Editing Snippet
232
+ revision: Revision
233
+ form:
234
+ create: Create Snippet
235
+ update: Update Snippet
236
+
237
+ revisions:
238
+ show:
239
+ title: Revisions for
240
+ revision: Revision
241
+ full_path: Full Path
242
+ slug: Slug
243
+ update: Update to this Revision
244
+ current: Current
245
+
246
+ files:
247
+ index:
248
+ title: Files
249
+ new_link: Upload New File
250
+ edit: Edit
251
+ delete: Delete
252
+ are_you_sure: Are you sure?
253
+ button: Upload Files
254
+ new:
255
+ title: New File
256
+ edit:
257
+ title: Editing File
258
+ form:
259
+ current_file: Current File
260
+ create: Upload File
261
+ update: Update File
262
+ page_form:
263
+ are_you_sure: Are you sure?
264
+ file:
265
+ are_you_sure: Are you sure?
266
+
267
+ categories:
268
+ index:
269
+ label: Categories
270
+ edit: Edit
271
+ done: Done
272
+ all: All
273
+ add: Add
274
+ show:
275
+ are_you_sure: Are you sure?
276
+ edit:
277
+ save: Save
278
+ form:
279
+ label: Categories
280
+
281
+ dialogs:
282
+ image:
283
+ insert: Insert Image
284
+ link:
285
+ create: Create Link