para-i18n 0.3.1 → 0.3.2

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: d5c764053878b2cba8adb8ed576917295f425e49
4
- data.tar.gz: 872b3159ccda1fbc26dee0522318de70ea361bbe
3
+ metadata.gz: 7debf4be928d56fb8b0e9bf814ee6fd09422b036
4
+ data.tar.gz: b7b0c7bf833da338a617d40b7ed49e87a3ff995f
5
5
  SHA512:
6
- metadata.gz: bec576e0856d55fef7fc941406886ed633cb9687c529e1958134bb39672b902c2ce9301ec47e5198a595e9ab8180c4291ef44a525d30bd135480c08067eac215
7
- data.tar.gz: ef5efc77c67ec25580522c9a1abc4cc881012ac58a8b09c4c9e04be2856e996c82044e85f81e004f1224da6eefbdd81fd73fae63558fa61232278b17c88a8f2f
6
+ metadata.gz: e40bacf82951a1c80f5f3079fd4d244007a9cf6dbfc9d1dfcc96770011a34564871e687176b31c2704b74c0305dbd52c536210e3d8ba5e81f7db00bef87f04fd
7
+ data.tar.gz: 90b24e6e7a78d8622c232796bc93acc6e4a32a1773462ce6dd7023d7173b38241c39721bd42a163b06975351ae37f85588fd30af5f681c3da57b986cbcb7e426
@@ -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-info' }
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')
@@ -1,5 +1,5 @@
1
1
  module Para
2
2
  module I18n
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
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.1
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-15 00:00:00.000000000 Z
11
+ date: 2019-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: para