effective_pages 3.13.2 → 3.13.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbc2cead22e304fb58b460a336a6415a7e3dbb30a90595c0474fed9ebb5e3481
4
- data.tar.gz: 6cab9af0475018a1077f9a462bf781f29b123befeb48a9485f361f3ba154325e
3
+ metadata.gz: 422137921264113dbec203682ea4a33e1900d1e4bb40f09e6e2dce2a5988fa83
4
+ data.tar.gz: 58633d2b56960b8717b52343b31c9cde3dac0f1142a5678b40c9f123e029c10f
5
5
  SHA512:
6
- metadata.gz: db2226b04fe28e136389ae3e5f872b16b6568d138c21bc8aa76739fc3b60b25ca55ad59bcf13727ff2eaaa1493d501123030c4343fbdaba7e5f57796bb96b9b1
7
- data.tar.gz: 95b3fcf12fe0a55f0d053b8591550df92783d3bc01539d2a1221ac0be24b21bd2d8fb0745aaf29b87a0b7c5cf86472e8de1911b959d0fe777d6dae0b650cb7a7
6
+ metadata.gz: 8b75132a3e59f15f5bf5324a9d058a0c3678bd616902f1aba61a1ff9c014cf190e35ef808f5524d0c7831ab64b13a77ca20a2245e8f0f8092e8a0b3a36d63deb
7
+ data.tar.gz: 83be6d6eec37e398085cfa78cf52fbd0538bb1b0538d13b5d6ca5818017bf1d6fbf14d3a4bd181db32797324295ddd10f0a7bdef90ddc1f1c79567ef6e9f4a3c
@@ -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
@@ -4,8 +4,10 @@
4
4
 
5
5
  = f.check_box :menu, label: 'Yes, display this page in a menu'
6
6
 
7
- = f.show_if :menu, true do
7
+ = f.hide_if(:menu, true) do
8
+ = f.hidden_field :menu_parent_id, value: nil
8
9
 
10
+ = f.show_if(:menu, true) do
9
11
  = f.check_box :menu_root_level, label: "This is a top level menu item. It has no content and cannot be viewed, but can have children pages"
10
12
 
11
13
  = f.show_if :menu_root_level, true do
@@ -1,4 +1,4 @@
1
- %div{class: "alert alert-warning", role: 'alert'}
1
+ .alert.alert-warning.text-center{role: "alert"}
2
2
  .container
3
3
  .row
4
4
  .col= alert.body
@@ -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
- %div{id: segment.uid}
2
+ .page-segment{id: segment.uid}
5
3
  = segment.body
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '3.13.2'.freeze
2
+ VERSION = '3.13.4'.freeze
3
3
  end
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.2
4
+ version: 3.13.4
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-08-01 00:00:00.000000000 Z
11
+ date: 2024-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails