effective_posts 1.1.9 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/effective_posts/version.rb +1 -1
- metadata +2 -3
- data/app/models/effective/datatables/posts.rb +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cfed91d21309be6bb55b1ddb763f7db0c0b0f84df48e58e1cebeeafd057cb0d
|
4
|
+
data.tar.gz: 9efd9f25e107f6d4b3d3b9a04738b4e9e4f8453f341cb06d29ac7472d5740fe1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8f0693fd417027a7f0fe4e3f783f3ecb1d3db5a54342ee89087d7dff1cf0446b6be1f71e6c12df5edbac579df4e5eeca41da9db10bd3e3e0e7544fa7b6793c4
|
7
|
+
data.tar.gz: fa1a3f84a24d1d93b3a86697791589c831d667fba94aa8a048229f84e96a48b39cafe06d8d0598ce864c7f3bb7a5c2e5f89ea50d620ac23b7a387fe68ae02aa8
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_posts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.10
|
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: 2020-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -143,7 +143,6 @@ files:
|
|
143
143
|
- app/helpers/effective_truncate_html_helper.rb
|
144
144
|
- app/mailers/effective/posts_mailer.rb
|
145
145
|
- app/models/effective/access_denied.rb
|
146
|
-
- app/models/effective/datatables/posts.rb
|
147
146
|
- app/models/effective/post.rb
|
148
147
|
- app/models/effective/snippets/read_more_divider.rb
|
149
148
|
- app/views/admin/posts/_actions.html.haml
|
@@ -1,40 +0,0 @@
|
|
1
|
-
if Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
|
2
|
-
module Effective
|
3
|
-
module Datatables
|
4
|
-
class Posts < Effective::Datatable
|
5
|
-
datatable do
|
6
|
-
default_order :published_at, :desc
|
7
|
-
|
8
|
-
table_column :published_at
|
9
|
-
table_column :id, visible: false
|
10
|
-
|
11
|
-
table_column :title
|
12
|
-
col :slug, visible: false
|
13
|
-
table_column :category, filter: { type: :select, values: EffectivePosts.categories }
|
14
|
-
|
15
|
-
if EffectivePosts.submissions_enabled
|
16
|
-
table_column :approved, column: 'NOT(draft)', as: :boolean do |post|
|
17
|
-
post.draft ? 'No' : 'Yes'
|
18
|
-
end
|
19
|
-
|
20
|
-
table_column :draft, visible: false
|
21
|
-
else
|
22
|
-
table_column :draft
|
23
|
-
end
|
24
|
-
|
25
|
-
table_column :start_at
|
26
|
-
table_column :end_at, visible: false
|
27
|
-
table_column :location, visible: false
|
28
|
-
|
29
|
-
table_column :created_at, label: 'Submitted at', visible: false
|
30
|
-
|
31
|
-
table_column :actions, sortable: false, filter: false, partial: '/admin/posts/actions'
|
32
|
-
end
|
33
|
-
|
34
|
-
def collection
|
35
|
-
Effective::Post.all
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|