bcms_seo_sitemap 1.1.0 → 1.2.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.
@@ -0,0 +1,23 @@
1
+ All BrowserCMS code is Copyright (C) 1998-2010 by BrowserMedia, LLC.
2
+
3
+ This program is free software: you can redistribute it and/or modify
4
+ it under the terms of the GNU Lesser General Public License as published by
5
+ the Free Software Foundation, either version 3 of the License, or
6
+ (at your option) any later version.
7
+
8
+ This program is distributed in the hope that it will be useful,
9
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ GNU Lesser General Public License for more details.
12
+
13
+ You should have received a copy of the GNU Lesser General Public License
14
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+ BrowserCMS is a registered trademark of BrowserMedia, LLC.
17
+
18
+ BrowserCMS includes works under other copyright notices and distributed
19
+ according to the terms of the GNU Lesser Public License or a compatible
20
+ license, including:
21
+
22
+ - jQuery - Copyright (C) 2009 John Resig
23
+ - CKEditor - Copyright (C) 2003-2009 Frederico Caldeira Knabben
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'browsercms'
4
+ gemspec
5
+ gem 'bcms_settings'
6
+ gem 'sqlite3'
7
+
8
+
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require_tree .
@@ -0,0 +1,13 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
@@ -0,0 +1,4 @@
1
+ module BcmsSeoSitemap
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -1,4 +1,4 @@
1
- class Cms::SitemapsController < Cms::BaseController
1
+ class BcmsSeoSitemap::SitemapsController < Cms::BaseController
2
2
 
3
3
  layout 'cms/administration'
4
4
 
@@ -0,0 +1,4 @@
1
+ module BcmsSeoSitemap
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -1,7 +1,7 @@
1
1
  <%= content_for :html_head, stylesheet_link_tag('cms/form_layout') %>
2
2
  <% @page_title = @toolbar_title = "Update Sitemap" %>
3
3
 
4
- <% form_tag cms_xml_sitemaps_path, :method => :put do %>
4
+ <%= form_tag xml_sitemaps_path, :method => :put do %>
5
5
  <div class="fields text_fields">
6
6
  <label for="depth"> Sitemap Depth</label>
7
7
  <%= text_field_tag :depth, @depth %>
@@ -0,0 +1,4 @@
1
+ BcmsSeoSitemap::Engine.routes.draw do
2
+ get '/xml_sitemaps' => 'sitemaps#edit', :as =>:xml_sitemaps
3
+ put '/xml_sitemaps' => 'sitemaps#update', :as =>:xml_sitemaps
4
+ end
@@ -1,2 +1,5 @@
1
- require 'bcms_seo_sitemap/engine'
2
- require 'bcms_seo_sitemap/routes'
1
+ require "bcms_seo_sitemap/engine"
2
+ require 'bcms_seo_sitemap/route_extensions'
3
+
4
+ module BcmsSeoSitemap
5
+ end
@@ -3,10 +3,24 @@ require 'browsercms'
3
3
  module BcmsSeoSitemap
4
4
  class Engine < Rails::Engine
5
5
  include Cms::Module
6
+ isolate_namespace BcmsSeoSitemap
6
7
 
7
8
  initializer "bcms_seo_sitemap.require_classes"do
8
9
  # Need to have loaded all BrowserCMS app directories first before we can reference classes there.
9
10
  require 'bcms_seo_sitemap/generator'
10
11
  end
12
+
13
+ initializer 'bcms_seo_sitemap.add_core_routes', :after => 'action_dispatch.prepare_dispatcher' do |app|
14
+ ActionDispatch::Routing::Mapper.send :include, BcmsSeoSitemap::RouteExtensions
15
+ end
16
+
17
+ initializer 'bcms_seo_sitemap.add_admin_menu_link' do |app|
18
+ app.config.cms.tools_menu << {
19
+ :menu_section => 'xml_sitemaps',
20
+ :name => 'Google Sitemap',
21
+ :engine=>"bcms_seo_sitemap",
22
+ :route_name => 'xml_sitemaps_path'
23
+ }
24
+ end
11
25
  end
12
26
  end
@@ -6,7 +6,7 @@ module BcmsSeoSitemap
6
6
  extend Cms::MenuHelper
7
7
 
8
8
  def items
9
- options = {:page => Page.find_by_path('/'), :show_all_siblings => true}
9
+ options = {:page => Cms::Page.find_by_path('/'), :show_all_siblings => true}
10
10
  if configuration.depth && configuration.depth.nonzero?
11
11
  options.merge!({:depth => configuration.depth})
12
12
  end
@@ -0,0 +1,10 @@
1
+ module BcmsSeoSitemap::RouteExtensions
2
+
3
+ # Add this modules routes to the project.
4
+ def mount_bcms_seo_sitemap
5
+ match '/sitemaps/google.xml'=>'sitemaps#google', :as =>:google_sitemap
6
+ mount BcmsSeoSitemap::Engine => "/bcms_seo_sitemap"
7
+ end
8
+
9
+ alias :routes_for_bcms_seo_sitemap :mount_bcms_seo_sitemap
10
+ end
@@ -1,3 +1,3 @@
1
1
  module BcmsSeoSitemap
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -1,10 +1,11 @@
1
1
  require 'cms/module_installation'
