effective_pages 3.13.1 → 3.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/admin/pages/_form_page.html.haml +2 -13
- data/lib/effective_pages/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: bbc2cead22e304fb58b460a336a6415a7e3dbb30a90595c0474fed9ebb5e3481
|
4
|
+
data.tar.gz: 6cab9af0475018a1077f9a462bf781f29b123befeb48a9485f361f3ba154325e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db2226b04fe28e136389ae3e5f872b16b6568d138c21bc8aa76739fc3b60b25ca55ad59bcf13727ff2eaaa1493d501123030c4343fbdaba7e5f57796bb96b9b1
|
7
|
+
data.tar.gz: 95b3fcf12fe0a55f0d053b8591550df92783d3bc01539d2a1221ac0be24b21bd2d8fb0745aaf29b87a0b7c5cf86472e8de1911b959d0fe777d6dae0b650cb7a7
|
@@ -1,15 +1,8 @@
|
|
1
1
|
= effective_form_with(model: [:admin, page], engine: true) do |f|
|
2
2
|
= f.text_field :title
|
3
3
|
|
4
|
-
|
5
|
-
= f.
|
6
|
-
.row
|
7
|
-
.col-md-6
|
8
|
-
= f.datetime_field :published_start_at, hint: 'The page will be available starting on this date and time. Leave blank to publish immediately.'
|
9
|
-
.col-md-6
|
10
|
-
= f.datetime_field :published_end_at, hint: 'The page will no longer be available after this date and time. Leave blank for no end date.', date_linked: false
|
11
|
-
|
12
|
-
= f.check_box :save_as_draft, label: "Save as a draft. It will not appear in a menu and can only be accessed by admin users."
|
4
|
+
= acts_as_published_fields(f)
|
5
|
+
= acts_as_slugged_fields(f, url: (effective_pages.page_url(f.object) rescue nil))
|
13
6
|
|
14
7
|
= f.text_field :meta_description,
|
15
8
|
hint: "150 character summary. Appears on Google search results underneath the page title. ",
|
@@ -25,10 +18,6 @@
|
|
25
18
|
- else
|
26
19
|
= f.hidden_field :template, value: templates.first
|
27
20
|
|
28
|
-
- if f.object.persisted? || f.object.errors.include?(:slug)
|
29
|
-
- current_url = (effective_pages.page_url(f.object) rescue nil)
|
30
|
-
= f.text_field :slug, hint: "The slug controls this page's internet address. Be careful, changing the slug will break links that other websites may have to the old address.<br>#{('This page is currently reachable via ' + link_to(current_url.gsub(f.object.slug, '<strong>' + f.object.slug + '</strong>').html_safe, current_url)) if current_url }".html_safe
|
31
|
-
|
32
21
|
- if EffectivePages.banners?
|
33
22
|
- if EffectivePages.banners_force_randomize
|
34
23
|
= f.check_box :banner, label: 'Choose a page banner'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.13.
|
4
|
+
version: 3.13.2
|
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-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|