caboose-cms 0.8.6 → 0.8.7
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c76d29359edc3b7c15eaef50ec8dac3800943a16
|
4
|
+
data.tar.gz: a7e47962d43aa2fbbb4ca72bff30facbbd2868a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3d5f4c34ea71e9a576ac86f3e8bcb4833d0b9a05cb31c252a986850a21a0228e5797639e6f816d70c8fdcb7c1a70222b232a71b27bc200f7fb8719e260bd910
|
7
|
+
data.tar.gz: 1142c9d9a45c0d1cf3ccc182bc0927351d3ed7eaef0de16fb1e442559cd094ed1f84af129992d0f6d4cc218e6f43f04a3a60a434d694c67447c3f3f14a1d5d2d
|
@@ -106,6 +106,7 @@ module Caboose
|
|
106
106
|
end
|
107
107
|
|
108
108
|
# @route GET /admin/posts/:id
|
109
|
+
# @route GET /admin/posts/:id/edit
|
109
110
|
def admin_edit_general
|
110
111
|
return if !user_is_allowed('posts', 'edit')
|
111
112
|
@post = Post.find(params[:id])
|
@@ -193,7 +194,7 @@ module Caboose
|
|
193
194
|
else
|
194
195
|
post.save
|
195
196
|
post.set_slug_and_uri(post.title)
|
196
|
-
resp.redirect = "/admin/posts/#{post.id}
|
197
|
+
resp.redirect = "/admin/posts/#{post.id}"
|
197
198
|
end
|
198
199
|
|
199
200
|
render :json => resp
|
@@ -8,11 +8,11 @@
|
|
8
8
|
<ul id='tabs'>
|
9
9
|
<%
|
10
10
|
tabs = {
|
11
|
-
"/admin/posts/#{@post.id}
|
12
|
-
"/admin/posts/#{@post.id}/preview"
|
13
|
-
"/admin/posts/#{@post.id}/content"
|
14
|
-
"/admin/posts/#{@post.id}/categories"
|
15
|
-
"/admin/posts/#{@post.id}/delete"
|
11
|
+
"/admin/posts/#{@post.id}" => 'General',
|
12
|
+
"/admin/posts/#{@post.id}/preview" => 'Preview',
|
13
|
+
"/admin/posts/#{@post.id}/content" => 'Content',
|
14
|
+
"/admin/posts/#{@post.id}/categories" => 'Categories',
|
15
|
+
"/admin/posts/#{@post.id}/delete" => 'Delete Post'
|
16
16
|
}
|
17
17
|
|
18
18
|
%>
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|