2
2
 
3
3
  class BcmsSeoSitemap::InstallGenerator < Cms::ModuleInstallation
4
- add_migrations_directory_to_source_root __FILE__
5
-
6
- # Add migrations to be copied, by uncommenting the following file and editing as needed.
7
- # copy_migration_file 'name_of_migration'
4
+
5
+
6
+ def add_route
7
+ route 'mount_bcms_seo_sitemap'
8
+ end
8
9
 
9
10
 
10
11
  end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :bcms_seo_sitemap do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class BcmsSeoSitemapTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, BcmsSeoSitemap
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+
4
+ class GoogleSitemapsTest < ActionDispatch::IntegrationTest
5
+ test "get sitemap" do
6
+ get '/sitemaps/google.xml?format=xml'
7
+ assert_response :success
8
+ end
9
+
10
+ end
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class Cms::SitemapsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class SitemapsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,23 @@
1
+ require 'test_helper'
2
+
3
+ module BcmsSeoSitemap
4
+ class SeoSitemapTest < ActiveSupport::TestCase
5
+
6
+ def setup
7
+
8
+ end
9
+
10
+ test "build sitemap with no pages" do
11
+ items = Generator.items
12
+ assert_equal [], items, "No pages = empty array"
13
+ end
14
+
15
+ test "build sitemap with pages" do
16
+ root = Cms::Section.create(:name=>"Root", :root=>true, :path=>"/")
17
+ homepage = Cms::Page.create!(:name=>"Home", :section=>root, :path=>"/", :publish_on_save=>true)
18
+
19
+ assert_equal([{:id=>"cms_page_1", :selected=>true, :url=>"/", :name=>"Home"}], Generator.items)
20
+ end
21
+
22
+ end
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcms_seo_sitemap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,55 +9,81 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-06 00:00:00.000000000Z
12
+ date: 2012-05-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: browsercms
16
- requirement: &70341872264300 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - <
20
+ - !ruby/object:Gem::Version
21
+ version: 3.6.0
22
+ - - ! '>='
20
23
  - !ruby/object:Gem::Version
21
- version: 3.3.0
24
+ version: 3.5.0.rc3
22
25
  type: :runtime
23
26
  prerelease: false
24
- version_requirements: *70341872264300
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: 3.6.0
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
35
+ version: 3.5.0.rc3
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: bcms_settings
27
- requirement: &70341872263300 !ruby/object:Gem::Requirement
38
+ requirement: !ruby/object:Gem::Requirement
28
39
  none: false
29
40
  requirements:
30
41
  - - ~>
31
42
  - !ruby/object:Gem::Version
32
- version: 0.1.0
43
+ version: 1.0.0
33
44
  type: :runtime
34
45
  prerelease: false
35
- version_requirements: *70341872263300
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ~>
50
+ - !ruby/object:Gem::Version
51
+ version: 1.0.0
36
52
  description: This module generates XML Sitemaps for BrowserCMS Projects
37
53
  email: github@browsermedia.com
38
54
  executables: []
39
55
  extensions: []
40
56
  extra_rdoc_files: []
41
57
  files:
42
- - app/controllers/application_controller.rb
43
- - app/controllers/cms/sitemaps_controller.rb
58
+ - app/assets/javascripts/bcms_seo_sitemap/application.js
59
+ - app/assets/stylesheets/bcms_seo_sitemap/application.css
60
+ - app/controllers/bcms_seo_sitemap/application_controller.rb
61
+ - app/controllers/bcms_seo_sitemap/sitemaps_controller.rb
44
62
  - app/controllers/sitemaps_controller.rb
45
- - app/helpers/application_helper.rb
63
+ - app/helpers/bcms_seo_sitemap/application_helper.rb
46
64
  - app/helpers/cms/sitemaps_helper.rb
47
65
  - app/helpers/sitemaps_helper.rb
48
- - app/views/cms/shared/_admin_sidebar.html.erb
49
- - app/views/cms/sitemaps/edit.html.erb
50
- - app/views/layouts/templates/default.html.erb
66
+ - app/views/bcms_seo_sitemap/sitemaps/edit.html.erb
51
67
  - app/views/sitemaps/_sitemap_item.xml.erb
52
68
  - app/views/sitemaps/google.xml.erb
53
- - doc/README_FOR_APP
69
+ - config/routes.rb
54
70
  - lib/bcms_seo_sitemap/engine.rb
55
71
  - lib/bcms_seo_sitemap/generator.rb
56
- - lib/bcms_seo_sitemap/routes.rb
72
+ - lib/bcms_seo_sitemap/route_extensions.rb
57
73
  - lib/bcms_seo_sitemap/version.rb
58
74
  - lib/bcms_seo_sitemap.rb
59
75
  - lib/generators/bcms_seo_sitemap/install/install_generator.rb
