comfortable_mexican_sofa 1.6.31 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +7 -2
- data/Gemfile +11 -2
- data/README.md +2 -3
- data/Rakefile +18 -0
- data/VERSION +1 -0
- data/app/assets/images/comfortable_mexican_sofa/bootstrap/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/bootstrap/glyphicons-halflings.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/{icon_regular.gif → icon_file.gif} +0 -0
- data/app/assets/images/comfortable_mexican_sofa/icon_page.gif +0 -0
- data/app/assets/images/comfortable_mexican_sofa/icon_site.gif +0 -0
- data/app/assets/javascripts/comfortable_mexican_sofa/application.js +61 -93
- data/app/assets/javascripts/comfortable_mexican_sofa/lib/bootstrap-datetimepicker.js +21 -0
- data/app/assets/javascripts/comfortable_mexican_sofa/lib/bootstrap-wysihtml5.js +492 -0
- data/app/assets/javascripts/comfortable_mexican_sofa/lib/bootstrap.js +6 -0
- data/app/assets/javascripts/comfortable_mexican_sofa/lib/codemirror.js +10 -0
- data/app/assets/javascripts/comfortable_mexican_sofa/lib/wysihtml5.js +261 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/application.css.sass +9 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/base.css.sass +328 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/base_overrides.css.sass +6 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/bootstrap_overrides.css.sass +43 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/codemirror_overrides.css.sass +27 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/lib/bootstrap-datetimepicker.css +9 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/lib/bootstrap-wysihtml5.css +102 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/lib/bootstrap.css +9 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/lib/codemirror.css +240 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/wysihtml5_overrides.css.sass +5 -0
- data/app/controllers/cms_admin/files_controller.rb +3 -3
- data/app/controllers/cms_admin/layouts_controller.rb +3 -3
- data/app/controllers/cms_admin/pages_controller.rb +3 -3
- data/app/controllers/cms_admin/revisions_controller.rb +1 -1
- data/app/controllers/cms_admin/sites_controller.rb +3 -3
- data/app/controllers/cms_admin/snippets_controller.rb +3 -3
- data/app/models/cms/file.rb +5 -3
- data/app/models/cms/page.rb +1 -14
- data/app/models/cms/site.rb +2 -2
- 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 +3 -3
- data/app/views/cms_admin/categories/update.js.erb +1 -1
- data/app/views/cms_admin/files/_file.html.haml +14 -0
- data/app/views/cms_admin/files/_form.html.haml +13 -0
- data/app/views/cms_admin/files/_index.html.haml +12 -0
- data/app/views/cms_admin/files/_page_form.html.haml +9 -0
- data/app/views/cms_admin/files/create.js.erb +1 -1
- data/app/views/cms_admin/files/edit.html.haml +5 -0
- data/app/views/cms_admin/files/index.html.haml +26 -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/pages/_form.html.haml +35 -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 -3
- 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/revisions/show.html.haml +28 -0
- data/app/views/cms_admin/sites/_form.html.haml +10 -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/layouts/cms_admin.html.haml +4 -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/_head.html.haml +13 -0
- data/app/views/layouts/cms_admin/_left.html.haml +10 -0
- data/app/views/layouts/cms_admin/_right.html.haml +1 -0
- data/comfortable_mexican_sofa.gemspec +323 -21
- data/config/application.rb +22 -14
- data/config/environments/development.rb +16 -2
- data/config/environments/production.rb +22 -7
- data/config/environments/test.rb +6 -6
- data/config/initializers/comfortable_mexican_sofa.rb +1 -1
- data/db/migrate/01_create_cms.rb +1 -1
- data/doc/preview.png +0 -0
- data/lib/comfortable_mexican_sofa.rb +0 -5
- data/lib/comfortable_mexican_sofa/configuration.rb +1 -1
- data/lib/comfortable_mexican_sofa/engine.rb +8 -2
- data/lib/comfortable_mexican_sofa/extensions/rails.rb +2 -2
- data/lib/comfortable_mexican_sofa/form_builder.rb +27 -82
- data/lib/comfortable_mexican_sofa/tag.rb +1 -1
- data/lib/comfortable_mexican_sofa/tags/page_markdown.rb +22 -0
- data/lib/comfortable_mexican_sofa/version.rb +6 -2
- data/lib/comfortable_mexican_sofa/view_methods.rb +5 -8
- data/test/functional/cms_admin/files_controller_test.rb +4 -4
- data/test/functional/cms_admin/layouts_controller_test.rb +3 -3
- data/test/functional/cms_admin/pages_controller_test.rb +20 -12
- data/test/functional/cms_admin/revisions_controller_test.rb +3 -3
- data/test/functional/cms_admin/sites_controller_test.rb +3 -3
- data/test/functional/cms_admin/snippets_controller_test.rb +3 -3
- data/test/functional/cms_content_controller_test.rb +1 -1
- data/test/gemfiles/Gemfile.rails.3.1 +10 -4
- data/test/gemfiles/Gemfile.rails.3.2 +10 -4
- data/test/gemfiles/Gemfile.rails.4.0 +16 -0
- data/test/test_helper.rb +1 -16
- data/test/unit/configuration_test.rb +1 -3
- data/test/unit/models/page_test.rb +1 -19
- data/test/unit/models/site_test.rb +1 -5
- data/test/unit/tags/page_file_test.rb +6 -5
- data/test/unit/tags/page_files_test.rb +5 -3
- data/test/unit/tags/page_markdown_test.rb +48 -0
- metadata +195 -131
- checksums.yaml +0 -7
- data/.gitignore +0 -14
- data/app/assets/images/comfortable_mexican_sofa/elrte/elrte-toolbar.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/google-maps.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/iframe.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/media-director.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/media-flash.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/media-quicktime.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/media-realaudio.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/media-rutube.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/media-vimeo.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/media-winmedia.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/media-youtube.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/outline-div.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/outline-p.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/pagebreak.gif +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/pixel.gif +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/smileys/evilgrin.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/smileys/grin.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/smileys/happy.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/smileys/smile.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/smileys/surprised.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/smileys/tongue.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/smileys/unhappy.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/smileys/waii.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/elrte/smileys/wink.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_888888_256x240.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/x.png +0 -0
- data/app/assets/javascripts/comfortable_mexican_sofa/codemirror/codemirror.js +0 -1
- data/app/assets/javascripts/comfortable_mexican_sofa/elrte/elrte.codemirror.js +0 -36
- data/app/assets/javascripts/comfortable_mexican_sofa/elrte/elrte.js +0 -267
- data/app/assets/javascripts/comfortable_mexican_sofa/elrte/elrte.sofa_image.js +0 -69
- data/app/assets/javascripts/comfortable_mexican_sofa/elrte/elrte.sofa_link.js +0 -58
- data/app/assets/javascripts/comfortable_mexican_sofa/jquery.js +0 -4
- data/app/assets/javascripts/comfortable_mexican_sofa/jquery_ui.js +0 -791
- data/app/assets/javascripts/comfortable_mexican_sofa/jquery_ui_timepicker.js +0 -12
- data/app/assets/javascripts/comfortable_mexican_sofa/rails.js +0 -315
- data/app/assets/stylesheets/comfortable_mexican_sofa/application.css +0 -13
- data/app/assets/stylesheets/comfortable_mexican_sofa/codemirror.css +0 -121
- data/app/assets/stylesheets/comfortable_mexican_sofa/content.css +0 -271
- data/app/assets/stylesheets/comfortable_mexican_sofa/dialogs.css +0 -45
- data/app/assets/stylesheets/comfortable_mexican_sofa/elrte.css +0 -173
- data/app/assets/stylesheets/comfortable_mexican_sofa/files.css +0 -82
- data/app/assets/stylesheets/comfortable_mexican_sofa/form.css +0 -232
- data/app/assets/stylesheets/comfortable_mexican_sofa/jquery_ui.css +0 -568
- data/app/assets/stylesheets/comfortable_mexican_sofa/reset.css +0 -1
- data/app/assets/stylesheets/comfortable_mexican_sofa/structure.css +0 -157
- data/app/assets/stylesheets/comfortable_mexican_sofa/typography.css +0 -39
- data/app/assets/stylesheets/comfortable_mexican_sofa/widgets.css +0 -29
- data/app/controllers/cms_admin/dialogs_controller.rb +0 -13
- data/app/views/cms_admin/categories/_categories.html.erb +0 -6
- data/app/views/cms_admin/categories/_edit.html.erb +0 -7
- data/app/views/cms_admin/categories/_form.html.erb +0 -12
- data/app/views/cms_admin/categories/_index.html.erb +0 -31
- data/app/views/cms_admin/categories/_show.html.erb +0 -16
- data/app/views/cms_admin/dialogs/image.html.erb +0 -7
- data/app/views/cms_admin/dialogs/link.html.erb +0 -5
- data/app/views/cms_admin/files/_file.html.erb +0 -18
- data/app/views/cms_admin/files/_form.html.erb +0 -16
- data/app/views/cms_admin/files/_index.html.erb +0 -16
- data/app/views/cms_admin/files/_page_form.html.erb +0 -12
- data/app/views/cms_admin/files/edit.html.erb +0 -5
- data/app/views/cms_admin/files/index.html.erb +0 -29
- data/app/views/cms_admin/files/new.html.erb +0 -5
- data/app/views/cms_admin/layouts/_form.html.erb +0 -20
- data/app/views/cms_admin/layouts/_index_branch.html.erb +0 -27
- data/app/views/cms_admin/layouts/edit.html.erb +0 -11
- data/app/views/cms_admin/layouts/index.html.erb +0 -10
- data/app/views/cms_admin/layouts/new.html.erb +0 -5
- data/app/views/cms_admin/pages/_form.html.erb +0 -39
- data/app/views/cms_admin/pages/_form_blocks.html.erb +0 -41
- data/app/views/cms_admin/pages/_index_branch.html.erb +0 -43
- data/app/views/cms_admin/pages/edit.html.erb +0 -11
- data/app/views/cms_admin/pages/index.html.erb +0 -12
- data/app/views/cms_admin/pages/new.html.erb +0 -5
- data/app/views/cms_admin/revisions/show.html.erb +0 -36
- data/app/views/cms_admin/sites/_form.html.erb +0 -10
- data/app/views/cms_admin/sites/_mirrors.html.erb +0 -20
- data/app/views/cms_admin/sites/edit.html.erb +0 -5
- data/app/views/cms_admin/sites/index.html.erb +0 -23
- data/app/views/cms_admin/sites/new.html.erb +0 -5
- data/app/views/cms_admin/snippets/_form.html.erb +0 -13
- data/app/views/cms_admin/snippets/edit.html.erb +0 -10
- data/app/views/cms_admin/snippets/index.html.erb +0 -33
- data/app/views/cms_admin/snippets/new.html.erb +0 -5
- data/app/views/layouts/cms_admin.html.erb +0 -5
- data/app/views/layouts/cms_admin/_body.html.erb +0 -23
- data/app/views/layouts/cms_admin/_center.html.erb +0 -6
- data/app/views/layouts/cms_admin/_head.html.erb +0 -43
- data/app/views/layouts/cms_admin/_left.html.erb +0 -10
- data/app/views/layouts/cms_admin/_right.html.erb +0 -1
- data/test/functional/cms_admin/dialogs_controller_test.rb +0 -24
- data/test/gemfiles/Gemfile.rails.3.0 +0 -10
- data/test/unit/form_builder_test.rb +0 -69
@@ -0,0 +1,35 @@
|
|
1
|
+
- content_for :right_column do
|
2
|
+
#form-save.box
|
3
|
+
%label.checkbox.inline
|
4
|
+
%input{:type => 'checkbox'}
|
5
|
+
= Cms::Page.human_attribute_name(:is_published)
|
6
|
+
%button.btn.btn-small.btn-primary.pull-right
|
7
|
+
= render :partial => 'cms_admin/files/index'
|
8
|
+
|
9
|
+
= form.text_field :label, :data => {:slugify => @page.new_record?}
|
10
|
+
|
11
|
+
- unless @site.pages.count == 0 || @site.pages.root == @page
|
12
|
+
= form.text_field :slug, :data => {:slug => true}
|
13
|
+
- unless @page.new_record?
|
14
|
+
= form.text_field :full_path, :id => 'full-path', :disabled => true
|
15
|
+
|
16
|
+
- if (options = Cms::Layout.options_for_select(@site)).present?
|
17
|
+
= form.select :layout_id, options, {}, 'data-url' => form_blocks_cms_admin_site_page_path(@site, @page.id.to_i)
|
18
|
+
|
19
|
+
- if (options = Cms::Page.options_for_select(@site, @page)).present?
|
20
|
+
= form.select :parent_id, options
|
21
|
+
|
22
|
+
- if (options = Cms::Page.options_for_select(@site, @page, nil, 0, false)).present?
|
23
|
+
= form.select :target_page_id, [["---- #{t('.select_target_page')} ----", nil]] + options
|
24
|
+
|
25
|
+
= cms_hook :page_form, :object => form
|
26
|
+
|
27
|
+
= render :partial => 'cms_admin/categories/form', :object => form
|
28
|
+
|
29
|
+
= render :partial => 'form_blocks'
|
30
|
+
|
31
|
+
= form.check_box :is_published, :label => 'Published'
|
32
|
+
|
33
|
+
.form-actions
|
34
|
+
= form.submit t('.preview'), :name => 'preview', :id => nil, :class => 'btn'
|
35
|
+
= form.submit t(@page.new_record?? '.create' : '.update'), :class => 'btn btn-primary'
|
@@ -0,0 +1,28 @@
|
|
1
|
+
- namespace = { }
|
2
|
+
- tags = @page.tags(true).select{ |t| t.is_cms_block? }.uniq_by{|t| t.identifier}
|
3
|
+
- tags.each do |tag|
|
4
|
+
- namespace[tag.namespace || 'default'] ||= []
|
5
|
+
- namespace[tag.namespace || 'default'] << tag
|
6
|
+
|
7
|
+
#form-blocks
|
8
|
+
- if tags.empty?
|
9
|
+
.no-tags
|
10
|
+
= link_to @page.layout.label, edit_cms_admin_site_layout_path(@site, @page.layout)
|
11
|
+
= t('.no_tags').html_safe
|
12
|
+
|
13
|
+
- else
|
14
|
+
= fields_for :blocks, nil, :builder => ComfortableMexicanSofa::FormBuilder do |cms_blocks|
|
15
|
+
|
16
|
+
.tabbable
|
17
|
+
- if namespace.size > 1
|
18
|
+
%ul.nav.nav-tabs
|
19
|
+
- namespace.each_with_index do |(name, tags), index|
|
20
|
+
%li{:class => index == 0 ? 'active' : nil}
|
21
|
+
= link_to name.humanize, "#ns-#{name}", :data => {:toggle => 'tab'}
|
22
|
+
.tab-content
|
23
|
+
- block_index = 0
|
24
|
+
- namespace.each_with_index do |(name, tags), index|
|
25
|
+
.tab-pane{:id => "ns-#{name}", :class => index == 0 ? 'active' : nil}
|
26
|
+
- tags.each do |tag|
|
27
|
+
= cms_blocks.send(tag.class.to_s.demodulize.underscore, tag, block_index) rescue nil
|
28
|
+
- block_index += 1
|
@@ -0,0 +1,35 @@
|
|
1
|
+
- page ||= index_branch
|
2
|
+
- children = @pages_by_parent[page.id]
|
3
|
+
- siblings = @pages_by_parent[page.parent_id]
|
4
|
+
- has_children = children.present?
|
5
|
+
- has_siblings = siblings.size > 1
|
6
|
+
- branch_open = (session[:cms_page_tree] || []).member?(page.id.to_s) || page.root?
|
7
|
+
- category_view = params[:category].present?
|
8
|
+
|
9
|
+
%li{:id => dom_id(page)}
|
10
|
+
.item
|
11
|
+
.toggle{:class => branch_open ? 'open' : nil}
|
12
|
+
- if !category_view && has_children && !page.root?
|
13
|
+
= link_to toggle_branch_cms_admin_site_page_path(@site, page), :remote => true do
|
14
|
+
%span= t('.toggle')
|
15
|
+
|
16
|
+
.icon{:class => page.is_published?? 'published' : 'draft'}
|
17
|
+
- if !category_view && has_siblings
|
18
|
+
.dragger
|
19
|
+
%span ⇅
|
20
|
+
|
21
|
+
.btn-group
|
22
|
+
= link_to t('.add_child_page'), new_cms_admin_site_page_path(@site, :parent_id => page.id), :class => 'btn btn-small'
|
23
|
+
= link_to t('.edit'), edit_cms_admin_site_page_path(@site, page), :class => 'btn btn-small'
|
24
|
+
= link_to t('.delete'), cms_admin_site_page_path(@site, page), :method => :delete, :data => {:confirm => t('.are_you_sure')}, :class => 'btn btn-small btn-danger'
|
25
|
+
|
26
|
+
.item-content
|
27
|
+
.item-title
|
28
|
+
= link_to page.label, edit_cms_admin_site_page_path(@site, page), :class => 'item-label'
|
29
|
+
= render :partial => '/cms_admin/categories/categories', :object => page
|
30
|
+
.item-meta
|
31
|
+
= link_to page.url, page.url, :target => '_blank'
|
32
|
+
|
33
|
+
- if !category_view && has_children && branch_open
|
34
|
+
%ul.children
|
35
|
+
= render :partial => 'index_branch', :collection => children
|
@@ -0,0 +1,9 @@
|
|
1
|
+
.page-header
|
2
|
+
= link_to pluralize(@page.revisions.count, t('.revision')), cms_admin_site_page_revisions_path(@site, @page), :class => 'btn pull-right'
|
3
|
+
%h2= t('.title')
|
4
|
+
|
5
|
+
- content_for :right_column do
|
6
|
+
= render :partial => 'cms_admin/sites/mirrors', :object => @page
|
7
|
+
|
8
|
+
= comfy_form_for @page, :as => :page, :url => {:action => :update}, :html => {:multipart => true} do |form|
|
9
|
+
= render form
|
@@ -1,3 +1,2 @@
|
|
1
|
-
$('#
|
2
|
-
$.CMS.enable_codemirror();
|
3
|
-
$('#tag_namespaces').tabs();
|
1
|
+
$('#form-blocks').replaceWith('<%= escape_javascript(render(:partial => "form_blocks")) %>');
|
2
|
+
$.CMS.enable_codemirror();
|
@@ -0,0 +1,11 @@
|
|
1
|
+
.page-header
|
2
|
+
= link_to t('.new_link'), new_cms_admin_site_page_path(@site), :class => 'btn pull-right'
|
3
|
+
%h2= t('.title')
|
4
|
+
|
5
|
+
- content_for :right_column do
|
6
|
+
= render :partial => 'cms_admin/sites/mirrors'
|
7
|
+
|
8
|
+
= render :partial => 'cms_admin/categories/index', :object => 'Cms::Page'
|
9
|
+
|
10
|
+
%ul.list.sortable
|
11
|
+
= render :partial => 'index_branch', :collection => @pages
|
@@ -0,0 +1,28 @@
|
|
1
|
+
.page-header
|
2
|
+
%h2
|
3
|
+
= t('.title')
|
4
|
+
= @record.class.to_s.demodulize
|
5
|
+
%h4
|
6
|
+
= @record.is_a?(Cms::Page) ? "#{t('.full_path')}: #{@record.full_path}" : "#{t('.slug')}: #{@record.identifier}"
|
7
|
+
|
8
|
+
- content_for :right_column do
|
9
|
+
.box.revisions
|
10
|
+
- @record.revisions.each do |revision|
|
11
|
+
= active_link_to revision.created_at, :id => revision.id
|
12
|
+
|
13
|
+
|
14
|
+
%table.table
|
15
|
+
%tr
|
16
|
+
%th
|
17
|
+
%th= t('.current')
|
18
|
+
%th= l(@revision.created_at)
|
19
|
+
|
20
|
+
- @current_content.each do |label, content|
|
21
|
+
%tr
|
22
|
+
%th= Cms::Layout.human_attribute_name(label)
|
23
|
+
%td.main= content
|
24
|
+
%td.main= @versioned_content[label]
|
25
|
+
|
26
|
+
= comfy_form_for @revision, :url => {:action => :revert} do |form|
|
27
|
+
.form-actions
|
28
|
+
= form.submit t('.update'), :class => 'btn btn-primary'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
= form.text_field :label, :data => {:slugify => @site.new_record?}
|
2
|
+
= form.text_field :identifier, :data => {:slug => true}
|
3
|
+
= form.text_field :hostname
|
4
|
+
= form.text_field :path
|
5
|
+
= form.select :locale, ComfortableMexicanSofa.config.locales.to_a.collect{|l| [l[1], l[0]]}
|
6
|
+
= form.check_box :is_mirrored
|
7
|
+
|
8
|
+
.form-actions
|
9
|
+
= form.submit t(@site.new_record?? '.create' : '.update'), :class => 'btn btn-primary'
|
10
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
- object ||= mirrors
|
2
|
+
- return unless @site.is_mirrored?
|
3
|
+
|
4
|
+
- options = case object
|
5
|
+
- when Cms::Layout
|
6
|
+
- object.mirrors.collect{|m| [m.site.label, edit_cms_admin_site_layout_path(m.site, m)]}
|
7
|
+
- when Cms::Page
|
8
|
+
- object.mirrors.collect{|m| [m.site.label, edit_cms_admin_site_page_path(m.site, m)]}
|
9
|
+
- when Cms::Snippet
|
10
|
+
- object.mirrors.collect{|m| [m.site.label, edit_cms_admin_site_snippet_path(m.site, m)]}
|
11
|
+
- else
|
12
|
+
- (Cms::Site.mirrored - [@site]).collect{|s| [s.label, url_for(params.merge(:site_id => s))]}
|
13
|
+
|
14
|
+
- options = [[@site.label, request.fullpath]] + options
|
15
|
+
|
16
|
+
#mirrors.box
|
17
|
+
= select_tag :mirror, options_for_select(options)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
.page-header
|
2
|
+
= link_to t('.new_link'), new_cms_admin_site_path, :class => 'btn pull-right'
|
3
|
+
%h2= t('.title')
|
4
|
+
|
5
|
+
%table.table.table-hover.table-bordered
|
6
|
+
- @sites.each do |site|
|
7
|
+
%tr
|
8
|
+
%td
|
9
|
+
.icon
|
10
|
+
%td.main
|
11
|
+
.item-title
|
12
|
+
= link_to site.label, cms_admin_site_pages_path(site)
|
13
|
+
.item-meta
|
14
|
+
.identifier
|
15
|
+
= site.identifier
|
16
|
+
= "(#{site.locale})"
|
17
|
+
.host
|
18
|
+
- host = "http://#{site.hostname}/#{site.path}"
|
19
|
+
= link_to host, host, :target => '_blank'
|
20
|
+
%td
|
21
|
+
.btn-group
|
22
|
+
= link_to t('.select'), cms_admin_site_pages_path(site), :class => 'btn btn-small'
|
23
|
+
= link_to t('.edit'), edit_cms_admin_site_path(site), :class => 'btn btn-small'
|
24
|
+
= link_to t('.delete'), cms_admin_site_path(site), :method => :delete, :data => {:confirm => t('.are_you_sure')}, :class => 'btn btn-small btn-danger'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
- content_for :right_column do
|
2
|
+
= render :partial => 'cms_admin/files/index'
|
3
|
+
|
4
|
+
= form.text_field :label, :data => {:slugify => @snippet.new_record?}
|
5
|
+
= form.text_field :identifier, :data => {:slug => true}
|
6
|
+
= form.text_area :content, :data => {:cm_mode => 'text/html'}
|
7
|
+
|
8
|
+
= render :partial => 'cms_admin/categories/form', :object => form
|
9
|
+
|
10
|
+
.form-actions
|
11
|
+
= form.submit t(@snippet.new_record?? '.create' : '.update'), :class => 'btn btn-primary'
|
@@ -0,0 +1,9 @@
|
|
1
|
+
.page-header
|
2
|
+
= link_to pluralize(@snippet.revisions.count, t('.revision')), cms_admin_site_snippet_revisions_path(@site, @snippet), :class => 'btn pull-right'
|
3
|
+
%h2= t('.title')
|
4
|
+
|
5
|
+
- content_for :right_column do
|
6
|
+
= render :partial => 'cms_admin/sites/mirrors', :object => @snippet
|
7
|
+
|
8
|
+
= comfy_form_for @snippet, :as => :snippet, :url => {:action => :update} do |form|
|
9
|
+
= render form
|
@@ -0,0 +1,28 @@
|
|
1
|
+
.page-header
|
2
|
+
= link_to t('.new_link'), new_cms_admin_site_snippet_path(@site), :class => 'btn pull-right'
|
3
|
+
%h2= t('.title')
|
4
|
+
|
5
|
+
- content_for :right_column do
|
6
|
+
= render :partial => 'cms_admin/sites/mirrors'
|
7
|
+
|
8
|
+
= render :partial => 'cms_admin/categories/index', :object => 'Cms::Snippet'
|
9
|
+
|
10
|
+
%table.table.table-hover.table-bordered
|
11
|
+
%tbody.sortable
|
12
|
+
- @snippets.each do |snippet|
|
13
|
+
%tr{:id => dom_id(snippet)}
|
14
|
+
%td
|
15
|
+
.icon
|
16
|
+
- if !params[:category].present? && @site.snippets.count > 1
|
17
|
+
.dragger
|
18
|
+
%span ⇅
|
19
|
+
%td.main
|
20
|
+
.item-title
|
21
|
+
= link_to snippet.label, edit_cms_admin_site_snippet_path(@site, snippet)
|
22
|
+
= render :partial => '/cms_admin/categories/categories', :object => snippet
|
23
|
+
.item-meta
|
24
|
+
= snippet.identifier
|
25
|
+
%td
|
26
|
+
.btn-group
|
27
|
+
= link_to t('.edit'), edit_cms_admin_site_snippet_path(@site, snippet), :class => 'btn btn-small'
|
28
|
+
= link_to t('.delete'), cms_admin_site_snippet_path(@site, snippet), :method => :delete, :data => {:confirm => t('.are_you_sure')}, :class => 'btn btn-small btn-danger'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
%body#comfy{:class => "c-#{params[:controller].slugify} a-#{params[:action].slugify}"}
|
2
|
+
= cms_hook :header
|
3
|
+
|
4
|
+
.body-wrapper
|
5
|
+
.left-column
|
6
|
+
.left-column-content
|
7
|
+
= render :partial => 'layouts/cms_admin/left'
|
8
|
+
.right-column
|
9
|
+
.right-column-content
|
10
|
+
= render :partial => 'layouts/cms_admin/right'
|
11
|
+
.center-column
|
12
|
+
= render :partial => 'layouts/cms_admin/center'
|
13
|
+
|
14
|
+
.sofa
|
15
|
+
= link_to 'ComfortableMexicanSofa', 'https://github.com/comfy', :target => '_blank'
|
16
|
+
%span.version= ComfortableMexicanSofa::VERSION
|
@@ -0,0 +1,13 @@
|
|
1
|
+
%head
|
2
|
+
%meta{'http-equiv' => "Content-type", :content => "text/html; charset=utf-8"}
|
3
|
+
%title= ComfortableMexicanSofa.config.cms_title
|
4
|
+
= csrf_meta_tag
|
5
|
+
|
6
|
+
%meta{:name => "cms-admin-path", :content => ComfortableMexicanSofa.config.admin_route_prefix}
|
7
|
+
%meta{:name => "cms-site-id", :content => @site.try(:id)}
|
8
|
+
|
9
|
+
= stylesheet_link_tag 'comfortable_mexican_sofa/application'
|
10
|
+
= javascript_include_tag 'comfortable_mexican_sofa/application'
|
11
|
+
|
12
|
+
= yield :head
|
13
|
+
= cms_hook :html_head
|
@@ -0,0 +1,10 @@
|
|
1
|
+
%ul.navigation
|
2
|
+
%li= active_link_to t('cms_admin.base.sites'), cms_admin_sites_path, :active => ['cms_admin/sites']
|
3
|
+
|
4
|
+
- if @site && !@site.new_record?
|
5
|
+
%li= active_link_to t('cms_admin.base.layouts'), cms_admin_site_layouts_path(@site)
|
6
|
+
%li= active_link_to t('cms_admin.base.pages'), cms_admin_site_pages_path(@site)
|
7
|
+
%li= active_link_to t('cms_admin.base.snippets'), cms_admin_site_snippets_path(@site)
|
8
|
+
%li= active_link_to t('cms_admin.base.files'), cms_admin_site_files_path(@site)
|
9
|
+
|
10
|
+
= cms_hook :navigation
|
@@ -0,0 +1 @@
|
|
1
|
+
= yield :right_column
|
@@ -1,23 +1,325 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
9
|
-
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.description
|
14
|
-
|
15
|
-
s.
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
7
|
+
s.name = "comfortable_mexican_sofa"
|
8
|
+
s.version = "1.7.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Oleg Khabarov", "The Working Group Inc"]
|
12
|
+
s.date = "2013-03-01"
|
13
|
+
s.description = ""
|
14
|
+
s.email = "oleg@theworkinggroup.ca"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".travis.yml",
|
21
|
+
"Gemfile",
|
22
|
+
"LICENSE",
|
23
|
+
"README.md",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"app/assets/images/comfortable_mexican_sofa/arrow_bottom.gif",
|
27
|
+
"app/assets/images/comfortable_mexican_sofa/arrow_right.gif",
|
28
|
+
"app/assets/images/comfortable_mexican_sofa/bootstrap/glyphicons-halflings-white.png",
|
29
|
+
"app/assets/images/comfortable_mexican_sofa/bootstrap/glyphicons-halflings.png",
|
30
|
+
"app/assets/images/comfortable_mexican_sofa/checkerboard.gif",
|
31
|
+
"app/assets/images/comfortable_mexican_sofa/icon_draft.gif",
|
32
|
+
"app/assets/images/comfortable_mexican_sofa/icon_file.gif",
|
33
|
+
"app/assets/images/comfortable_mexican_sofa/icon_layout.gif",
|
34
|
+
"app/assets/images/comfortable_mexican_sofa/icon_move.gif",
|
35
|
+
"app/assets/images/comfortable_mexican_sofa/icon_page.gif",
|
36
|
+
"app/assets/images/comfortable_mexican_sofa/icon_site.gif",
|
37
|
+
"app/assets/images/comfortable_mexican_sofa/icon_snippet.gif",
|
38
|
+
"app/assets/images/comfortable_mexican_sofa/nav_arrow.png",
|
39
|
+
"app/assets/javascripts/comfortable_mexican_sofa/application.js",
|
40
|
+
"app/assets/javascripts/comfortable_mexican_sofa/lib/bootstrap-datetimepicker.js",
|
41
|
+
"app/assets/javascripts/comfortable_mexican_sofa/lib/bootstrap-wysihtml5.js",
|
42
|
+
"app/assets/javascripts/comfortable_mexican_sofa/lib/bootstrap.js",
|
43
|
+
"app/assets/javascripts/comfortable_mexican_sofa/lib/codemirror.js",
|
44
|
+
"app/assets/javascripts/comfortable_mexican_sofa/lib/wysihtml5.js",
|
45
|
+
"app/assets/stylesheets/comfortable_mexican_sofa/application.css.sass",
|
46
|
+
"app/assets/stylesheets/comfortable_mexican_sofa/base.css.sass",
|
47
|
+
"app/assets/stylesheets/comfortable_mexican_sofa/base_overrides.css.sass",
|
48
|
+
"app/assets/stylesheets/comfortable_mexican_sofa/bootstrap_overrides.css.sass",
|
49
|
+
"app/assets/stylesheets/comfortable_mexican_sofa/codemirror_overrides.css.sass",
|
50
|
+
"app/assets/stylesheets/comfortable_mexican_sofa/lib/bootstrap-datetimepicker.css",
|
51
|
+
"app/assets/stylesheets/comfortable_mexican_sofa/lib/bootstrap-wysihtml5.css",
|
52
|
+
"app/assets/stylesheets/comfortable_mexican_sofa/lib/bootstrap.css",
|
53
|
+
"app/assets/stylesheets/comfortable_mexican_sofa/lib/codemirror.css",
|
54
|
+
"app/assets/stylesheets/comfortable_mexican_sofa/wysihtml5_overrides.css.sass",
|
55
|
+
"app/controllers/application_controller.rb",
|
56
|
+
"app/controllers/cms_admin/base_controller.rb",
|
57
|
+
"app/controllers/cms_admin/categories_controller.rb",
|
58
|
+
"app/controllers/cms_admin/files_controller.rb",
|
59
|
+
"app/controllers/cms_admin/layouts_controller.rb",
|
60
|
+
"app/controllers/cms_admin/pages_controller.rb",
|
61
|
+
"app/controllers/cms_admin/revisions_controller.rb",
|
62
|
+
"app/controllers/cms_admin/sites_controller.rb",
|
63
|
+
"app/controllers/cms_admin/snippets_controller.rb",
|
64
|
+
"app/controllers/cms_content_controller.rb",
|
65
|
+
"app/models/cms/block.rb",
|
66
|
+
"app/models/cms/categorization.rb",
|
67
|
+
"app/models/cms/category.rb",
|
68
|
+
"app/models/cms/file.rb",
|
69
|
+
"app/models/cms/layout.rb",
|
70
|
+
"app/models/cms/page.rb",
|
71
|
+
"app/models/cms/revision.rb",
|
72
|
+
"app/models/cms/site.rb",
|
73
|
+
"app/models/cms/snippet.rb",
|
74
|
+
"app/views/cms_admin/categories/_categories.html.haml",
|
75
|
+
"app/views/cms_admin/categories/_edit.html.haml",
|
76
|
+
"app/views/cms_admin/categories/_form.html.haml",
|
77
|
+
"app/views/cms_admin/categories/_index.html.haml",
|
78
|
+
"app/views/cms_admin/categories/_show.html.haml",
|
79
|
+
"app/views/cms_admin/categories/create.js.erb",
|
80
|
+
"app/views/cms_admin/categories/destroy.js.erb",
|
81
|
+
"app/views/cms_admin/categories/edit.js.erb",
|
82
|
+
"app/views/cms_admin/categories/update.js.erb",
|
83
|
+
"app/views/cms_admin/files/_file.html.haml",
|
84
|
+
"app/views/cms_admin/files/_form.html.haml",
|
85
|
+
"app/views/cms_admin/files/_index.html.haml",
|
86
|
+
"app/views/cms_admin/files/_page_form.html.haml",
|
87
|
+
"app/views/cms_admin/files/create.js.erb",
|
88
|
+
"app/views/cms_admin/files/destroy.js.erb",
|
89
|
+
"app/views/cms_admin/files/edit.html.haml",
|
90
|
+
"app/views/cms_admin/files/index.html.haml",
|
91
|
+
"app/views/cms_admin/files/new.html.haml",
|
92
|
+
"app/views/cms_admin/layouts/_form.html.haml",
|
93
|
+
"app/views/cms_admin/layouts/_index_branch.html.haml",
|
94
|
+
"app/views/cms_admin/layouts/edit.html.haml",
|
95
|
+
"app/views/cms_admin/layouts/index.html.haml",
|
96
|
+
"app/views/cms_admin/layouts/new.html.haml",
|
97
|
+
"app/views/cms_admin/pages/_form.html.haml",
|
98
|
+
"app/views/cms_admin/pages/_form_blocks.html.haml",
|
99
|
+
"app/views/cms_admin/pages/_index_branch.html.haml",
|
100
|
+
"app/views/cms_admin/pages/edit.html.haml",
|
101
|
+
"app/views/cms_admin/pages/form_blocks.js.erb",
|
102
|
+
"app/views/cms_admin/pages/index.html.haml",
|
103
|
+
"app/views/cms_admin/pages/new.html.haml",
|
104
|
+
"app/views/cms_admin/pages/toggle_branch.js.erb",
|
105
|
+
"app/views/cms_admin/revisions/show.html.haml",
|
106
|
+
"app/views/cms_admin/sites/_form.html.haml",
|
107
|
+
"app/views/cms_admin/sites/_mirrors.html.haml",
|
108
|
+
"app/views/cms_admin/sites/edit.html.haml",
|
109
|
+
"app/views/cms_admin/sites/index.html.haml",
|
110
|
+
"app/views/cms_admin/sites/new.html.haml",
|
111
|
+
"app/views/cms_admin/snippets/_form.html.haml",
|
112
|
+
"app/views/cms_admin/snippets/edit.html.haml",
|
113
|
+
"app/views/cms_admin/snippets/index.html.haml",
|
114
|
+
"app/views/cms_admin/snippets/new.html.haml",
|
115
|
+
"app/views/cms_content/render_sitemap.xml.builder",
|
116
|
+
"app/views/layouts/cms_admin.html.haml",
|
117
|
+
"app/views/layouts/cms_admin/_body.html.haml",
|
118
|
+
"app/views/layouts/cms_admin/_center.html.haml",
|
119
|
+
"app/views/layouts/cms_admin/_head.html.haml",
|
120
|
+
"app/views/layouts/cms_admin/_left.html.haml",
|
121
|
+
"app/views/layouts/cms_admin/_right.html.haml",
|
122
|
+
"comfortable_mexican_sofa.gemspec",
|
123
|
+
"config.ru",
|
124
|
+
"config/application.rb",
|
125
|
+
"config/boot.rb",
|
126
|
+
"config/database.yml",
|
127
|
+
"config/environment.rb",
|
128
|
+
"config/environments/development.rb",
|
129
|
+
"config/environments/production.rb",
|
130
|
+
"config/environments/test.rb",
|
131
|
+
"config/initializers/comfortable_mexican_sofa.rb",
|
132
|
+
"config/initializers/paperclip.rb",
|
133
|
+
"config/locales/de.yml",
|
134
|
+
"config/locales/en.yml",
|
135
|
+
"config/locales/es.yml",
|
136
|
+
"config/locales/fr.yml",
|
137
|
+
"config/locales/ja.yml",
|
138
|
+
"config/locales/pl.yml",
|
139
|
+
"config/locales/pt-BR.yml",
|
140
|
+
"config/locales/ru.yml",
|
141
|
+
"config/locales/sv.yml",
|
142
|
+
"config/locales/zh-CN.yml",
|
143
|
+
"config/routes.rb",
|
144
|
+
"db/cms_fixtures/sample-site/layouts/default/_default.yml",
|
145
|
+
"db/cms_fixtures/sample-site/layouts/default/content.html",
|
146
|
+
"db/cms_fixtures/sample-site/layouts/default/css.css",
|
147
|
+
"db/cms_fixtures/sample-site/layouts/default/js.js",
|
148
|
+
"db/cms_fixtures/sample-site/layouts/default/nested/_nested.yml",
|
149
|
+
"db/cms_fixtures/sample-site/layouts/default/nested/content.html",
|
150
|
+
"db/cms_fixtures/sample-site/layouts/default/nested/css.css",
|
151
|
+
"db/cms_fixtures/sample-site/layouts/default/nested/js.js",
|
152
|
+
"db/cms_fixtures/sample-site/pages/index/_index.yml",
|
153
|
+
"db/cms_fixtures/sample-site/pages/index/child/_child.yml",
|
154
|
+
"db/cms_fixtures/sample-site/pages/index/child/left.html",
|
155
|
+
"db/cms_fixtures/sample-site/pages/index/child/right.html",
|
156
|
+
"db/cms_fixtures/sample-site/pages/index/content.html",
|
157
|
+
"db/cms_fixtures/sample-site/snippets/default/_default.yml",
|
158
|
+
"db/cms_fixtures/sample-site/snippets/default/content.html",
|
159
|
+
"db/migrate/01_create_cms.rb",
|
160
|
+
"db/seeds.rb",
|
161
|
+
"db/upgrade_migrations/02_upgrade_to_1_1_0.rb",
|
162
|
+
"db/upgrade_migrations/03_upgrade_to_1_2_0.rb",
|
163
|
+
"db/upgrade_migrations/04_upgrade_to_1_3_0.rb",
|
164
|
+
"db/upgrade_migrations/05_upgrade_to_1_4_0.rb",
|
165
|
+
"db/upgrade_migrations/06_upgrade_to_1_5_0.rb",
|
166
|
+
"db/upgrade_migrations/07_upgrade_to_1_6_0.rb",
|
167
|
+
"doc/preview.png",
|
168
|
+
"doc/sofa.png",
|
169
|
+
"lib/comfortable_mexican_sofa.rb",
|
170
|
+
"lib/comfortable_mexican_sofa/authentication/dummy_auth.rb",
|
171
|
+
"lib/comfortable_mexican_sofa/authentication/http_auth.rb",
|
172
|
+
"lib/comfortable_mexican_sofa/configuration.rb",
|
173
|
+
"lib/comfortable_mexican_sofa/engine.rb",
|
174
|
+
"lib/comfortable_mexican_sofa/error.rb",
|
175
|
+
"lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb",
|
176
|
+
"lib/comfortable_mexican_sofa/extensions/has_revisions.rb",
|
177
|
+
"lib/comfortable_mexican_sofa/extensions/is_categorized.rb",
|
178
|
+
"lib/comfortable_mexican_sofa/extensions/is_mirrored.rb",
|
179
|
+
"lib/comfortable_mexican_sofa/extensions/rails.rb",
|
180
|
+
"lib/comfortable_mexican_sofa/fixtures.rb",
|
181
|
+
"lib/comfortable_mexican_sofa/form_builder.rb",
|
182
|
+
"lib/comfortable_mexican_sofa/render_methods.rb",
|
183
|
+
"lib/comfortable_mexican_sofa/sitemap.rb",
|
184
|
+
"lib/comfortable_mexican_sofa/tag.rb",
|
185
|
+
"lib/comfortable_mexican_sofa/tags/asset.rb",
|
186
|
+
"lib/comfortable_mexican_sofa/tags/collection.rb",
|
187
|
+
"lib/comfortable_mexican_sofa/tags/field_datetime.rb",
|
188
|
+
"lib/comfortable_mexican_sofa/tags/field_integer.rb",
|
189
|
+
"lib/comfortable_mexican_sofa/tags/field_rich_text.rb",
|
190
|
+
"lib/comfortable_mexican_sofa/tags/field_string.rb",
|
191
|
+
"lib/comfortable_mexican_sofa/tags/field_text.rb",
|
192
|
+
"lib/comfortable_mexican_sofa/tags/file.rb",
|
193
|
+
"lib/comfortable_mexican_sofa/tags/helper.rb",
|
194
|
+
"lib/comfortable_mexican_sofa/tags/page_datetime.rb",
|
195
|
+
"lib/comfortable_mexican_sofa/tags/page_file.rb",
|
196
|
+
"lib/comfortable_mexican_sofa/tags/page_files.rb",
|
197
|
+
"lib/comfortable_mexican_sofa/tags/page_integer.rb",
|
198
|
+
"lib/comfortable_mexican_sofa/tags/page_markdown.rb",
|
199
|
+
"lib/comfortable_mexican_sofa/tags/page_rich_text.rb",
|
200
|
+
"lib/comfortable_mexican_sofa/tags/page_string.rb",
|
201
|
+
"lib/comfortable_mexican_sofa/tags/page_text.rb",
|
202
|
+
"lib/comfortable_mexican_sofa/tags/partial.rb",
|
203
|
+
"lib/comfortable_mexican_sofa/tags/snippet.rb",
|
204
|
+
"lib/comfortable_mexican_sofa/version.rb",
|
205
|
+
"lib/comfortable_mexican_sofa/view_hooks.rb",
|
206
|
+
"lib/comfortable_mexican_sofa/view_methods.rb",
|
207
|
+
"lib/generators/comfy/cms/README",
|
208
|
+
"lib/generators/comfy/cms/cms_generator.rb",
|
209
|
+
"lib/tasks/comfortable_mexican_sofa.rake",
|
210
|
+
"script/rails",
|
211
|
+
"test/fixtures/cms/blocks.yml",
|
212
|
+
"test/fixtures/cms/categories.yml",
|
213
|
+
"test/fixtures/cms/categorizations.yml",
|
214
|
+
"test/fixtures/cms/files.yml",
|
215
|
+
"test/fixtures/cms/layouts.yml",
|
216
|
+
"test/fixtures/cms/pages.yml",
|
217
|
+
"test/fixtures/cms/revisions.yml",
|
218
|
+
"test/fixtures/cms/sites.yml",
|
219
|
+
"test/fixtures/cms/snippets.yml",
|
220
|
+
"test/fixtures/files/data.zip",
|
221
|
+
"test/fixtures/files/document.pdf",
|
222
|
+
"test/fixtures/files/image.gif",
|
223
|
+
"test/fixtures/files/image.jpg",
|
224
|
+
"test/fixtures/views/_nav_hook.html.erb",
|
225
|
+
"test/fixtures/views/_nav_hook_2.html.erb",
|
226
|
+
"test/fixtures/views/render_test/_test.html.erb",
|
227
|
+
"test/fixtures/views/render_test/new.html.erb",
|
228
|
+
"test/fixtures/views/render_test/render_layout.html.erb",
|
229
|
+
"test/functional/cms_admin/base_controller_test.rb",
|
230
|
+
"test/functional/cms_admin/categories_controller_test.rb",
|
231
|
+
"test/functional/cms_admin/files_controller_test.rb",
|
232
|
+
"test/functional/cms_admin/layouts_controller_test.rb",
|
233
|
+
"test/functional/cms_admin/pages_controller_test.rb",
|
234
|
+
"test/functional/cms_admin/revisions_controller_test.rb",
|
235
|
+
"test/functional/cms_admin/sites_controller_test.rb",
|
236
|
+
"test/functional/cms_admin/snippets_controller_test.rb",
|
237
|
+
"test/functional/cms_content_controller_test.rb",
|
238
|
+
"test/gemfiles/Gemfile.rails.3.1",
|
239
|
+
"test/gemfiles/Gemfile.rails.3.2",
|
240
|
+
"test/gemfiles/Gemfile.rails.4.0",
|
241
|
+
"test/integration/authentication_test.rb",
|
242
|
+
"test/integration/fixtures_test.rb",
|
243
|
+
"test/integration/mirrors_test.rb",
|
244
|
+
"test/integration/render_cms_test.rb",
|
245
|
+
"test/integration/routing_extensions_test.rb",
|
246
|
+
"test/integration/sites_test.rb",
|
247
|
+
"test/integration/view_hooks_test.rb",
|
248
|
+
"test/test_helper.rb",
|
249
|
+
"test/unit/configuration_test.rb",
|
250
|
+
"test/unit/fixtures_test.rb",
|
251
|
+
"test/unit/mirrors_test.rb",
|
252
|
+
"test/unit/models/block_test.rb",
|
253
|
+
"test/unit/models/categorization_test.rb",
|
254
|
+
"test/unit/models/category_test.rb",
|
255
|
+
"test/unit/models/file_test.rb",
|
256
|
+
"test/unit/models/layout_test.rb",
|
257
|
+
"test/unit/models/page_test.rb",
|
258
|
+
"test/unit/models/site_test.rb",
|
259
|
+
"test/unit/models/snippet_test.rb",
|
260
|
+
"test/unit/revisions_test.rb",
|
261
|
+
"test/unit/sitemap_test.rb",
|
262
|
+
"test/unit/tag_test.rb",
|
263
|
+
"test/unit/tags/asset_test.rb",
|
264
|
+
"test/unit/tags/collection_test.rb",
|
265
|
+
"test/unit/tags/field_datetime_test.rb",
|
266
|
+
"test/unit/tags/field_integer_test.rb",
|
267
|
+
"test/unit/tags/field_rich_text_test.rb",
|
268
|
+
"test/unit/tags/field_string_test.rb",
|
269
|
+
"test/unit/tags/field_text_test.rb",
|
270
|
+
"test/unit/tags/file_test.rb",
|
271
|
+
"test/unit/tags/helper_test.rb",
|
272
|
+
"test/unit/tags/page_datetime_test.rb",
|
273
|
+
"test/unit/tags/page_file_test.rb",
|
274
|
+
"test/unit/tags/page_files_test.rb",
|
275
|
+
"test/unit/tags/page_integer_test.rb",
|
276
|
+
"test/unit/tags/page_markdown_test.rb",
|
277
|
+
"test/unit/tags/page_rich_text_test.rb",
|
278
|
+
"test/unit/tags/page_string_test.rb",
|
279
|
+
"test/unit/tags/page_text_test.rb",
|
280
|
+
"test/unit/tags/partial_test.rb",
|
281
|
+
"test/unit/tags/snippet_test.rb",
|
282
|
+
"test/unit/view_methods_test.rb"
|
283
|
+
]
|
284
|
+
s.homepage = "http://github.com/comfy/comfortable-mexican-sofa"
|
285
|
+
s.require_paths = ["lib"]
|
286
|
+
s.rubygems_version = "1.8.23"
|
287
|
+
s.summary = "ComfortableMexicanSofa is a powerful CMS Engine for Ruby on Rails 3 applications"
|
288
|
+
|
289
|
+
if s.respond_to? :specification_version then
|
290
|
+
s.specification_version = 3
|
291
|
+
|
292
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
293
|
+
s.add_runtime_dependency(%q<rails>, [">= 3.1.0"])
|
294
|
+
s.add_runtime_dependency(%q<formatted_form>, [">= 2.1.0"])
|
295
|
+
s.add_runtime_dependency(%q<active_link_to>, [">= 1.0.0"])
|
296
|
+
s.add_runtime_dependency(%q<paperclip>, [">= 3.4.0"])
|
297
|
+
s.add_runtime_dependency(%q<redcarpet>, [">= 2.2.0"])
|
298
|
+
s.add_runtime_dependency(%q<jquery-rails>, [">= 2.2.0"])
|
299
|
+
s.add_runtime_dependency(%q<haml-rails>, [">= 0.3.0"])
|
300
|
+
s.add_runtime_dependency(%q<sass-rails>, [">= 3.1.0"])
|
301
|
+
s.add_runtime_dependency(%q<coffee-rails>, [">= 3.1.0"])
|
302
|
+
else
|
303
|
+
s.add_dependency(%q<rails>, [">= 3.1.0"])
|
304
|
+
s.add_dependency(%q<formatted_form>, [">= 2.1.0"])
|
305
|
+
s.add_dependency(%q<active_link_to>, [">= 1.0.0"])
|
306
|
+
s.add_dependency(%q<paperclip>, [">= 3.4.0"])
|
307
|
+
s.add_dependency(%q<redcarpet>, [">= 2.2.0"])
|
308
|
+
s.add_dependency(%q<jquery-rails>, [">= 2.2.0"])
|
309
|
+
s.add_dependency(%q<haml-rails>, [">= 0.3.0"])
|
310
|
+
s.add_dependency(%q<sass-rails>, [">= 3.1.0"])
|
311
|
+
s.add_dependency(%q<coffee-rails>, [">= 3.1.0"])
|
312
|
+
end
|
313
|
+
else
|
314
|
+
s.add_dependency(%q<rails>, [">= 3.1.0"])
|
315
|
+
s.add_dependency(%q<formatted_form>, [">= 2.1.0"])
|
316
|
+
s.add_dependency(%q<active_link_to>, [">= 1.0.0"])
|
317
|
+
s.add_dependency(%q<paperclip>, [">= 3.4.0"])
|
318
|
+
s.add_dependency(%q<redcarpet>, [">= 2.2.0"])
|
319
|
+
s.add_dependency(%q<jquery-rails>, [">= 2.2.0"])
|
320
|
+
s.add_dependency(%q<haml-rails>, [">= 0.3.0"])
|
321
|
+
s.add_dependency(%q<sass-rails>, [">= 3.1.0"])
|
322
|
+
s.add_dependency(%q<coffee-rails>, [">= 3.1.0"])
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|