comfypress 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.travis.yml +22 -0
- data/Gemfile +22 -0
- data/Gemfile.lock +175 -0
- data/LICENSE +20 -0
- data/README.md +79 -0
- data/Rakefile +5 -0
- data/app/assets/images/comfypress/arrow_bottom.gif +0 -0
- data/app/assets/images/comfypress/arrow_right.gif +0 -0
- data/app/assets/images/comfypress/bootstrap/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/comfypress/bootstrap/glyphicons-halflings.png +0 -0
- data/app/assets/images/comfypress/checkerboard.gif +0 -0
- data/app/assets/images/comfypress/icon_draft.gif +0 -0
- data/app/assets/images/comfypress/icon_file.gif +0 -0
- data/app/assets/images/comfypress/icon_layout.gif +0 -0
- data/app/assets/images/comfypress/icon_move.gif +0 -0
- data/app/assets/images/comfypress/icon_page.gif +0 -0
- data/app/assets/images/comfypress/icon_site.gif +0 -0
- data/app/assets/images/comfypress/icon_snippet.gif +0 -0
- data/app/assets/images/comfypress/nav_arrow.png +0 -0
- data/app/assets/javascripts/comfypress/admin/application.js +1 -0
- data/app/assets/javascripts/comfypress/application.js.coffee +175 -0
- data/app/assets/javascripts/comfypress/lib/bootstrap-datetimepicker.js +21 -0
- data/app/assets/javascripts/comfypress/lib/bootstrap-wysihtml5.js +492 -0
- data/app/assets/javascripts/comfypress/lib/bootstrap.js +6 -0
- data/app/assets/javascripts/comfypress/lib/codemirror.js +10 -0
- data/app/assets/javascripts/comfypress/lib/wysihtml5.js +261 -0
- data/app/assets/stylesheets/comfypress/admin/application.css +1 -0
- data/app/assets/stylesheets/comfypress/application.css.sass +8 -0
- data/app/assets/stylesheets/comfypress/base.css.sass +333 -0
- data/app/assets/stylesheets/comfypress/bootstrap_overrides.css.sass +45 -0
- data/app/assets/stylesheets/comfypress/codemirror_overrides.css.sass +27 -0
- data/app/assets/stylesheets/comfypress/lib/bootstrap-datetimepicker.css +9 -0
- data/app/assets/stylesheets/comfypress/lib/bootstrap-wysihtml5.css +102 -0
- data/app/assets/stylesheets/comfypress/lib/bootstrap.css +9 -0
- data/app/assets/stylesheets/comfypress/lib/codemirror.css +240 -0
- data/app/assets/stylesheets/comfypress/wysihtml5_overrides.css.sass +5 -0
- data/app/controllers/application_controller.rb +5 -0
- data/app/controllers/cms_admin/base_controller.rb +51 -0
- data/app/controllers/cms_admin/categories_controller.rb +35 -0
- data/app/controllers/cms_admin/files_controller.rb +108 -0
- data/app/controllers/cms_admin/layouts_controller.rb +67 -0
- data/app/controllers/cms_admin/menu_items_controller.rb +65 -0
- data/app/controllers/cms_admin/menus_controller.rb +60 -0
- data/app/controllers/cms_admin/pages_controller.rb +112 -0
- data/app/controllers/cms_admin/revisions_controller.rb +57 -0
- data/app/controllers/cms_admin/sites_controller.rb +64 -0
- data/app/controllers/cms_admin/snippets_controller.rb +64 -0
- data/app/controllers/cms_content_controller.rb +79 -0
- data/app/helpers/application_helper.rb +16 -0
- data/app/models/cms/block.rb +48 -0
- data/app/models/cms/categorization.rb +21 -0
- data/app/models/cms/category.rb +30 -0
- data/app/models/cms/file.rb +75 -0
- data/app/models/cms/layout.rb +99 -0
- data/app/models/cms/menu.rb +26 -0
- data/app/models/cms/menu_item.rb +14 -0
- data/app/models/cms/page.rb +202 -0
- data/app/models/cms/revision.rb +17 -0
- data/app/models/cms/site.rb +113 -0
- data/app/models/cms/snippet.rb +58 -0
- data/app/models/cms.rb +5 -0
- data/app/views/cms_admin/categories/_categories.html.haml +3 -0
- data/app/views/cms_admin/categories/_edit.html.haml +6 -0
- data/app/views/cms_admin/categories/_form.html.haml +8 -0
- data/app/views/cms_admin/categories/_index.html.haml +24 -0
- data/app/views/cms_admin/categories/_show.html.haml +13 -0
- data/app/views/cms_admin/categories/create.js.erb +7 -0
- data/app/views/cms_admin/categories/destroy.js.erb +3 -0
- data/app/views/cms_admin/categories/edit.js.erb +3 -0
- data/app/views/cms_admin/categories/update.js.erb +6 -0
- data/app/views/cms_admin/files/_file.html.haml +13 -0
- data/app/views/cms_admin/files/_form.html.haml +14 -0
- data/app/views/cms_admin/files/_index.html.haml +14 -0
- data/app/views/cms_admin/files/_page_form.html.haml +9 -0
- data/app/views/cms_admin/files/destroy.js.coffee +2 -0
- data/app/views/cms_admin/files/edit.html.haml +5 -0
- data/app/views/cms_admin/files/index.html.haml +28 -0
- data/app/views/cms_admin/files/new.html.haml +5 -0
- data/app/views/cms_admin/layouts/_form.html.haml +17 -0
- data/app/views/cms_admin/layouts/_index_branch.html.haml +23 -0
- data/app/views/cms_admin/layouts/edit.html.haml +9 -0
- data/app/views/cms_admin/layouts/index.html.haml +9 -0
- data/app/views/cms_admin/layouts/new.html.haml +5 -0
- data/app/views/cms_admin/menu_items/_form.html.haml +22 -0
- data/app/views/cms_admin/menu_items/edit.html.haml +8 -0
- data/app/views/cms_admin/menu_items/index.html.haml +24 -0
- data/app/views/cms_admin/menu_items/new.html.haml +5 -0
- data/app/views/cms_admin/menus/_form.html.haml +8 -0
- data/app/views/cms_admin/menus/edit.html.haml +8 -0
- data/app/views/cms_admin/menus/index.html.haml +24 -0
- data/app/views/cms_admin/menus/new.html.haml +5 -0
- data/app/views/cms_admin/pages/_form.html.haml +38 -0
- data/app/views/cms_admin/pages/_form_blocks.html.haml +28 -0
- data/app/views/cms_admin/pages/_index_branch.html.haml +35 -0
- data/app/views/cms_admin/pages/edit.html.haml +9 -0
- data/app/views/cms_admin/pages/form_blocks.js.erb +2 -0
- data/app/views/cms_admin/pages/index.html.haml +11 -0
- data/app/views/cms_admin/pages/new.html.haml +5 -0
- data/app/views/cms_admin/pages/toggle_branch.js.erb +11 -0
- data/app/views/cms_admin/revisions/show.html.haml +28 -0
- data/app/views/cms_admin/sites/_form.html.haml +14 -0
- data/app/views/cms_admin/sites/_mirrors.html.haml +17 -0
- data/app/views/cms_admin/sites/edit.html.haml +5 -0
- data/app/views/cms_admin/sites/index.html.haml +24 -0
- data/app/views/cms_admin/sites/new.html.haml +5 -0
- data/app/views/cms_admin/snippets/_form.html.haml +11 -0
- data/app/views/cms_admin/snippets/edit.html.haml +9 -0
- data/app/views/cms_admin/snippets/index.html.haml +28 -0
- data/app/views/cms_admin/snippets/new.html.haml +5 -0
- data/app/views/cms_content/_menu.html.haml +5 -0
- data/app/views/cms_content/render_sitemap.xml.builder +15 -0
- data/app/views/layouts/cms_admin/_body.html.haml +16 -0
- data/app/views/layouts/cms_admin/_center.html.haml +7 -0
- data/app/views/layouts/cms_admin/_footer.html.haml +3 -0
- data/app/views/layouts/cms_admin/_footer_js.html.haml +7 -0
- data/app/views/layouts/cms_admin/_head.html.haml +12 -0
- data/app/views/layouts/cms_admin/_left.html.haml +11 -0
- data/app/views/layouts/cms_admin/_right.html.haml +1 -0
- data/app/views/layouts/cms_admin.html.haml +4 -0
- data/comfypress.gemspec +28 -0
- data/config/application.rb +69 -0
- data/config/boot.rb +6 -0
- data/config/database.sqlite.yml +47 -0
- data/config/database.yml +47 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +39 -0
- data/config/environments/production.rb +67 -0
- data/config/environments/test.rb +39 -0
- data/config/initializers/comfypress.rb +100 -0
- data/config/initializers/paperclip.rb +3 -0
- data/config/locales/de.yml +236 -0
- data/config/locales/en.yml +285 -0
- data/config/locales/es.yml +236 -0
- data/config/locales/fr.yml +236 -0
- data/config/locales/ja.yml +237 -0
- data/config/locales/pl.yml +236 -0
- data/config/locales/pt-BR.yml +236 -0
- data/config/locales/ru.yml +236 -0
- data/config/locales/sv.yml +236 -0
- data/config/locales/zh-CN.yml +236 -0
- data/config/routes.rb +10 -0
- data/config.ru +4 -0
- data/db/cms_fixtures/sample-site/layouts/default/_default.yml +1 -0
- data/db/cms_fixtures/sample-site/layouts/default/content.html +5 -0
- data/db/cms_fixtures/sample-site/layouts/default/css.css +1 -0
- data/db/cms_fixtures/sample-site/layouts/default/js.js +1 -0
- data/db/cms_fixtures/sample-site/layouts/default/nested/_nested.yml +2 -0
- data/db/cms_fixtures/sample-site/layouts/default/nested/content.html +2 -0
- data/db/cms_fixtures/sample-site/layouts/default/nested/css.css +1 -0
- data/db/cms_fixtures/sample-site/layouts/default/nested/js.js +1 -0
- data/db/cms_fixtures/sample-site/pages/index/_index.yml +2 -0
- data/db/cms_fixtures/sample-site/pages/index/child/_child.yml +3 -0
- data/db/cms_fixtures/sample-site/pages/index/child/left.html +1 -0
- data/db/cms_fixtures/sample-site/pages/index/child/right.html +1 -0
- data/db/cms_fixtures/sample-site/pages/index/content.html +2 -0
- data/db/cms_fixtures/sample-site/snippets/default/_default.yml +1 -0
- data/db/cms_fixtures/sample-site/snippets/default/content.html +1 -0
- data/db/migrate/01_create_cms.rb +163 -0
- data/db/seeds.rb +9 -0
- data/db/upgrade_migrations/02_upgrade_to_1_1_0.rb +19 -0
- data/db/upgrade_migrations/03_upgrade_to_1_2_0.rb +15 -0
- data/db/upgrade_migrations/04_upgrade_to_1_3_0.rb +23 -0
- data/db/upgrade_migrations/05_upgrade_to_1_4_0.rb +33 -0
- data/db/upgrade_migrations/06_upgrade_to_1_5_0.rb +21 -0
- data/db/upgrade_migrations/07_upgrade_to_1_6_0.rb +25 -0
- data/doc/preview.png +0 -0
- data/doc/sofa.png +0 -0
- data/lib/comfypress/authentication/dummy_auth.rb +8 -0
- data/lib/comfypress/authentication/http_auth.rb +18 -0
- data/lib/comfypress/configuration.rb +99 -0
- data/lib/comfypress/engine.rb +18 -0
- data/lib/comfypress/error.rb +24 -0
- data/lib/comfypress/extensions/acts_as_tree.rb +102 -0
- data/lib/comfypress/extensions/has_revisions.rb +64 -0
- data/lib/comfypress/extensions/is_categorized.rb +49 -0
- data/lib/comfypress/extensions/is_mirrored.rb +85 -0
- data/lib/comfypress/extensions/rails.rb +24 -0
- data/lib/comfypress/fixtures.rb +289 -0
- data/lib/comfypress/form_builder.rb +97 -0
- data/lib/comfypress/render_methods.rb +85 -0
- data/lib/comfypress/routing.rb +62 -0
- data/lib/comfypress/sitemap.rb +27 -0
- data/lib/comfypress/tag.rb +154 -0
- data/lib/comfypress/tags/asset.rb +25 -0
- data/lib/comfypress/tags/collection.rb +64 -0
- data/lib/comfypress/tags/field_datetime.rb +17 -0
- data/lib/comfypress/tags/field_integer.rb +17 -0
- data/lib/comfypress/tags/field_rich_text.rb +17 -0
- data/lib/comfypress/tags/field_string.rb +17 -0
- data/lib/comfypress/tags/field_text.rb +17 -0
- data/lib/comfypress/tags/file.rb +29 -0
- data/lib/comfypress/tags/helper.rb +24 -0
- data/lib/comfypress/tags/menu.rb +27 -0
- data/lib/comfypress/tags/page_datetime.rb +13 -0
- data/lib/comfypress/tags/page_file.rb +51 -0
- data/lib/comfypress/tags/page_files.rb +52 -0
- data/lib/comfypress/tags/page_integer.rb +13 -0
- data/lib/comfypress/tags/page_markdown.rb +22 -0
- data/lib/comfypress/tags/page_rich_text.rb +13 -0
- data/lib/comfypress/tags/page_string.rb +13 -0
- data/lib/comfypress/tags/page_text.rb +13 -0
- data/lib/comfypress/tags/partial.rb +23 -0
- data/lib/comfypress/tags/snippet.rb +19 -0
- data/lib/comfypress/version.rb +3 -0
- data/lib/comfypress/view_hooks.rb +32 -0
- data/lib/comfypress/view_methods.rb +52 -0
- data/lib/comfypress.rb +66 -0
- data/lib/generators/comfy/cms/README +10 -0
- data/lib/generators/comfy/cms/cms_generator.rb +57 -0
- data/lib/tasks/comfypress.rake +45 -0
- data/script/rails +6 -0
- data/test/fixtures/cms/blocks.yml +12 -0
- data/test/fixtures/cms/categories.yml +4 -0
- data/test/fixtures/cms/categorizations.yml +3 -0
- data/test/fixtures/cms/files.yml +9 -0
- data/test/fixtures/cms/layouts.yml +40 -0
- data/test/fixtures/cms/menu_items.yml +15 -0
- data/test/fixtures/cms/menus.yml +9 -0
- data/test/fixtures/cms/pages.yml +39 -0
- data/test/fixtures/cms/revisions.yml +21 -0
- data/test/fixtures/cms/sites.yml +6 -0
- data/test/fixtures/cms/snippets.yml +6 -0
- data/test/fixtures/files/data.zip +0 -0
- data/test/fixtures/files/document.pdf +0 -0
- data/test/fixtures/files/image.gif +0 -0
- data/test/fixtures/files/image.jpg +0 -0
- data/test/fixtures/views/_nav_hook.html.erb +1 -0
- data/test/fixtures/views/_nav_hook_2.html.erb +1 -0
- data/test/fixtures/views/render_test/_test.html.erb +1 -0
- data/test/fixtures/views/render_test/new.html.erb +1 -0
- data/test/fixtures/views/render_test/render_layout.html.erb +1 -0
- data/test/functional/cms_admin/base_controller_test.rb +18 -0
- data/test/functional/cms_admin/categories_controller_test.rb +70 -0
- data/test/functional/cms_admin/files_controller_test.rb +216 -0
- data/test/functional/cms_admin/layouts_controller_test.rb +123 -0
- data/test/functional/cms_admin/pages_controller_test.rb +450 -0
- data/test/functional/cms_admin/revisions_controller_test.rb +138 -0
- data/test/functional/cms_admin/sites_controller_test.rb +105 -0
- data/test/functional/cms_admin/snippets_controller_test.rb +140 -0
- data/test/functional/cms_content_controller_test.rb +205 -0
- data/test/gemfiles/Gemfile.rails.3.1 +16 -0
- data/test/gemfiles/Gemfile.rails.3.2 +16 -0
- data/test/gemfiles/Gemfile.rails.4.0 +16 -0
- data/test/integration/authentication_test.rb +48 -0
- data/test/integration/fixtures_test.rb +61 -0
- data/test/integration/mirrors_test.rb +72 -0
- data/test/integration/render_cms_test.rb +233 -0
- data/test/integration/sites_test.rb +120 -0
- data/test/integration/view_hooks_test.rb +43 -0
- data/test/test_helper.rb +124 -0
- data/test/unit/cms/menu_item_test.rb +7 -0
- data/test/unit/cms/menu_test.rb +7 -0
- data/test/unit/configuration_test.rb +42 -0
- data/test/unit/fixtures_test.rb +357 -0
- data/test/unit/mirrors_test.rb +242 -0
- data/test/unit/models/block_test.rb +199 -0
- data/test/unit/models/categorization_test.rb +76 -0
- data/test/unit/models/category_test.rb +39 -0
- data/test/unit/models/file_test.rb +89 -0
- data/test/unit/models/layout_test.rb +125 -0
- data/test/unit/models/page_test.rb +255 -0
- data/test/unit/models/site_test.rb +152 -0
- data/test/unit/models/snippet_test.rb +49 -0
- data/test/unit/revisions_test.rb +185 -0
- data/test/unit/sitemap_test.rb +20 -0
- data/test/unit/tag_test.rb +308 -0
- data/test/unit/tags/asset_test.rb +56 -0
- data/test/unit/tags/collection_test.rb +116 -0
- data/test/unit/tags/field_datetime_test.rb +50 -0
- data/test/unit/tags/field_integer_test.rb +49 -0
- data/test/unit/tags/field_rich_text_test.rb +49 -0
- data/test/unit/tags/field_string_test.rb +52 -0
- data/test/unit/tags/field_text_test.rb +48 -0
- data/test/unit/tags/file_test.rb +67 -0
- data/test/unit/tags/helper_test.rb +86 -0
- data/test/unit/tags/page_datetime_test.rb +50 -0
- data/test/unit/tags/page_file_test.rb +119 -0
- data/test/unit/tags/page_files_test.rb +113 -0
- data/test/unit/tags/page_integer_test.rb +49 -0
- data/test/unit/tags/page_markdown_test.rb +48 -0
- data/test/unit/tags/page_rich_text_test.rb +49 -0
- data/test/unit/tags/page_string_test.rb +49 -0
- data/test/unit/tags/page_text_test.rb +52 -0
- data/test/unit/tags/partial_test.rb +76 -0
- data/test/unit/tags/snippet_test.rb +45 -0
- data/test/unit/view_methods_test.rb +80 -0
- 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,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
|