itsf_backend 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71eed6cfcc268ef5f460a907df0b286818fec094
|
|
4
|
+
data.tar.gz: df4a8a6d20297456495afb0073ee8da1897d6971
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)
|
data/lib/itsf/backend/version.rb
CHANGED
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.
|
|
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.
|
|
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:
|