effective_pages 3.4.4 → 3.4.6

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: b7e7436b43a4cfa2c411726504dfebd9b9d2f57882c81a34b96050c05180a5db
4
- data.tar.gz: d8100f839281181a472c7d4b57057d938b3b47e6a02b7a57c4898d14e7c38432
3
+ metadata.gz: 2a9efbc081313d362ec734f36ce3595c70c27699a2a2317da005f810d868f556
4
+ data.tar.gz: e6236aa5edd590a11e82e2c8aa82c6a7bd95dfe7a6004f8e84d29a749f7fb188
5
5
  SHA512:
6
- metadata.gz: 92141f94e61b16c58698757af7c46a57bba7578f66b166e32fb04d5b7b13e7f48ee71eaca57456cc1f56827f472283b15ea545e9dce37135e4d15452410e8c7c
7
- data.tar.gz: d90538fe6536064184493453a7dd1c4e5bf0d60d076d82314baa31d9f3b0350f7bee30bce1cd04d7b4bc228936ce33a82d91b1e88998b74f45af9efe7be2766e
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.id) }
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: page, url: page.persisted? ? effective_pages.admin_page_path(page.id) : effective_pages.admin_pages_path) do |f|
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: page, url: page.persisted? ? effective_pages.admin_page_path(page.id) : effective_pages.admin_pages_path) do |f|
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
@@ -1,4 +1,4 @@
1
- = effective_form_with(model: page, url: page.persisted? ? effective_pages.admin_page_path(page.id) : effective_pages.admin_pages_path) do |f|
1
+ = effective_form_with(model: [:admin, page], engine: true) do |f|
2
2
 
3
3
  = f.text_field :title
4
4
 
@@ -3,25 +3,25 @@
3
3
 
4
4
  - raise('expected one or more carousel items') unless carousel_items.present?
5
5
 
6
- %div.carousel.slide{id: uid, 'data-ride': 'carousel', **options}
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
- %div.carousel-inner
11
+ .carousel-inner
12
12
  - carousel_items.each_with_index do |item, index|
13
- %div.carousel-item{class: ('active' if index == 0)}
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
- %div.carousel-caption.d-none.d-md-block
18
+ .carousel-caption.d-none.d-md-block
19
19
  %p= item.caption
20
20
 
21
- %a.carousel-control-prev{href: '#' + uid, role: 'button', 'data-slide': 'prev'}
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
- %a.carousel-control-next{href: '#' + uid, role: 'button', 'data-slide': 'next'}
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
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '3.4.4'.freeze
2
+ VERSION = '3.4.6'.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.4.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: 2022-10-30 00:00:00.000000000 Z
11
+ date: 2023-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails