effective_pages 3.7.6 → 3.7.8

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: 9e7cca51681b4c15a785e7e6cd0b8bc431dc1209d7c5723b4d34fe1b9830505e
4
- data.tar.gz: 23b194a85d402b4703d72b404e70ab9917f205d081fbef946a187d36112754ad
3
+ metadata.gz: 9afdd8eb4b1d378a4b39eadc3325e838e8ce70b1af6bdfb520c95a0d42b8b2ea
4
+ data.tar.gz: 06402fc18cfa14a6db2dcc791e497b00d0977fedcbac4294bea4238723d6bce5
5
5
  SHA512:
6
- metadata.gz: ede6f5b8c0c7708539847272ec016d44c47fc542d8effe4d6fb5022369af1c141f4a42fc25105f942422858f3336315db29594152eadc07c6d139ba12d7bdbd2
7
- data.tar.gz: 928de1989eabc9067b2b37e979a50b5c4c1aa02d4936c32e2067ecb8087f02ae6e52c7a54eaac897af874585bb4adf0e278986dc56df5c0a0c69b6d2dc3064ee
6
+ metadata.gz: 11e71da9e8cf5711b52df703fc3ff934c323bf07fc0abc264b877069029c9371ba2e5e7bc17e783ab0edb555af50711f68c9dddfe5aea67915572730593316c1
7
+ data.tar.gz: ca68767a16dbac14fdc57690297d273a4674d6b89d9ceac64d7ac73af8b0408f39cf00fdf48e6d68d0ba94cbb574e5dbeb1f0de71ead02aa4a899874f6a11836
@@ -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
@@ -11,6 +11,7 @@ module Effective
11
11
  has_one_attached :attachment
12
12
  has_one_purgable :attachment
13
13
 
14
+ acts_as_tagged
14
15
  acts_as_slugged
15
16
 
16
17
  log_changes if respond_to?(:log_changes)
@@ -41,7 +42,7 @@ module Effective
41
42
  end
42
43
 
43
44
  def redirect_path
44
- "/permalinks/#{slug}"
45
+ "/link/#{slug}"
45
46
  end
46
47
 
47
48
  def target
@@ -5,4 +5,6 @@
5
5
  = f.url_field :url, required: false, hint: 'The link if redirecting to a website or specific page'
6
6
  = f.file_field :attachment, required: false, hint: 'The attachment of the permalink if redirecting to a document, image or other file'
7
7
 
8
+ = render 'effective/tags/fields', f: f
9
+
8
10
  = effective_submit(f)
data/config/routes.rb CHANGED
@@ -14,7 +14,7 @@ EffectivePages::Engine.routes.draw do
14
14
  end
15
15
 
16
16
  scope module: 'effective' do
17
- get '/permalinks/:slug', to: 'permalinks#redirect', as: :permalink_redirect
17
+ get '/link/:slug', to: 'permalinks#redirect', as: :permalink_redirect
18
18
 
19
19
  match '*id', to: 'pages#show', via: :get, as: :page, constraints: lambda { |req|
20
20
  Effective::Page.find_by_slug_or_id(req.path_parameters[:id] || '/').present?
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '3.7.6'.freeze
2
+ VERSION = '3.7.8'.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.6
4
+ version: 3.7.8
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-27 00:00:00.000000000 Z
11
+ date: 2023-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails