tb_blog 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/admin/post_comments_controller.rb +5 -7
- data/lib/spud_blog/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37118df81124d692e43579653d429c6883524ab
|
4
|
+
data.tar.gz: 938676e0188d55596ffdab542cfa8483758396a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec2e038b0c8afa99eca39d2f6cc9f321dc40e03ac288a2420dacd56fad7799ddff54588e84a331d254825d00cdf86e9b10a5a2231daa8a3c69a3cd99ad0a4510
|
7
|
+
data.tar.gz: cd14ca581a980ab6538f11ded47eec8a3d5591350e1d422ce4bbb623c94320fb69b08c518b2e206b5b419165ee8d7017259bb99b1d85bceeb0be8490392fadb7
|
@@ -4,8 +4,6 @@ class Admin::PostCommentsController < Admin::ApplicationController
|
|
4
4
|
respond_to :html, :xml, :json
|
5
5
|
before_action :load_blog, :only => :index
|
6
6
|
before_action :find_comment, :only => [:show, :edit, :update, :destroy, :approve, :spam]
|
7
|
-
add_breadcrumb 'Blog Posts', :admin_posts_path
|
8
|
-
add_breadcrumb 'Comments', :admin_post_comments_path
|
9
7
|
|
10
8
|
def index
|
11
9
|
@page_name = "Comments"
|
@@ -68,14 +66,14 @@ private
|
|
68
66
|
end
|
69
67
|
|
70
68
|
def load_blog
|
71
|
-
|
72
|
-
|
73
|
-
config = Spud::Blog.config.blogs.find{ |it| it[:key] == key }
|
74
|
-
if key.blank? || config.blank?
|
69
|
+
@config = SpudBlogConfig.find(params[:blog_key])
|
70
|
+
if @config.blank?
|
75
71
|
redirect_to admin_root_path
|
76
72
|
return false
|
77
73
|
else
|
78
|
-
self.class.belongs_to_spud_app config
|
74
|
+
self.class.belongs_to_spud_app "#{@config.name} Posts".parameterize.underscore.to_sym
|
75
|
+
add_breadcrumb "#{@config.name} Posts", admin_posts_path(blog_key: @config.key)
|
76
|
+
add_breadcrumb "Comments", admin_post_comments_path(blog_key: @config.key)
|
79
77
|
end
|
80
78
|
end
|
81
79
|
|
data/lib/spud_blog/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tb_blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Westlake Design
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|