para-i18n 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/para/i18n/engine.rb +4 -0
- data/lib/para/i18n/resources_buttons.rb +1 -1
- data/lib/para/i18n/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7debf4be928d56fb8b0e9bf814ee6fd09422b036
|
4
|
+
data.tar.gz: b7b0c7bf833da338a617d40b7ed49e87a3ff995f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e40bacf82951a1c80f5f3079fd4d244007a9cf6dbfc9d1dfcc96770011a34564871e687176b31c2704b74c0305dbd52c536210e3d8ba5e81f7db00bef87f04fd
|
7
|
+
data.tar.gz: 90b24e6e7a78d8622c232796bc93acc6e4a32a1773462ce6dd7023d7173b38241c39721bd42a163b06975351ae37f85588fd30af5f681c3da57b986cbcb7e426
|
data/lib/para/i18n/engine.rb
CHANGED
@@ -8,6 +8,10 @@ module Para
|
|
8
8
|
end
|
9
9
|
|
10
10
|
initializer 'para.i18n.extend_para_routes' do
|
11
|
+
::Para.config.routes.extend_routes_for(:component) do
|
12
|
+
resource :translation, only: [:edit, :update], controller: '/para/admin/translations'
|
13
|
+
end
|
14
|
+
|
11
15
|
::Para.config.routes.extend_routes_for(:crud_component) do
|
12
16
|
resource :translation, only: [:edit, :update], controller: '/para/admin/translations'
|
13
17
|
end
|
@@ -5,7 +5,7 @@ module Para
|
|
5
5
|
return unless resource.class.translates?
|
6
6
|
|
7
7
|
path = component.relation_path(resource, :translation, action: :edit)
|
8
|
-
options = { class: 'btn btn-
|
8
|
+
options = { class: 'btn btn-default' }
|
9
9
|
|
10
10
|
view.link_to(path, options) do
|
11
11
|
content_tag(:i, '', class: 'fa fa-globe')
|
data/lib/para/i18n/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: para-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Valentin Ballestrino
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: para
|