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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ced7d6180dbf09389865221d0adb11df19c5210a
4
- data.tar.gz: cd394f3842aa057091d39f3256d97f8ce11a6500
3
+ metadata.gz: b9f2f4a3e0d93050a7a8443751840163cf17bb05
4
+ data.tar.gz: dfa07ad5d13bcb15be7f731e58fa43d83e14db96
5
5
  SHA512:
6
- metadata.gz: 4dd89ab972a1da5e0123a938f84d8561dfdac153d800d52ad0e1d3bf1ea2be7a05eed06c83c0dbeb0d54f3c29bdef67ed937ecc75581ad4d3f16944d1cac2f61
7
- data.tar.gz: 66664249934510812b2a1847f32742f5f0544144c65f3d6ca88844fec9a5fefcbaaea9e79cf92585cc320a4623d2034f0dde005ad125c484d91310e459fc9c2c
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
- render :layout => "caboose/application"
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
- render :layout => "caboose/application"
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
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.47'
2
+ VERSION = '0.9.48'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.47
4
+ version: 0.9.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry