five-two-nw-olivander 0.1.2.20 → 0.1.2.21
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 539b6791367e3d96d805c01c479594b8df38866f9c15641cce69e9523d9556e7
|
4
|
+
data.tar.gz: fc09874c9cd028c1e477db9fd5c448a77334f8c777b607a7527c2793328d03f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88815b3f90b87c1dd9ea1312cbc6b41d2f8c99c503f9c37e4d3850ea6427e5031af6a8e06dd3fd016baf2c5cde5fec6372126e8a1a26008528b6ba14af570132
|
7
|
+
data.tar.gz: a73c30e128514624507f6ce823088a8d30fa97b9fa3831c8a919e246339e69fe5d518f022226b04181ccba0dd751a384f349052d03b0605900d5ba2f8656ec32
|
@@ -26,7 +26,7 @@ module Olivander
|
|
26
26
|
actions = resource.is_a?(Class) ?
|
27
27
|
(routed_resource.unpersisted_crud_actions | routed_resource.collection_actions.select{ |x| !x.crud_action }) :
|
28
28
|
(resource.persisted? ? (routed_resource.persisted_crud_actions | routed_resource.member_actions.select{ |x| !x.crud_action }): [])
|
29
|
-
actions = actions.reject{ |a| a.sym == for_action || EffectiveDatatables.authorization_method.call(controller,
|
29
|
+
actions = actions.reject{ |a| a.sym == for_action || !EffectiveDatatables.authorization_method.call(controller, a.sym, resource) }
|
30
30
|
preferred = %i[show edit destroy]
|
31
31
|
[].tap do |arr|
|
32
32
|
preferred.each do |p|
|
@@ -11,13 +11,13 @@
|
|
11
11
|
.row
|
12
12
|
- @datatable._charts.keys.each do |k|
|
13
13
|
%div{ class: "#{col_class_num('xl', ks, 3)} #{col_class_num('lg', ks, 2)} #{col_class_num('md', ks, 6)} #{col_class_num('sm', ks, 6)}"}
|
14
|
-
.card.card-
|
14
|
+
.card.card-primary
|
15
15
|
.card-header
|
16
16
|
%h3.card-title= I18n.t([@datatable.class.name.underscore, 'charts', k].join('.'))
|
17
17
|
.card-tools.text-right
|
18
18
|
%button.btn.btn-tool{ type: :button, 'data-card-widget': :maximize }
|
19
19
|
%i.fas.fa-expand
|
20
|
-
.card-body
|
20
|
+
.card-body{ style: 'min-height: 220px' }
|
21
21
|
= render_datatable_chart(@datatable, k)
|
22
22
|
|
23
23
|
= content_for :datatable_charts
|
data/lib/olivander/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: five-two-nw-olivander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.2.
|
4
|
+
version: 0.1.2.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Dennis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chartkick
|