bcms_ancestry 1.0.0
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 +243 -0
- data/app/controllers/application_controller.rb +12 -0
- data/app/controllers/cms/sections_controller.rb +130 -0
- data/app/helpers/application_helper.rb +3 -0
- data/app/helpers/cms/section_nodes_helper.rb +11 -0
- data/app/models/attachment.rb +177 -0
- data/app/models/legacy_bcms/attachment.rb +193 -0
- data/app/models/legacy_bcms/link.rb +35 -0
- data/app/models/legacy_bcms/page.rb +275 -0
- data/app/models/legacy_bcms/section.rb +155 -0
- data/app/models/legacy_bcms/section_node.rb +93 -0
- data/app/models/link.rb +32 -0
- data/app/models/page.rb +307 -0
- data/app/models/section.rb +177 -0
- data/app/models/section_node.rb +142 -0
- data/app/views/cms/section_nodes/_link.html.erb +11 -0
- data/app/views/cms/section_nodes/_node.html.erb +36 -0
- data/app/views/cms/section_nodes/_page.html.erb +14 -0
- data/app/views/cms/section_nodes/_section.html.erb +13 -0
- data/app/views/cms/section_nodes/_section_node.html.erb +27 -0
- data/app/views/cms/section_nodes/_sitemap.html.erb +99 -0
- data/app/views/cms/section_nodes/index.html.erb +21 -0
- data/db/migrate/20100629162323_create_section_nodes.rb +41 -0
- data/lib/bcms_ancestry.rb +1 -0
- data/lib/bcms_ancestry/routes.rb +7 -0
- data/public/bcms/ancestry/README +1 -0
- data/rails/init.rb +4 -0
- metadata +93 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
<% content_for :html_head do %>
|
2
|
+
<%= stylesheet_link_tag 'cms/sitemap' %>
|
3
|
+
<%= javascript_include_tag 'cms/sitemap' %>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<% page_title "Sitemap" %>
|
7
|
+
|
8
|
+
<% content_for :functions do %>
|
9
|
+
<h1>Sitemap</h1>
|
10
|
+
<%= link_to span_tag("Edit Page"), '#', :id => 'edit-button', :class => "button disabled left" %>
|
11
|
+
<%= link_to span_tag("Edit Properties"), '#', :id => 'properties-button', :class => "button disabled right" %>
|
12
|
+
<%= link_to span_tag("Add Page"), '#', :id => 'add-page-button', :class => "button disabled spacer left" %>
|
13
|
+
<%= link_to span_tag("Add Section"), '#', :id => 'add-section-button', :class => "button disabled middle" %>
|
14
|
+
<%= link_to span_tag("Add Link"), '#', :id => 'add-link-button', :class => "button disabled right" %>
|
15
|
+
<%= link_to span_tag("<span class=\"delete_img\"> </span>Delete"), '#', :id => 'delete-button', :class => "button disabled delete_button" %>
|
16
|
+
<br clear="all" />
|
17
|
+
<% end %>
|
18
|
+
|
19
|
+
<div id="sitemap">
|
20
|
+
<%= render :partial => "sitemap", :object => @section.subtree.for_sitemap.arrange, :locals => {:display => true, :root => true} %>
|
21
|
+
</div>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
class CreateSectionNodes < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_versioned_table :ancestry_section_nodes do |t|
|
4
|
+
|
5
|
+
t.string :title
|
6
|
+
t.string :template_file_name
|
7
|
+
t.text :description
|
8
|
+
t.text :keywords
|
9
|
+
t.string :language
|
10
|
+
t.boolean :cacheable, :default => false
|
11
|
+
|
12
|
+
|
13
|
+
t.integer :position
|
14
|
+
|
15
|
+
t.string :path
|
16
|
+
t.boolean :hidden, :default => false
|
17
|
+
|
18
|
+
t.string :name
|
19
|
+
t.string :url
|
20
|
+
t.boolean :new_window, :default => false
|
21
|
+
|
22
|
+
t.string :ancestry
|
23
|
+
t.integer :ancestry_depth, :default => 0
|
24
|
+
|
25
|
+
t.string :type
|
26
|
+
|
27
|
+
t.timestamps
|
28
|
+
end
|
29
|
+
|
30
|
+
add_index :ancestry_section_nodes, :ancestry
|
31
|
+
add_column :attachments, :section_id , :integer
|
32
|
+
add_column :attachment_versions, :section_id , :integer
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.down
|
36
|
+
remove_index :ancestry_section_nodes, :ancestry
|
37
|
+
drop_versioned_table :ancestry_section_nodes
|
38
|
+
remove_column :attachments, :section_id
|
39
|
+
remove_column :attachment_versions, :section_id
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'bcms_ancestry/routes'
|
@@ -0,0 +1 @@
|
|
1
|
+
Use this directory to add public files that should copied from the gem into the project.
|
data/rails/init.rb
ADDED
metadata
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bcms_ancestry
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- BrowserMedia
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-08-24 00:00:00 +02:00
|
19
|
+
default_executable:
|
20
|
+
dependencies: []
|
21
|
+
|
22
|
+
description:
|
23
|
+
email: github@browsermedia.com
|
24
|
+
executables: []
|
25
|
+
|
26
|
+
extensions: []
|
27
|
+
|
28
|
+
extra_rdoc_files:
|
29
|
+
- README
|
30
|
+
files:
|
31
|
+
- app/controllers/application_controller.rb
|
32
|
+
- app/controllers/cms/sections_controller.rb
|
33
|
+
- app/helpers/application_helper.rb
|
34
|
+
- app/helpers/cms/section_nodes_helper.rb
|
35
|
+
- app/models/attachment.rb
|
36
|
+
- app/models/legacy_bcms/attachment.rb
|
37
|
+
- app/models/legacy_bcms/link.rb
|
38
|
+
- app/models/legacy_bcms/page.rb
|
39
|
+
- app/models/legacy_bcms/section.rb
|
40
|
+
- app/models/legacy_bcms/section_node.rb
|
41
|
+
- app/models/link.rb
|
42
|
+
- app/models/page.rb
|
43
|
+
- app/models/section.rb
|
44
|
+
- app/models/section_node.rb
|
45
|
+
- app/views/cms/section_nodes/_link.html.erb
|
46
|
+
- app/views/cms/section_nodes/_node.html.erb
|
47
|
+
- app/views/cms/section_nodes/_page.html.erb
|
48
|
+
- app/views/cms/section_nodes/_section.html.erb
|
49
|
+
- app/views/cms/section_nodes/_section_node.html.erb
|
50
|
+
- app/views/cms/section_nodes/_sitemap.html.erb
|
51
|
+
- app/views/cms/section_nodes/index.html.erb
|
52
|
+
- db/migrate/20100629162323_create_section_nodes.rb
|
53
|
+
- lib/bcms_ancestry.rb
|
54
|
+
- lib/bcms_ancestry/routes.rb
|
55
|
+
- rails/init.rb
|
56
|
+
- public/bcms/ancestry/README
|
57
|
+
- README
|
58
|
+
has_rdoc: true
|
59
|
+
homepage: http://www.browsercms.org
|
60
|
+
licenses: []
|
61
|
+
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
hash: 3
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
version: "0"
|
85
|
+
requirements: []
|
86
|
+
|
87
|
+
rubyforge_project: bcms_ancestry
|
88
|
+
rubygems_version: 1.3.7
|
89
|
+
signing_key:
|
90
|
+
specification_version: 3
|
91
|
+
summary: A Ancestry Module for BrowserCMS
|
92
|
+
test_files: []
|
93
|
+
|