60
76
  - lib/generators/bcms_seo_sitemap/install/USAGE
77
+ - lib/tasks/bcms_seo_sitemap_tasks.rake
78
+ - Gemfile
79
+ - LICENSE.txt
80
+ - COPYRIGHT.txt
81
+ - test/bcms_seo_sitemap_test.rb
82
+ - test/integration/google_sitemap_test.rb
83
+ - test/test_helper.rb
84
+ - test/unit/helpers/cms/sitemaps_helper_test.rb
85
+ - test/unit/helpers/sitemaps_helper_test.rb
86
+ - test/unit/seo_sitemap_test.rb
61
87
  homepage: https://github.com/browsermedia/bcms_seo_sitemap
62
88
  licenses: []
63
89
  post_install_message:
@@ -72,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
98
  version: '0'
73
99
  segments:
74
100
  - 0
75
- hash: -2786865705532350108
101
+ hash: 4380371535923748633
76
102
  required_rubygems_version: !ruby/object:Gem::Requirement
77
103
  none: false
78
104
  requirements:
@@ -81,11 +107,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
107
  version: '0'
82
108
  segments:
83
109
  - 0
84
- hash: -2786865705532350108
110
+ hash: 4380371535923748633
85
111
  requirements: []
86
112
  rubyforge_project: bcms_seo_sitemap
87
- rubygems_version: 1.8.10
113
+ rubygems_version: 1.8.24
88
114
  signing_key:
89
115
  specification_version: 3
90
116
  summary: A Sitemap Module for BrowserCMS
91
- test_files: []
117
+ test_files:
118
+ - test/bcms_seo_sitemap_test.rb
119
+ - test/integration/google_sitemap_test.rb
120
+ - test/test_helper.rb
121
+ - test/unit/helpers/cms/sitemaps_helper_test.rb
122
+ - test/unit/helpers/sitemaps_helper_test.rb
123
+ - test/unit/seo_sitemap_test.rb
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,31 +0,0 @@
1
- <div class="first">
2
- <h3>Users</h3>
3
- <ul>
4
- <li<%= ' class="open"' if @menu_section == 'users' %>><%= link_to "Users", cms_users_path %></li>
5
- <li<%= ' class="open"' if @menu_section == 'groups' %>><%= link_to "Groups", cms_groups_path %></li>
6
- </ul>
7
- </div>
8
- <div class="bottom_cap bottom_pad"></div>
9
-
10
- <div class="top_cap"></div>
11
- <div>
12
- <h3>Templates</h3>
13
- <ul>
14
- <li<%= ' class="open"' if @menu_section == 'page_partials' %>><%= link_to "Page Partials", cms_page_partials_path %></li>
15
- <li<%= ' class="open"' if @menu_section == 'page_templates' %>><%= link_to "Page Templates", cms_page_templates_path %></li>
16
- <li<%= ' class="open"' if @menu_section == 'page_routes' %>><%= link_to "Page Routes", cms_page_routes_path %></li>
17
- </ul>
18
- </div>
19
- <div class="bottom_cap bottom_pad"></div>
20
-
21
- <div class="top_cap"></div>
22
- <div>
23
- <h3>Tools</h3>
24
- <ul>
25
- <li<%= ' class="open"' if @menu_section == 'caching' %>><%= link_to "Page Caching", cms_cache_path %></li>
26
- <li<%= ' class="open"' if @menu_section == 'redirects' %>><%= link_to "Redirects", cms_redirects_path %></li>
27
- <li<%= ' class="open"' if @menu_section == 'email_messages' %>><%= link_to "Email Messages", cms_email_messages_path %></li>
28
- <li<%= ' class="open"' if @menu_section == 'xml_sitemaps' %>><%= link_to "Google Sitemap", cms_xml_sitemaps_path %></li>
29
- </ul>
30
- </div>
31
- <div class="bottom_cap"></div>
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
5
- <title><%= page_title %></title>
6
- <%= yield :html_head %>
7
- </head>
8
- <body style="margin: 0; padding: 0; text-align: center;">
9
- <%= cms_toolbar %>
10
- <div id="wrapper" style="width: 700px; margin: 0 auto; text-align: left; padding: 30px">
11
- Breadcrumbs: <%= render_breadcrumbs %>
12
- Main Menu: <%= render_menu %>
13
- <h1><%= page_title %></h1>
14
- <%= container :main %>
15
- </div>
16
- </body>
17
- </html>
@@ -1,2 +0,0 @@
1
- Use this README file to introduce your application and point to useful places in the API for learning more.
2
- Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
@@ -1,9 +0,0 @@
1
- module Cms::Routes
2
- def routes_for_bcms_seo_sitemap
3
- match '/sitemaps/google.xml'=>'sitemaps#google', :as =>:google_sitemap
4
- namespace :cms do
5
- get '/xml_sitemaps'=>'sitemaps#edit', :as =>:xml_sitemaps
6
- put '/xml_sitemaps'=>'sitemaps#update', :as =>:xml_sitemaps
7
- end
8
- end
9
- end