contentator 0.2.0 → 0.2.1
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.
- data/README.rdoc +2 -2
- data/Rakefile +26 -0
- data/VERSION +1 -0
- data/app/controllers/application_controller.rb +35 -0
- data/app/controllers/cms/admin/admin_controller.rb +3 -0
- data/app/controllers/cms/admin/file_attachments_controller.rb +53 -0
- data/app/controllers/cms/admin/page_content_blocks_controller.rb +77 -0
- data/app/controllers/cms/admin/pages_controller.rb +68 -0
- data/app/controllers/cms/content_controller.rb +25 -0
- data/app/helpers/application_helper.rb +29 -0
- data/app/helpers/cms/admin/pages_helper.rb +34 -0
- data/app/models/file_attachment.rb +4 -0
- data/app/models/page.rb +71 -0
- data/app/models/page_content_block.rb +10 -0
- data/app/views/cms/admin/_admin_toolbar.html.haml +10 -0
- data/app/views/cms/admin/file_attachments/_form.html.haml +17 -0
- data/app/views/cms/admin/page_content_blocks/_form.html.haml +23 -0
- data/app/views/cms/admin/pages/_form.html.haml +22 -0
- data/app/views/cms/admin/pages/edit.html.haml +10 -0
- data/app/views/cms/admin/pages/index.html.haml +13 -0
- data/app/views/cms/admin/pages/new.html.haml +7 -0
- data/app/views/cms/content/_file_attachment.html.haml +9 -0
- data/app/views/cms/content/_file_attachments_container.html.haml +16 -0
- data/app/views/cms/content/_page_content_block.html.haml +14 -0
- data/app/views/cms/content/_page_content_blocks_container.html.haml +15 -0
- data/app/views/cms/content/content.html.haml +4 -0
- data/app/views/cms/content/gallery.html.haml +4 -0
- data/app/views/cms/content/home.html.haml +4 -0
- data/app/views/layouts/application.html.haml +22 -0
- data/app/views/layouts/cms/admin/application.html.haml +44 -0
- data/config/boot.rb +110 -0
- data/config/environment.rb +54 -0
- data/config/environments/development.rb +17 -0
- data/config/environments/production.rb +28 -0
- data/config/environments/test.rb +28 -0
- data/config/geminstaller.local.yml +21 -0
- data/config/geminstaller.yml +22 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/inflections.rb +10 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/new_rails_defaults.rb +19 -0
- data/config/initializers/session_store.rb +15 -0
- data/config/locales/de.yml +49 -0
- data/config/locales/en.yml +49 -0
- data/config/routes.rb +13 -0
- data/contentator.gemspec +160 -0
- data/db/migrate/20091002165818_create_pages.rb +22 -0
- data/db/migrate/20091002211930_create_home_page.rb +10 -0
- data/db/migrate/20091007222703_create_page_content_blocks.rb +22 -0
- data/db/migrate/20091029204950_create_file_attachments.rb +17 -0
- data/lib/contentator.rb +2 -0
- data/lib/generators/content/content_generator.rb +118 -0
- data/lib/generators/content/templates/container.rb +16 -0
- data/lib/generators/content/templates/controller.rb +63 -0
- data/lib/generators/content/templates/factories.rb +6 -0
- data/lib/generators/content/templates/form.rb +12 -0
- data/lib/generators/content/templates/functional_test.rb +140 -0
- data/lib/generators/content/templates/item.rb +11 -0
- data/lib/generators/content/templates/migration.rb +17 -0
- data/lib/generators/content/templates/model.rb +5 -0
- data/lib/generators/content/templates/unit_test.rb +8 -0
- data/lib/generators/content/templates/view.rb +0 -0
- data/lib/template.rb +10 -0
- data/public/404.html +30 -0
- data/public/422.html +30 -0
- data/public/500.html +30 -0
- data/public/favicon.ico +0 -0
- data/public/images/admin_standard/content-header-bg.png +0 -0
- data/public/images/admin_standard/context-arrow.png +0 -0
- data/public/images/admin_standard/context-bg.png +0 -0
- data/public/images/admin_standard/crumb-bg-current.gif +0 -0
- data/public/images/admin_standard/crumb-bg.gif +0 -0
- data/public/images/admin_standard/crumb-divide-current.gif +0 -0
- data/public/images/admin_standard/crumb-divide.gif +0 -0
- data/public/images/admin_standard/drawer-end.png +0 -0
- data/public/images/admin_standard/drawer-middle.png +0 -0
- data/public/images/admin_standard/drawer-start.png +0 -0
- data/public/images/admin_standard/form-error.png +0 -0
- data/public/images/admin_standard/input-background.gif +0 -0
- data/public/images/admin_standard/shadow-bottom.png +0 -0
- data/public/images/admin_standard/shadow-right.png +0 -0
- data/public/images/admin_standard/subnavigation-bullet-1.png +0 -0
- data/public/images/admin_standard/subnavigation-bullet-2.png +0 -0
- data/public/images/admin_standard/tab-active-cap.png +0 -0
- data/public/images/admin_standard/tab-active.png +0 -0
- data/public/images/admin_standard/tab-inactive-cap.png +0 -0
- data/public/images/admin_standard/tab-inactive.png +0 -0
- data/public/images/blank.gif +0 -0
- data/public/images/icons/add.png +0 -0
- data/public/images/icons/cancel.png +0 -0
- data/public/images/icons/delete.png +0 -0
- data/public/images/icons/edit.png +0 -0
- data/public/images/icons/folder.png +0 -0
- data/public/images/icons/move.png +0 -0
- data/public/images/rails.png +0 -0
- data/public/robots.txt +5 -0
- data/public/stylesheets/admin_standard.css +877 -0
- data/public/stylesheets/application.css +33 -0
- data/rails_generators/contentator_files/contentator_files_generator.rb +127 -0
- data/rails_generators/contentator_files/templates/application.rb +5 -0
- metadata +111 -2
@@ -0,0 +1,28 @@
|
|
1
|
+
# Settings specified here will take precedence over those in config/environment.rb
|
2
|
+
|
3
|
+
# The production environment is meant for finished, "live" apps.
|
4
|
+
# Code is not reloaded between requests
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Full error reports are disabled and caching is turned on
|
8
|
+
config.action_controller.consider_all_requests_local = false
|
9
|
+
config.action_controller.perform_caching = true
|
10
|
+
config.action_view.cache_template_loading = true
|
11
|
+
|
12
|
+
# See everything in the log (default is :info)
|
13
|
+
# config.log_level = :debug
|
14
|
+
|
15
|
+
# Use a different logger for distributed setups
|
16
|
+
# config.logger = SyslogLogger.new
|
17
|
+
|
18
|
+
# Use a different cache store in production
|
19
|
+
# config.cache_store = :mem_cache_store
|
20
|
+
|
21
|
+
# Enable serving of images, stylesheets, and javascripts from an asset server
|
22
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
23
|
+
|
24
|
+
# Disable delivery errors, bad email addresses will be ignored
|
25
|
+
# config.action_mailer.raise_delivery_errors = false
|
26
|
+
|
27
|
+
# Enable threaded mode
|
28
|
+
# config.threadsafe!
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Settings specified here will take precedence over those in config/environment.rb
|
2
|
+
|
3
|
+
# The test environment is used exclusively to run your application's
|
4
|
+
# test suite. You never need to work with it otherwise. Remember that
|
5
|
+
# your test database is "scratch space" for the test suite and is wiped
|
6
|
+
# and recreated between test runs. Don't rely on the data there!
|
7
|
+
config.cache_classes = true
|
8
|
+
|
9
|
+
# Log error messages when you accidentally call methods on nil.
|
10
|
+
config.whiny_nils = true
|
11
|
+
|
12
|
+
# Show full error reports and disable caching
|
13
|
+
config.action_controller.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
config.action_view.cache_template_loading = true
|
16
|
+
|
17
|
+
# Disable request forgery protection in test environment
|
18
|
+
config.action_controller.allow_forgery_protection = false
|
19
|
+
|
20
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
21
|
+
# The :test delivery method accumulates sent emails in the
|
22
|
+
# ActionMailer::Base.deliveries array.
|
23
|
+
config.action_mailer.delivery_method = :test
|
24
|
+
|
25
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
26
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
27
|
+
# like if you have constraints or database-specific column types
|
28
|
+
# config.active_record.schema_format = :sql
|
@@ -0,0 +1,21 @@
|
|
1
|
+
gems:
|
2
|
+
- name: thoughtbot-shoulda
|
3
|
+
version: '>= 2.10.2'
|
4
|
+
lib: 'shoulda'
|
5
|
+
source: 'http://gems.github.com'
|
6
|
+
- name: thoughtbot-factory_girl
|
7
|
+
version: '>= 1.2.2'
|
8
|
+
lib: 'factory_girl'
|
9
|
+
source: 'http://gems.github.com'
|
10
|
+
- name: haml
|
11
|
+
version: '>= 2.2.6'
|
12
|
+
- name: mocha
|
13
|
+
version: '>= 0.9.8'
|
14
|
+
- name: thoughtbot-paperclip
|
15
|
+
version: '>= 2.1.2'
|
16
|
+
lib: 'paperclip'
|
17
|
+
source: 'http://gems.github.com'
|
18
|
+
- name: kete-tiny_mce
|
19
|
+
version: '>= 0.1.0'
|
20
|
+
lib: 'tiny_mce'
|
21
|
+
source: 'http://gems.github.com'
|
@@ -0,0 +1,22 @@
|
|
1
|
+
gems:
|
2
|
+
- name: thoughtbot-shoulda
|
3
|
+
version: '>= 2.10.2'
|
4
|
+
lib: 'shoulda'
|
5
|
+
source: 'http://gems.github.com'
|
6
|
+
- name: thoughtbot-factory_girl
|
7
|
+
version: '>= 1.2.2'
|
8
|
+
lib: 'factory_girl'
|
9
|
+
source: 'http://gems.github.com'
|
10
|
+
- name: haml
|
11
|
+
version: '>= 2.2.6'
|
12
|
+
- name: mocha
|
13
|
+
version: '>= 0.9.8'
|
14
|
+
- name: thoughtbot-paperclip
|
15
|
+
version: '>= 2.1.2'
|
16
|
+
lib: 'paperclip'
|
17
|
+
source: 'http://gems.github.com'
|
18
|
+
- name: kete-tiny_mce
|
19
|
+
version: '>= 0.1.0'
|
20
|
+
lib: 'tiny_mce'
|
21
|
+
source: 'http://gems.github.com'
|
22
|
+
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying do debug a problem that might steem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# These settings change the behavior of Rails 2 apps and will be defaults
|
4
|
+
# for Rails 3. You can remove this initializer when Rails 3 is released.
|
5
|
+
|
6
|
+
if defined?(ActiveRecord)
|
7
|
+
# Include Active Record class name as root for JSON serialized output.
|
8
|
+
ActiveRecord::Base.include_root_in_json = true
|
9
|
+
|
10
|
+
# Store the full class name (including module namespace) in STI type column.
|
11
|
+
ActiveRecord::Base.store_full_sti_class = true
|
12
|
+
end
|
13
|
+
|
14
|
+
# Use ISO 8601 format for JSON serialized times and dates.
|
15
|
+
ActiveSupport.use_standard_json_time_format = true
|
16
|
+
|
17
|
+
# Don't escape HTML entities in JSON, leave that for the #json_escape helper.
|
18
|
+
# if you're including raw json in an HTML page.
|
19
|
+
ActiveSupport.escape_html_entities_in_json = false
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying cookie session data integrity.
|
4
|
+
# If you change this key, all old sessions will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
ActionController::Base.session = {
|
8
|
+
:key => '_test_app_session',
|
9
|
+
:secret => '31542b2d414cf390c6878b9b8253f894b23aad2397c3e8d3d2fc092bb089909b4c6db80af31d95b32c663053f2218c3d3d011480d4cc35db866bce4f866390af'
|
10
|
+
}
|
11
|
+
|
12
|
+
# Use the database for sessions instead of the cookie-based default,
|
13
|
+
# which shouldn't be used to store highly confidential information
|
14
|
+
# (create the session table with "rake db:sessions:create")
|
15
|
+
# ActionController::Base.session_store = :active_record_store
|
@@ -0,0 +1,49 @@
|
|
1
|
+
de:
|
2
|
+
layout:
|
3
|
+
title: 'GERMAN - Temp Title - Change Me'
|
4
|
+
form_global:
|
5
|
+
create: 'GERMAN - Create'
|
6
|
+
update: 'GERMAN - Update'
|
7
|
+
submit: 'GERMAN - Submit'
|
8
|
+
back: 'GERMAN - Back'
|
9
|
+
move: 'GERMAN - Move'
|
10
|
+
sort: 'GERMAN - Sort'
|
11
|
+
Upload: 'GERMAN - Upload'
|
12
|
+
delete_warning: 'GERMAN - Are you sure you want to delete this item?'
|
13
|
+
cms:
|
14
|
+
admin:
|
15
|
+
layout:
|
16
|
+
title: 'GERMAN - Administration'
|
17
|
+
welcome: 'GERMAN - Welcome'
|
18
|
+
logout: 'GERMAN - Logout'
|
19
|
+
copyright: 'GERMAN - Copyright ©'
|
20
|
+
toolbar:
|
21
|
+
go_to_admin: 'GERMAN - Go to Admin'
|
22
|
+
add_content: 'GERMAN - Add Content'
|
23
|
+
page_content_blocks:
|
24
|
+
title: 'GERMAN - Content Title'
|
25
|
+
text: 'GERMAN - Content Text'
|
26
|
+
file_upload: 'GERMAN - Upload File'
|
27
|
+
remove_file: 'GERMAN - Remove File'
|
28
|
+
pages:
|
29
|
+
pages_title: 'GERMAN - Site Pages'
|
30
|
+
new_page: 'GERMAN - New Page'
|
31
|
+
update_page: 'GERMAN - Update Page'
|
32
|
+
visible: 'GERMAN - Visible'
|
33
|
+
in_navigation: 'GERMAN - In Navigation?'
|
34
|
+
title: 'GERMAN - Page Title'
|
35
|
+
subtitle: 'GERMAN - Page Subtitle'
|
36
|
+
parent: 'GERMAN - Page Parent'
|
37
|
+
template: 'GERMAN - Page Template'
|
38
|
+
flash_create: 'GERMAN - Page was successfully created.'
|
39
|
+
flash_update: 'GERMAN - Page was successfully updated.'
|
40
|
+
flash_delete: 'GERMAN - Page was deleted'
|
41
|
+
error_length: 'GERMAN - must have a length between 1 and 255 characters'
|
42
|
+
error_slug_unique: 'GERMAN - must be unique, slug already taken'
|
43
|
+
error_lowercase: 'GERMAN - can only contain lowercase letters, numbers and dashes'
|
44
|
+
error_delete_home: 'GERMAN - Cannot delete home page.'
|
45
|
+
error_delete_children: 'GERMAN - Cannot delete page with children. Please delete children first.'
|
46
|
+
templates:
|
47
|
+
home: 'GERMAN - home'
|
48
|
+
content: 'GERMAN - content'
|
49
|
+
gallery: 'GERMAN - gallery'
|
@@ -0,0 +1,49 @@
|
|
1
|
+
en:
|
2
|
+
layout:
|
3
|
+
title: 'Temp Title - Change Me'
|
4
|
+
form_global:
|
5
|
+
create: 'Create'
|
6
|
+
update: 'Update'
|
7
|
+
submit: 'Submit'
|
8
|
+
back: 'Back'
|
9
|
+
move: 'Move'
|
10
|
+
sort: 'Sort'
|
11
|
+
upload: 'Upload'
|
12
|
+
delete_warning: 'Are you sure you want to delete this item?'
|
13
|
+
cms:
|
14
|
+
admin:
|
15
|
+
layout:
|
16
|
+
title: 'Administration'
|
17
|
+
welcome: 'Welcome'
|
18
|
+
logout: 'Logout'
|
19
|
+
copyright: 'Copyright ©'
|
20
|
+
toolbar:
|
21
|
+
go_to_admin: 'Go to Admin'
|
22
|
+
add_content: 'Add Content'
|
23
|
+
page_content_blocks:
|
24
|
+
title: 'Content Title'
|
25
|
+
text: 'Content Text'
|
26
|
+
file_upload: 'Upload File'
|
27
|
+
remove_file: 'Remove File'
|
28
|
+
pages:
|
29
|
+
pages_title: 'Site Pages'
|
30
|
+
new_page: 'New Page'
|
31
|
+
update_page: 'Update Page'
|
32
|
+
visible: 'Visible'
|
33
|
+
in_navigation: 'In Navigation?'
|
34
|
+
title: 'Page Title'
|
35
|
+
subtitle: 'Page Subtitle'
|
36
|
+
parent: 'Page Parent'
|
37
|
+
template: 'Page Template'
|
38
|
+
flash_create: 'Page was successfully created.'
|
39
|
+
flash_update: 'Page was successfully updated.'
|
40
|
+
flash_delete: 'Page was deleted'
|
41
|
+
error_length: 'must have a length between 1 and 255 characters'
|
42
|
+
error_slug_unique: 'must be unique, slug already taken'
|
43
|
+
error_lowercase: 'can only contain lowercase letters, numbers and dashes'
|
44
|
+
error_delete_home: 'Cannot delete home page.'
|
45
|
+
error_delete_children: 'Cannot delete page with children. Please delete children first.'
|
46
|
+
templates:
|
47
|
+
home: 'home'
|
48
|
+
content: 'content'
|
49
|
+
gallery: 'gallery'
|
data/config/routes.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
ActionController::Routing::Routes.draw do |map|
|
2
|
+
|
3
|
+
map.namespace :cms do |cms|
|
4
|
+
cms.namespace :admin, :path_prefix => '' do |admin|
|
5
|
+
admin.resources :pages, :collection => [:update_page_tree]
|
6
|
+
admin.resources :page_content_blocks, :collection => [:sort], :only => [:new, :create, :update, :edit, :destroy]
|
7
|
+
admin.resources :file_attachments, :collection => [:sort], :only => [:new, :create, :destroy]
|
8
|
+
admin.root :controller => 'pages', :action => 'index'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
map.content '*path', :controller => 'cms/content', :action => 'show'
|
13
|
+
end
|
data/contentator.gemspec
ADDED
@@ -0,0 +1,160 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{contentator}
|
8
|
+
s.version = "0.2.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Craig Partin"]
|
12
|
+
s.date = %q{2010-04-07}
|
13
|
+
s.description = %q{A lightweight cms that focuses on in place editing.}
|
14
|
+
s.email = %q{cpartin@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"README.rdoc",
|
20
|
+
"Rakefile",
|
21
|
+
"VERSION",
|
22
|
+
"app/controllers/application_controller.rb",
|
23
|
+
"app/controllers/cms/admin/admin_controller.rb",
|
24
|
+
"app/controllers/cms/admin/file_attachments_controller.rb",
|
25
|
+
"app/controllers/cms/admin/page_content_blocks_controller.rb",
|
26
|
+
"app/controllers/cms/admin/pages_controller.rb",
|
27
|
+
"app/controllers/cms/content_controller.rb",
|
28
|
+
"app/helpers/application_helper.rb",
|
29
|
+
"app/helpers/cms/admin/pages_helper.rb",
|
30
|
+
"app/models/file_attachment.rb",
|
31
|
+
"app/models/page.rb",
|
32
|
+
"app/models/page_content_block.rb",
|
33
|
+
"app/views/cms/admin/_admin_toolbar.html.haml",
|
34
|
+
"app/views/cms/admin/file_attachments/_form.html.haml",
|
35
|
+
"app/views/cms/admin/page_content_blocks/_form.html.haml",
|
36
|
+
"app/views/cms/admin/pages/_form.html.haml",
|
37
|
+
"app/views/cms/admin/pages/edit.html.haml",
|
38
|
+
"app/views/cms/admin/pages/index.html.haml",
|
39
|
+
"app/views/cms/admin/pages/new.html.haml",
|
40
|
+
"app/views/cms/content/_file_attachment.html.haml",
|
41
|
+
"app/views/cms/content/_file_attachments_container.html.haml",
|
42
|
+
"app/views/cms/content/_page_content_block.html.haml",
|
43
|
+
"app/views/cms/content/_page_content_blocks_container.html.haml",
|
44
|
+
"app/views/cms/content/content.html.haml",
|
45
|
+
"app/views/cms/content/gallery.html.haml",
|
46
|
+
"app/views/cms/content/home.html.haml",
|
47
|
+
"app/views/layouts/application.html.haml",
|
48
|
+
"app/views/layouts/cms/admin/application.html.haml",
|
49
|
+
"config/boot.rb",
|
50
|
+
"config/environment.rb",
|
51
|
+
"config/environments/development.rb",
|
52
|
+
"config/environments/production.rb",
|
53
|
+
"config/environments/test.rb",
|
54
|
+
"config/geminstaller.local.yml",
|
55
|
+
"config/geminstaller.yml",
|
56
|
+
"config/initializers/backtrace_silencers.rb",
|
57
|
+
"config/initializers/inflections.rb",
|
58
|
+
"config/initializers/mime_types.rb",
|
59
|
+
"config/initializers/new_rails_defaults.rb",
|
60
|
+
"config/initializers/session_store.rb",
|
61
|
+
"config/locales/de.yml",
|
62
|
+
"config/locales/en.yml",
|
63
|
+
"config/routes.rb",
|
64
|
+
"contentator.gemspec",
|
65
|
+
"db/migrate/20091002165818_create_pages.rb",
|
66
|
+
"db/migrate/20091002211930_create_home_page.rb",
|
67
|
+
"db/migrate/20091007222703_create_page_content_blocks.rb",
|
68
|
+
"db/migrate/20091029204950_create_file_attachments.rb",
|
69
|
+
"lib/contentator.rb",
|
70
|
+
"lib/generators/content/content_generator.rb",
|
71
|
+
"lib/generators/content/templates/container.rb",
|
72
|
+
"lib/generators/content/templates/controller.rb",
|
73
|
+
"lib/generators/content/templates/factories.rb",
|
74
|
+
"lib/generators/content/templates/form.rb",
|
75
|
+
"lib/generators/content/templates/functional_test.rb",
|
76
|
+
"lib/generators/content/templates/item.rb",
|
77
|
+
"lib/generators/content/templates/migration.rb",
|
78
|
+
"lib/generators/content/templates/model.rb",
|
79
|
+
"lib/generators/content/templates/unit_test.rb",
|
80
|
+
"lib/generators/content/templates/view.rb",
|
81
|
+
"lib/template.rb",
|
82
|
+
"public/404.html",
|
83
|
+
"public/422.html",
|
84
|
+
"public/500.html",
|
85
|
+
"public/favicon.ico",
|
86
|
+
"public/images/admin_standard/content-header-bg.png",
|
87
|
+
"public/images/admin_standard/context-arrow.png",
|
88
|
+
"public/images/admin_standard/context-bg.png",
|
89
|
+
"public/images/admin_standard/crumb-bg-current.gif",
|
90
|
+
"public/images/admin_standard/crumb-bg.gif",
|
91
|
+
"public/images/admin_standard/crumb-divide-current.gif",
|
92
|
+
"public/images/admin_standard/crumb-divide.gif",
|
93
|
+
"public/images/admin_standard/drawer-end.png",
|
94
|
+
"public/images/admin_standard/drawer-middle.png",
|
95
|
+
"public/images/admin_standard/drawer-start.png",
|
96
|
+
"public/images/admin_standard/form-error.png",
|
97
|
+
"public/images/admin_standard/input-background.gif",
|
98
|
+
"public/images/admin_standard/shadow-bottom.png",
|
99
|
+
"public/images/admin_standard/shadow-right.png",
|
100
|
+
"public/images/admin_standard/subnavigation-bullet-1.png",
|
101
|
+
"public/images/admin_standard/subnavigation-bullet-2.png",
|
102
|
+
"public/images/admin_standard/tab-active-cap.png",
|
103
|
+
"public/images/admin_standard/tab-active.png",
|
104
|
+
"public/images/admin_standard/tab-inactive-cap.png",
|
105
|
+
"public/images/admin_standard/tab-inactive.png",
|
106
|
+
"public/images/blank.gif",
|
107
|
+
"public/images/icons/add.png",
|
108
|
+
"public/images/icons/cancel.png",
|
109
|
+
"public/images/icons/delete.png",
|
110
|
+
"public/images/icons/edit.png",
|
111
|
+
"public/images/icons/folder.png",
|
112
|
+
"public/images/icons/move.png",
|
113
|
+
"public/images/rails.png",
|
114
|
+
"public/robots.txt",
|
115
|
+
"public/stylesheets/admin_standard.css",
|
116
|
+
"public/stylesheets/application.css",
|
117
|
+
"rails_generators/contentator_files/contentator_files_generator.rb",
|
118
|
+
"rails_generators/contentator_files/templates/application.rb",
|
119
|
+
"test/factories.rb",
|
120
|
+
"test/functional/cms/admin/file_attachments_controller_test.rb",
|
121
|
+
"test/functional/cms/admin/page_content_blocks_controller_test.rb",
|
122
|
+
"test/functional/cms/admin/pages_controller_test.rb",
|
123
|
+
"test/functional/cms/content_controller_test.rb",
|
124
|
+
"test/performance/browsing_test.rb",
|
125
|
+
"test/test_helper.rb",
|
126
|
+
"test/unit/file_attachment_test.rb",
|
127
|
+
"test/unit/page_content_block_test.rb",
|
128
|
+
"test/unit/page_test.rb"
|
129
|
+
]
|
130
|
+
s.homepage = %q{http://github.com/cpartin/contentator}
|
131
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
132
|
+
s.require_paths = ["lib"]
|
133
|
+
s.rubygems_version = %q{1.3.6}
|
134
|
+
s.summary = %q{A lightweight cms that focuses on in place editing.}
|
135
|
+
s.test_files = [
|
136
|
+
"test/factories.rb",
|
137
|
+
"test/functional/cms/admin/file_attachments_controller_test.rb",
|
138
|
+
"test/functional/cms/admin/page_content_blocks_controller_test.rb",
|
139
|
+
"test/functional/cms/admin/pages_controller_test.rb",
|
140
|
+
"test/functional/cms/content_controller_test.rb",
|
141
|
+
"test/performance/browsing_test.rb",
|
142
|
+
"test/test_helper.rb",
|
143
|
+
"test/unit/file_attachment_test.rb",
|
144
|
+
"test/unit/page_content_block_test.rb",
|
145
|
+
"test/unit/page_test.rb"
|
146
|
+
]
|
147
|
+
|
148
|
+
if s.respond_to? :specification_version then
|
149
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
150
|
+
s.specification_version = 3
|
151
|
+
|
152
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
153
|
+
s.add_runtime_dependency(%q<haml>, [">= 2.2.6"])
|
154
|
+
else
|
155
|
+
s.add_dependency(%q<haml>, [">= 2.2.6"])
|
156
|
+
end
|
157
|
+
else
|
158
|
+
s.add_dependency(%q<haml>, [">= 2.2.6"])
|
159
|
+
end
|
160
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class CreatePages < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :pages do |t|
|
4
|
+
t.string :title, :limit => 100
|
5
|
+
t.string :subtitle, :limit => 100
|
6
|
+
t.string :slug, :limit => 100
|
7
|
+
t.string :path
|
8
|
+
t.string :template_name
|
9
|
+
t.integer :position, :default => 0
|
10
|
+
t.integer :parent_id
|
11
|
+
t.boolean :visible
|
12
|
+
t.boolean :in_navigation
|
13
|
+
t.timestamps
|
14
|
+
end
|
15
|
+
Page.create_translation_table! :title => :string, :subtitle => :string, :template_name => :string
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.down
|
19
|
+
drop_table :pages
|
20
|
+
Page.drop_translation_table!
|
21
|
+
end
|
22
|
+
end
|