mcms_blog 0.0.3 → 0.0.4
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/app/assets/stylesheets/blog_home.css +1 -0
- data/app/assets/stylesheets/home.css +1 -0
- data/app/controllers/blog_controller.rb +4 -3
- data/app/views/admin/blog/posts/_form.html.erb +1 -1
- data/app/views/admin/blog/posts/_form.js.erb +0 -26
- data/config/routes.rb +1 -1
- data/db/seeds.rb +1 -1
- metadata +7 -7
@@ -16,7 +16,7 @@ class BlogController < ApplicationController
|
|
16
16
|
#protected methods start here
|
17
17
|
protected
|
18
18
|
|
19
|
-
#find_page
|
19
|
+
#find_page
|
20
20
|
def find_page
|
21
21
|
#@page = Page.find_by_link_url("/blog")
|
22
22
|
end
|
@@ -26,6 +26,7 @@ protected
|
|
26
26
|
@blog_categories = BlogCategory.all
|
27
27
|
end
|
28
28
|
|
29
|
-
|
30
|
-
|
29
|
+
|
30
|
+
|
31
31
|
end
|
32
|
+
|
@@ -94,7 +94,7 @@
|
|
94
94
|
<%= render :partial => "/shared/admin/form_actions", :locals => { :f => f } %>
|
95
95
|
<% end %>
|
96
96
|
<script type="text/javascript">
|
97
|
-
load_ckeditor({filebrowserUploadUrl:UploadUrl,filebrowserBrowseUrl:BrowseUrl});
|
97
|
+
//load_ckeditor({filebrowserUploadUrl:UploadUrl,filebrowserBrowseUrl:BrowseUrl});
|
98
98
|
function load_ckeditor(options){
|
99
99
|
if ($('textarea').length > 0)
|
100
100
|
{
|
@@ -2,32 +2,6 @@
|
|
2
2
|
(function($) {
|
3
3
|
$(function() {
|
4
4
|
$('#blog-tabs').tabs();
|
5
|
-
$('#copy_body_link').click(function(event) {
|
6
|
-
// Find the WYMEditor that maps to the custom_teaser field
|
7
|
-
var teaserTextArea = $('#blog_post_custom_teaser')[0];
|
8
|
-
var teaserEditor = null;
|
9
|
-
$.each(WYMeditor.INSTANCES, function(index, editor) {
|
10
|
-
if (editor._element[0] == teaserTextArea) {
|
11
|
-
teaserEditor = editor;
|
12
|
-
}
|
13
|
-
});
|
14
|
-
|
15
|
-
if (teaserEditor) {
|
16
|
-
teaserEditor.html($('#blog_post_body').attr('value'));
|
17
|
-
}
|
18
|
-
|
19
|
-
event.preventDefault();
|
20
|
-
});
|
21
|
-
|
22
|
-
var more_options = $('#more-options');
|
23
|
-
more_options.hide();
|
24
|
-
|
25
|
-
var toggle_advanced_options = $('#toggle-advanced-options');
|
26
|
-
|
27
|
-
toggle_advanced_options.click(function() {
|
28
|
-
more_options.toggle('slow', function() {
|
29
|
-
});
|
30
|
-
});
|
31
5
|
|
32
6
|
});
|
33
7
|
})(jQuery);
|
data/config/routes.rb
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
=end
|
8
8
|
Rails.application.routes.draw do
|
9
9
|
mount Ckeditor::Engine => '/ckeditor'
|
10
|
-
|
10
|
+
match '/blog/posts',:to => 'blog/posts#index'
|
11
11
|
scope(:path => 'blog', :module => 'blog') do
|
12
12
|
root :to => 'posts#index', :as => 'blog_root'
|
13
13
|
match ':id', :to => 'posts#show', :as => 'blog_post'
|
data/db/seeds.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mcms_blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -32,17 +32,17 @@ dependencies:
|
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
|
-
- -
|
35
|
+
- - '='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 3.7.1
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - '='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 3.7.1
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: crudify
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -368,7 +368,7 @@ rubyforge_project:
|
|
368
368
|
rubygems_version: 1.8.24
|
369
369
|
signing_key:
|
370
370
|
specification_version: 3
|
371
|
-
summary:
|
371
|
+
summary: CKEditor gem version fixed.It does not support version >= 3.7.2
|
372
372
|
test_files:
|
373
373
|
- test/integration/navigation_test.rb
|
374
374
|
- test/dummy/Rakefile
|