rails_admin_ui_dashboard_blocks 1.1.5 → 1.1.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
  SHA1:
3
- metadata.gz: ef2a192fcc73bfaad74f331d1ae3c6fabaf3cfc4
4
- data.tar.gz: a2d9a6a8a49462ccc17cdd5163e96d8ca173a449
3
+ metadata.gz: 4b1773d31352d385bb17ce96cab5fb4b9e5b8146
4
+ data.tar.gz: 9c67a7dd1338b8f0bc3f20676db4a6932c9cb8e6
5
5
  SHA512:
6
- metadata.gz: 4bb3051054804be92ef13fdffbfb52ed9bc2217026e1553eaa76d834a9a597b76022cb6d5f6293c7771f495a2857f39c713b67a0f1702c65543b1c521d0ef700
7
- data.tar.gz: 6e26e32385bd18d0801cfbe56c72e323ab7873866f08c5345dafb1d878eefb59a57f1886a08155500d47d3a4db95f22212d2ae57d9c992c8b775e805186ca720
6
+ metadata.gz: 047725ba3ff6f38e2baa587b201fc55914e222c6be1c4b6f03a5b9a9550b2b0a1b051e43ad68db883e1dd44ea28b4ca53d7cfbcd955aecac25efac3570e024fb
7
+ data.tar.gz: 3506db4bf67ca4b0840c8669dc540008b47fe902c194d5a7605774437fe25d0aea8c98b2667c262d75a1c733526ff4ee0a86a7fc5bc6b846883f87d0bae5f11c
@@ -4,10 +4,10 @@
4
4
  .row
5
5
  - index = 0
6
6
  - @abstract_models.each do |abstract_model|
7
- - if authorized? :index, abstract_model
7
+ - index_path = index_path(model_name: abstract_model.to_param)
8
+ - if authorized?(:index, abstract_model) && !index_path.include?("ckeditor")
8
9
  - if index == @list_bg.length
9
10
  - index = 0
10
- - index_path = index_path(model_name: abstract_model.to_param)
11
11
  - row_class = "box bg-#{ @list_bg[index].to_s } #{"link" if index_path} #{abstract_model.param_key}_links #{abstract_model.config.label_plural}"
12
12
  .col-sm-4
13
13
  .box{class: row_class, :"data-link" => index_path}
@@ -1,3 +1,3 @@
1
1
  module RailsAdminUiDashboardBlocks
2
- VERSION = '1.1.5'.freeze
2
+ VERSION = '1.1.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_ui_dashboard_blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-28 00:00:00.000000000 Z
11
+ date: 2019-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore