effective_posts 2.7.1 → 2.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/post.rb +2 -0
- data/app/views/admin/posts/_form_post.html.haml +2 -16
- data/lib/effective_posts/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb524b7de78941ff7ddc02bd3fed11f561ac7dc8bda6a0f46d093fc84c86de4a
|
4
|
+
data.tar.gz: b59781526ef9fef657ffd9eff3cf8e732896e0279cad97fede886b8e769da93f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3413d26186e3df2707e43545a76f172e53fa063154f089fbca5699fbe7eebaa8e6f2f6136b1fccd160d8f525e0114e5ff77d7860ea86853411ef2d1ff6ac71e8
|
7
|
+
data.tar.gz: 990ecea8f2107abdcb4ea7090109c7b74dfc627ef5700fe3c72c26b94d359ba8e000ea3517d7197d09c5cde68779d6906a4e9eccb4da92d30e4bbe3af9004340
|
@@ -6,22 +6,8 @@
|
|
6
6
|
- else
|
7
7
|
= f.hidden_field :category, value: (EffectivePosts.categories.first || 'posts')
|
8
8
|
|
9
|
-
|
10
|
-
= f.
|
11
|
-
.row
|
12
|
-
.col-md-6
|
13
|
-
= f.datetime_field :published_start_at, label: 'Published start', hint: 'The page will appear on the website after this date and time. Leave blank to publish immediately'
|
14
|
-
.col-md-6
|
15
|
-
= f.datetime_field :published_end_at, label: 'Published end', hint: 'The page will not appear on the website after this date and time. Leave blank for no end date.', date_linked: false
|
16
|
-
|
17
|
-
= f.check_box :save_as_draft, label: "Save as a draft. It will not appear on the website and can only be accessed by admin users."
|
18
|
-
|
19
|
-
- # acts_as_slugged
|
20
|
-
- if f.object.persisted? || f.object.errors.include?(:slug)
|
21
|
-
- current_url = effective_posts.post_path(f.object)
|
22
|
-
|
23
|
-
= f.text_field :slug, required: f.object.persisted?,
|
24
|
-
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
|
+
= acts_as_published_fields(f)
|
10
|
+
= acts_as_slugged_fields(f, url: (effective_posts.post_url(f.object) rescue nil))
|
25
11
|
|
26
12
|
- if EffectivePosts.use_description
|
27
13
|
= f.text_field :description, label: "Meta description", input_html: { maxlength: 150 },
|
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.7.
|
4
|
+
version: 2.7.3
|
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: 2024-
|
11
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|