itsf_backend 3.0.6 → 3.0.7

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: bc986732dbd9aa1a08a48faefb419c602b9f9376
4
- data.tar.gz: 771f07f03a33bc7cda6b29aab25c0e48de74a7dd
3
+ metadata.gz: 71eed6cfcc268ef5f460a907df0b286818fec094
4
+ data.tar.gz: df4a8a6d20297456495afb0073ee8da1897d6971
5
5
  SHA512:
6
- metadata.gz: 23c5a9c82add8276b52f9e4dadaa8073b7efee608fd66e788d3247ad2d153c9453588cd94388d9f25165632c03465ff940c1a5b6766e0e2479d05dd817a5996f
7
- data.tar.gz: 95364a6db071cbc8cb5b4f34b32a7f14fb36376cb9ba6e5f78e5f1380e4c8dc7bd211cd536f01740687bbdea5fec1336b9b8e3d2539a266da3a36bda84b58120
6
+ metadata.gz: ee2b2f614bea5f33d04f5e760f063b4b6d08500c339a420cfb2d8ea3af53ec64c74cc3120860be2ead7cf7bde58b154e109318f5c6d00d5a0206ecc23f60e2fb
7
+ data.tar.gz: b467607742f446bd68692d33cddfb7f9c3f0e60ffb180ba5894d4c4b98f0ec309717d09945e3d0efcbfe3583ad4d03ab675b68758f758c362cab9d8ea81072fa
@@ -1,10 +1,10 @@
1
1
  - Itsf::Backend::Configuration.backend_engines.each do |engine|
2
2
  - if !respond_to?(:engine_policy) || engine_policy(engine).access?
3
3
  = accordion_menu(identifier: engine.name.parameterize, title: t("classes.#{engine.name.underscore}"), icon: 'menu-down') do |menu|
4
- = menu.item(icon: 'home', target: send(engine.engine_name).root_path, title: t(".home"))
4
+ = menu.item(icon: 'home', target: send("#{engine.engine_name}_#{I18n.locale}").root_path, title: t(".home"))
5
5
  - controllers = engine.to_s.gsub('::Engine', '::Configuration').constantize.registered_controllers.call
6
6
  - controllers.each do |kontroller|
7
7
  - resource_klass = kontroller.resource_class
8
8
  - if !Itsf::Backend.features?(:pundit) || policy(resource_klass).index?
9
9
  - resource_count = kontroller.resource_count.respond_to?(:call) ? instance_exec(&kontroller.resource_count) : kontroller.resource_count
10
- = menu.item(icon: 'list', target: send(engine.engine_name).url_for(controller: "/#{kontroller.controller_path}"), title: resource_klass.model_name.human(count: :other), item_count: resource_count)
10
+ = menu.item(icon: 'list', target: send("#{engine.engine_name}_#{I18n.locale}").url_for(controller: "/#{kontroller.controller_path}"), title: resource_klass.model_name.human(count: :other), item_count: resource_count)
@@ -1,5 +1,5 @@
1
1
  module Itsf
2
2
  module Backend
3
- VERSION = '3.0.6'
3
+ VERSION = '3.0.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itsf_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.6
4
+ version: 3.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
@@ -3221,7 +3221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3221
3221
  version: '0'
3222
3222
  requirements: []
3223
3223
  rubyforge_project:
3224
- rubygems_version: 2.4.8
3224
+ rubygems_version: 2.6.11
3225
3225
  signing_key:
3226
3226
  specification_version: 4
3227
3227
  summary: ITSF Backend Module.
@@ -5809,4 +5809,3 @@ test_files:
5809
5809
  - spec/dummy/bin/rails
5810
5810
  - spec/dummy/bin/bundle
5811
5811
  - spec/dummy/bin/setup
5812
- has_rdoc: