effective_posts 1.0.5 → 1.0.6
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f0f0f0face589b9c5f7aea2880a79a96ce46d7b3650f78efedba278907e1b0ef
|
4
|
+
data.tar.gz: 6829e35d9706eb0ad8307e5589278bd7630f8fe0c86455af4e93d74b554f2cc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc99afaa84f8fb2ea362b2edf2ebc8c7c870aced3cff565a34b22990add9cc5f0bca04d20d102e9f4f87f93d771e57c4d40270205b3c29be0e954fc5c01a71f1
|
7
|
+
data.tar.gz: 5f7d254014eb35ebec4f3bd661aea6ddb3d9089942c94f5b774264c3314d120fd619e807fe87824483a927ef770134b3bdad564542c9ad32ac140d6544a89b57
|
@@ -65,7 +65,7 @@ module Admin
|
|
65
65
|
redirect_to effective_posts.new_admin_post_path
|
66
66
|
elsif params[:commit] == 'Save and View'
|
67
67
|
redirect_to effective_posts.post_path(@post)
|
68
|
-
elsif params[:commit] == '
|
68
|
+
elsif params[:commit] == 'Duplicate'
|
69
69
|
begin
|
70
70
|
post = @post.duplicate!
|
71
71
|
flash[:success] = 'Successfully saved and duplicated post.'
|
@@ -19,11 +19,15 @@
|
|
19
19
|
= f.ck_editor :body, hint: 'The content of your post.'
|
20
20
|
|
21
21
|
- if defined?(EffectiveRoles) and f.object.respond_to?(:roles) && EffectivePosts.use_effective_roles
|
22
|
-
=
|
22
|
+
= render partial: '/admin/posts/roles', locals: { post: post, form: f, f: f }
|
23
23
|
|
24
24
|
= f.submit do
|
25
25
|
= f.save 'Save'
|
26
|
+
|
26
27
|
- if EffectivePosts.use_fullscreen_editor
|
27
|
-
= f.save 'Save and Edit Content'
|
28
|
-
|
29
|
-
= f.save 'Save and
|
28
|
+
= f.save 'Save and Edit Content', class: 'btn btn-secondary'
|
29
|
+
|
30
|
+
= f.save 'Save and View', class: 'btn btn-secondary'
|
31
|
+
|
32
|
+
- if f.object.persisted?
|
33
|
+
= f.save 'Duplicate', class: 'btn btn-info'
|
@@ -0,0 +1 @@
|
|
1
|
+
= f.checks :roles, EffectiveRoles.roles_collection(f.object), hint: '* leave blank for a regular public post that anyone can view'
|
data/config/effective_posts.rb
CHANGED
@@ -64,7 +64,7 @@ EffectivePosts.setup do |config|
|
|
64
64
|
# config.permitted_params += [:additional_field]
|
65
65
|
|
66
66
|
# Display the effective roles 'choose roles' input when an admin creates a new post
|
67
|
-
config.use_effective_roles =
|
67
|
+
config.use_effective_roles = false
|
68
68
|
|
69
69
|
# Hides the Save and Edit Content links from admin. They can just use the textarea input.
|
70
70
|
config.use_fullscreen_editor = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_posts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -148,6 +148,7 @@ files:
|
|
148
148
|
- app/models/effective/snippets/read_more_divider.rb
|
149
149
|
- app/views/admin/posts/_actions.html.haml
|
150
150
|
- app/views/admin/posts/_form.html.haml
|
151
|
+
- app/views/admin/posts/_roles.html.haml
|
151
152
|
- app/views/admin/posts/edit.html.haml
|
152
153
|
- app/views/admin/posts/excerpts.html.haml
|
153
154
|
- app/views/admin/posts/index.html.haml
|
@@ -205,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
206
|
version: '0'
|
206
207
|
requirements: []
|
207
208
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.
|
209
|
+
rubygems_version: 2.7.3
|
209
210
|
signing_key:
|
210
211
|
specification_version: 4
|
211
212
|
summary: A blog implementation with WYSIWYG content editing, post scheduling, pagination
|