effective_pages 3.13.1 → 3.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/datatables/effective_pages_datatable.rb +8 -7
- data/app/views/admin/pages/_form_page.html.haml +2 -13
- data/app/views/effective/alerts/_alert.html.haml +1 -1
- data/app/views/effective/page_segments/_content.html.haml +1 -3
- 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: 427237fb7a8b2cd95894a16fa9e445b6d22dffbdfd58355716a2cbc84a48bc04
|
4
|
+
data.tar.gz: 5b7071b4ec13da0db203905617c97b19a817ad578dd4f5d2f0bc492a18b7eea4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '029b2beb2263b0d50ff7142aae086c9c664ae8d5ce2a849b50d72e81492c1439ab4b1ed30d753efff491431bf248ab10dc8a3af872833a2a7d5d40ec3a1832ef'
|
7
|
+
data.tar.gz: cd87d4fbb6e0fe59dcc3d6f43422496191b41aba511cacd05f1e852eddf714ff600bcfa3e375e45f613e9c6fdd01d00539e0a6c2285614e2e527f05c44a4191b
|
@@ -14,6 +14,10 @@ class EffectivePagesDatatable < Effective::Datatable
|
|
14
14
|
col :id, visible: false
|
15
15
|
col :updated_at, visible: false
|
16
16
|
|
17
|
+
col :published?, as: :boolean
|
18
|
+
col :published_start_at, label: "Published start", visible: false
|
19
|
+
col :published_end_at, label: "Published end", visible: false
|
20
|
+
|
17
21
|
col :title
|
18
22
|
|
19
23
|
col :slug do |page|
|
@@ -21,22 +25,19 @@ class EffectivePagesDatatable < Effective::Datatable
|
|
21
25
|
end
|
22
26
|
|
23
27
|
col :draft?, as: :boolean, visible: false
|
24
|
-
col :published?, as: :boolean
|
25
|
-
col :published_start_at
|
26
|
-
col :published_end_at
|
27
28
|
|
28
29
|
col :layout, visible: false
|
29
30
|
col :tempate, visible: false
|
30
31
|
|
31
|
-
col :menu_name
|
32
|
-
col :menu_title
|
33
|
-
col :menu_group
|
32
|
+
col :menu_name, label: "Menu"
|
33
|
+
col :menu_title, visible: false
|
34
|
+
col :menu_group, visible: false
|
34
35
|
|
35
36
|
col :menu_url, visible: false
|
36
37
|
col :menu_parent, search: { collection: admin_menu_parent_collection(), grouped: true }
|
37
38
|
col :menu_position, visible: false
|
38
39
|
|
39
|
-
col :page_banner, search: :string
|
40
|
+
col :page_banner, search: :string, visible: false
|
40
41
|
|
41
42
|
col :authenticate_user, visible: false
|
42
43
|
col :roles, visible: false
|
@@ -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'
|
@@ -1,5 +1,3 @@
|
|
1
|
-
-# %div.effective-page-segments{'data-spy': 'scroll', 'data-target': "#effective-page-segments-menu", style: 'position: relative; height: 500px; overflow: auto;'}
|
2
|
-
|
3
1
|
- page.page_segments.each do |segment|
|
4
|
-
|
2
|
+
.page-segment{id: segment.uid}
|
5
3
|
= segment.body
|
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.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-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|