effective_pages 3.4.4 → 3.4.6
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 +4 -4
- data/app/controllers/admin/pages_controller.rb +1 -1
- data/app/views/admin/pages/_form_access.html.haml +1 -1
- data/app/views/admin/pages/_form_menu.html.haml +1 -1
- data/app/views/admin/pages/_form_page.html.haml +1 -1
- data/app/views/effective/carousels/_carousel.html.haml +6 -6
- 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: 2a9efbc081313d362ec734f36ce3595c70c27699a2a2317da005f810d868f556
|
4
|
+
data.tar.gz: e6236aa5edd590a11e82e2c8aa82c6a7bd95dfe7a6004f8e84d29a749f7fb188
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92b7210598bca62d3c2f5357beef37c5fd7e941695af2982fd391f565e7de94aaf69e11525f997c75881272a0fc5b377fbafda12890a54a8c59b907576695f80
|
7
|
+
data.tar.gz: 64c58b1665c07297892b768ef56156b7ef254ca91ac4ad967528d9a661de04fbc42e3f461261f33a6382cd8ebfc891575a8278b1a2710a8c8333ccc5831be3cb
|
@@ -12,7 +12,7 @@ module Admin
|
|
12
12
|
submit :save, 'Save'
|
13
13
|
submit :save, 'Save and Add New', redirect: :new
|
14
14
|
submit :save, 'Save and View', redirect: -> { effective_pages.page_path(resource) }
|
15
|
-
submit :save, 'Duplicate', only: :edit, redirect: -> { effective_pages.new_admin_page_path(duplicate_id: resource
|
15
|
+
submit :save, 'Duplicate', only: :edit, redirect: -> { effective_pages.new_admin_page_path(duplicate_id: resource) }
|
16
16
|
|
17
17
|
def permitted_params
|
18
18
|
params.require(:effective_page).permit!
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= effective_form_with(model:
|
1
|
+
= effective_form_with(model: [:admin, page], engine: true) do |f|
|
2
2
|
= f.check_box :authenticate_user, label: 'Restrict the page to any signed in user'
|
3
3
|
|
4
4
|
- if EffectivePages.use_effective_roles
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= effective_form_with(model:
|
1
|
+
= effective_form_with(model: [:admin, page], engine: true) do |f|
|
2
2
|
= f.check_box :menu, label: 'Yes, display this page in a menu'
|
3
3
|
|
4
4
|
= f.show_if :menu, true do
|
@@ -3,25 +3,25 @@
|
|
3
3
|
|
4
4
|
- raise('expected one or more carousel items') unless carousel_items.present?
|
5
5
|
|
6
|
-
|
6
|
+
.carousel.slide{id: uid, 'data-ride': 'carousel', **options}
|
7
7
|
%ol.carousel-indicators
|
8
8
|
- carousel_items.each_with_index do |item, index|
|
9
9
|
%li{'data-target': '#' + uid, 'data-slide-to': index, class: ('active' if index == 0)}
|
10
10
|
|
11
|
-
|
11
|
+
.carousel-inner
|
12
12
|
- carousel_items.each_with_index do |item, index|
|
13
|
-
|
13
|
+
.carousel-item{class: ('active' if index == 0)}
|
14
14
|
- if item.caption.blank?
|
15
15
|
= image_tag(item.file, class: 'd-block w-100', alt: "Slide #{index+1}")
|
16
16
|
- else
|
17
17
|
= image_tag(item.file, alt: item.caption)
|
18
|
-
|
18
|
+
.carousel-caption.d-none.d-md-block
|
19
19
|
%p= item.caption
|
20
20
|
|
21
|
-
%
|
21
|
+
%button.carousel-control-prev{'data-target': '#' + uid, type: 'button', 'data-slide': 'prev'}
|
22
22
|
%span.carousel-control-prev-icon{'aria-hidden': true}
|
23
23
|
%span.sr-only Previous
|
24
24
|
|
25
|
-
%
|
25
|
+
%button.carousel-control-next{'data-target': '#' + uid, type: 'button', 'data-slide': 'next'}
|
26
26
|
%span.carousel-control-next-icon{'aria-hidden': true}
|
27
27
|
%span.sr-only Next
|
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.4.
|
4
|
+
version: 3.4.6
|
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:
|
11
|
+
date: 2023-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|