effective_pages 3.7.7 → 3.7.9

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: 7e8d314134e576fdb6c96d83e22d4532aaee08d191ed61f1c51a5c9a7778db68
4
- data.tar.gz: cc6ee51377b8996b53c28a81c342366914f9372f32945fb7127950aa5b311235
3
+ metadata.gz: 3c8d20b00fb7b1c7f13d727371a39ceecdbd02fc965a54d85093519bbcedb72b
4
+ data.tar.gz: f3c71d8c58d2384cc0af11a6517615cea6712c672391dbdd5559300d4191cfa1
5
5
  SHA512:
6
- metadata.gz: e33484f7ed409b1f55f3ef1630a4f75327c0db94ed4a6416d59df128f2e3941fa9e2bdd2f30dbab5042ea641d3c3d461944c6dfe60005cbb25c59cab365957ce
7
- data.tar.gz: c38237b16c2fefbb59eba713d6dbd43cfa0dad99b59bbee3d0429002ba7a43d650aaaa9c8dc58550437c1ee6da3b017b9e2e13e8686c91a7a2d95b5a2b3d9381
6
+ metadata.gz: ae6e2c309d3c716f836c8759689ce3d258e5327a007a04fb473e233e7c9fd5debfb42876aebc99494a1b717cee88674e899da0cf2e1bc919c872309d7a1407c7
7
+ data.tar.gz: ec46f9319dc22fbfd5e968325b0afe8b7291d4b754d0333aa48408df5f71b56860ab43402e6237854e877ebc0bd124d06adc8971204252343c48ccc8b0083fed
@@ -25,7 +25,7 @@ module Effective
25
25
  flash.now[:warning] = [
26
26
  'Hi Admin!',
27
27
  ('You are viewing a draft page.' unless @page.published?),
28
- ("<a href='#{effective_pages.edit_admin_page_path(@page)}' class='alert-link'>Click here to edit this page</a>.")
28
+ ("<a href='#{effective_pages.edit_admin_page_path(@page)}' class='alert-link' data-turbolinks='false'>Click here to edit this page</a>.")
29
29
  ].compact.join(' ')
30
30
  end
31
31
 
@@ -7,6 +7,7 @@ class EffectivePermalinksDatatable < Effective::Datatable
7
7
  col :title
8
8
  col :slug
9
9
  col :summary
10
+ col :tags
10
11
 
11
12
  actions_col
12
13
  end
@@ -1,6 +1,9 @@
1
1
  = effective_form_with(model: [:admin, permalink], engine: true) do |f|
2
2
  = f.text_field :title, required: true, hint: 'Title of the permalink to be displayed'
3
- = f.text_field :slug, required: true, hint: 'Slug for link of the permalink'
3
+
4
+ - current_url = (effective_pages.permalink_redirect_url(f.object) rescue nil)
5
+ = f.text_field :slug, required: true, hint: "The slug controls this permalink's internet address. Be careful, changing the slug will break links that other websites may have to the old address.<br>#{('This permalink 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
6
+
4
7
  = f.text_field :summary, required: true, hint: 'Summary explanation of the permalink not displayed'
5
8
  = f.url_field :url, required: false, hint: 'The link if redirecting to a website or specific page'
6
9
  = f.file_field :attachment, required: false, hint: 'The attachment of the permalink if redirecting to a document, image or other file'
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '3.7.7'.freeze
2
+ VERSION = '3.7.9'.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.7.7
4
+ version: 3.7.9
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: 2023-06-28 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails