caboose-cms 0.9.47 → 0.9.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/caboose/posts_controller.rb +4 -4
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9f2f4a3e0d93050a7a8443751840163cf17bb05
|
4
|
+
data.tar.gz: dfa07ad5d13bcb15be7f731e58fa43d83e14db96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7e3741502210d2f18e322b2ca63091b95afeb4886746d76ce98607ffd2fa2ab78a467b638ca9e6503d187629e9595556a42c16ca361f96ddec57f12be8149e7
|
7
|
+
data.tar.gz: 6f4971abb3521efd93bc9307f921c5044fcc4534b68d96446a7a25447d5cf5ba34ef97a5061d52d2ff91d2ef068bca8aeee0cf0033ed907576f0f554e30c1176
|
@@ -1,6 +1,5 @@
|
|
1
1
|
module Caboose
|
2
2
|
class PostsController < ApplicationController
|
3
|
-
layout 'caboose/admin'
|
4
3
|
|
5
4
|
helper :application
|
6
5
|
|
@@ -18,12 +17,12 @@ module Caboose
|
|
18
17
|
|
19
18
|
if params[:id]
|
20
19
|
@post = Post.where(:id => params[:id]).first
|
21
|
-
|
20
|
+
# render :layout => "caboose/application"
|
22
21
|
else
|
23
22
|
# Find the page with an exact URI match
|
24
23
|
uri = "#{params[:year]}/#{params[:month]}/#{params[:day]}/#{params[:slug]}"
|
25
24
|
@post = Post.where(:site_id => @site.id, :uri => request.fullpath).first
|
26
|
-
|
25
|
+
# render :layout => "caboose/application"
|
27
26
|
end
|
28
27
|
render :file => "caboose/extras/error404" and return if @post.nil?
|
29
28
|
|
@@ -38,7 +37,8 @@ module Caboose
|
|
38
37
|
# @route_priority 100
|
39
38
|
# @route GET /admin/posts
|
40
39
|
def admin_index
|
41
|
-
return if !user_is_allowed('posts', 'view')
|
40
|
+
return if !user_is_allowed('posts', 'view')
|
41
|
+
render :layout => 'caboose/admin'
|
42
42
|
end
|
43
43
|
|
44
44
|
# @route GET /admin/posts/json
|
data/lib/caboose/version.rb
CHANGED