effective_posts 2.0.6 → 2.1.1
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12ea7820a86ad8ac8417081593ab7be3b5887ec9f2be2cb05cef6e0ef246b5bf
|
|
4
|
+
data.tar.gz: c6bdbb6c8da4f3f3e34ff084690263781fbcb0f9848f0939976d3bbbebcffedb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e1a78f1835c434b949f80c9e3ce7f38e6da27df95b19f36583d66b46d02578daeee2fe200269e929272b349ddd63bfb60589561c042fdc81cf8aa29b575e890
|
|
7
|
+
data.tar.gz: 5c3cbf2d87a4fc98db48f0584f2b123ad1eaee46b77dff1bc5fb65e443260b5a0d1782633e94d4a65b4a1ec702cb0bbeae0899908b0533c9581655cbf5b87c4b
|
|
@@ -8,7 +8,7 @@ module Admin
|
|
|
8
8
|
submit :save, 'Save'
|
|
9
9
|
submit :save, 'Save and Add New', redirect: :new
|
|
10
10
|
submit :save, 'Save and View', redirect: -> { effective_posts.post_path(resource) }
|
|
11
|
-
submit :save, 'Duplicate', redirect: -> { effective_posts.new_admin_post_path(duplicate_id: resource
|
|
11
|
+
submit :save, 'Duplicate', redirect: -> { effective_posts.new_admin_post_path(duplicate_id: resource) }
|
|
12
12
|
|
|
13
13
|
def post_params
|
|
14
14
|
params.require(:effective_post).permit!
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
= effective_form_with(model:
|
|
1
|
+
= effective_form_with(model: [:admin, post], engine: true) do |f|
|
|
2
2
|
= f.text_field :title, hint: 'The title of your post.'
|
|
3
3
|
|
|
4
4
|
- if f.object.persisted? || f.object.errors.include?(:slug)
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
= f.text_field :slug, required: f.object.persisted?,
|
|
8
8
|
hint: "The slug controls this post's internet address. Be careful, changing the slug will break links that other websites may have to the old address.<br>#{('This post is currently reachable via ' + link_to(current_url.gsub(f.object.slug, '<strong>' + f.object.slug + '</strong>').html_safe, current_url)) if current_url && f.object.slug.present? }".html_safe
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
- if defined?(EffectiveArticleEditor)
|
|
11
|
+
= f.article_editor :excerpt, hint: 'Will be used for the post excerpt on index pages.'
|
|
12
|
+
- else
|
|
13
|
+
= f.rich_text_area :excerpt, hint: 'Will be used for the post excerpt on index pages.'
|
|
11
14
|
|
|
12
15
|
= f.text_field :description, hint: 'The content of the post meta tags.', maxlength: 150
|
|
13
16
|
|
|
@@ -19,7 +22,10 @@
|
|
|
19
22
|
- if EffectivePosts.use_active_storage
|
|
20
23
|
= f.file_field :image, hint: 'An image for your post'
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
- if defined?(EffectiveArticleEditor)
|
|
26
|
+
= f.article_editor :body, hint: 'The main body of your post'
|
|
27
|
+
- else
|
|
28
|
+
= f.rich_text_area :body, hint: 'The main body of your post'
|
|
23
29
|
|
|
24
30
|
= render partial: '/effective/posts/additional_fields', locals: { post: post, form: f, f: f }
|
|
25
31
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
= effective_form_with(model: post,
|
|
1
|
+
= effective_form_with(model: post, engine: true) do |f|
|
|
2
2
|
= f.text_field :title, hint: 'The title of your post.'
|
|
3
3
|
|
|
4
4
|
- if f.object.persisted? || f.object.errors.include?(:slug)
|
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
- if EffectivePosts.use_active_storage
|
|
14
14
|
= f.file_field :image, hint: 'An image for your post'
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
- if defined?(EffectiveArticleEditor)
|
|
17
|
+
= f.article_editor :excerpt, hint: 'Will be used for the post excerpt on index pages.'
|
|
18
|
+
- else
|
|
19
|
+
= f.rich_text_area :excerpt, hint: 'Will be used for the post excerpt on index pages.'
|
|
20
|
+
|
|
17
21
|
= f.text_field :description, hint: 'The content of the post meta tags.', maxlength: 150
|
|
18
22
|
|
|
19
23
|
= render partial: '/effective/posts/additional_fields', locals: { post: post, form: f, f: f }
|
|
@@ -22,6 +26,9 @@
|
|
|
22
26
|
|
|
23
27
|
= f.check_box :draft, hint: 'Save this post as a draft. It will not be accessible on the website.'
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
- if defined?(EffectiveArticleEditor)
|
|
30
|
+
= f.article_editor :body, hint: 'The main body of your post'
|
|
31
|
+
- else
|
|
32
|
+
= f.rich_text_area :body, hint: 'The main body of your post'
|
|
26
33
|
|
|
27
34
|
= f.submit 'Save'
|
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: 2.
|
|
4
|
+
version: 2.1.1
|
|
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: 2022-
|
|
11
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|