kono_utils_bootstrap_view4 0.1.0.pre.rc.7 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/concepts/kono_utils/object/cell/base.rb +6 -2
- data/app/concepts/kono_utils/object/cell/inject.rb +2 -2
- data/app/views/kono_utils/base_editing/edit.html.erb +3 -3
- data/app/views/kono_utils/base_editing/edit.inject.erb +1 -1
- data/app/views/kono_utils/base_editing/index.html.erb +4 -4
- data/app/views/kono_utils/base_editing/new.html.erb +3 -3
- data/app/views/kono_utils/base_editing/new.inject.erb +1 -1
- data/app/views/kono_utils/base_editing/show.html.erb +3 -3
- data/app/views/kono_utils/base_editing/success_create_show.inject.erb +1 -1
- data/app/views/kono_utils/base_editing/success_update_show.inject.erb +1 -1
- data/lib/kono_utils_bootstrap_view4/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e54f4cbc61c0d98ae9d1b58fbf27d17a96b739d3f63d481281aadee542936be
|
4
|
+
data.tar.gz: df5d2ffcefd20dc75bd3a6dba4b148cb79c872c2ace672057f7f917fdfd670b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8095d99d28f25bb6fdcf700ae217f922c066498b6f4b96bed7da48d17dcf5be23b85baf799357978aadd5cd30016c7aea5458f6d339ccb7b1e8e7c1bbe92cba
|
7
|
+
data.tar.gz: 41c9f248d01a5313b7739aaec6f2d6ad7f34a3c42c86911dd60e41a392aed0702e99a53acf06cda674265edbdff0c2edb5709c16416b18ab3b0066226f5a5d4a
|
@@ -81,10 +81,14 @@ module KonoUtils
|
|
81
81
|
base_class.concept_prefix + super + parent_controller.lookup_context.view_paths.collect(&:to_path)
|
82
82
|
end
|
83
83
|
|
84
|
-
def
|
85
|
-
context[:
|
84
|
+
def kono_user
|
85
|
+
context[:kono_user]
|
86
86
|
end
|
87
87
|
|
88
|
+
##
|
89
|
+
# In questo modo se non viene modificato l'utente di pundit, il pundit interno a kono utilizza quello di kono_utils
|
90
|
+
alias_method :current_user, :kono_user
|
91
|
+
|
88
92
|
def title_mod
|
89
93
|
"#{t(:edit)} #{model.mn}"
|
90
94
|
end
|
@@ -46,7 +46,7 @@ module KonoUtils
|
|
46
46
|
form: form,
|
47
47
|
base_class: base_class,
|
48
48
|
nested_layout: nested_layout,
|
49
|
-
|
49
|
+
kono_user: context[:kono_user]
|
50
50
|
}.merge(remote_context)
|
51
51
|
)
|
52
52
|
|
@@ -77,7 +77,7 @@ module KonoUtils
|
|
77
77
|
context: {
|
78
78
|
form: form,
|
79
79
|
base_class: base_class,
|
80
|
-
|
80
|
+
kono_user: context[:kono_user]
|
81
81
|
}.merge(remote_context)
|
82
82
|
)
|
83
83
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
-
<%= concept(base_class.concept_ns("cell/edits/page_title"), @object, context: {
|
2
|
+
<%= concept(base_class.concept_ns("cell/edits/page_title"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
|
3
3
|
<% end %>
|
4
4
|
<% content_for :side_title do %>
|
5
|
-
<%= concept(base_class.concept_ns("cell/edits/side_title"), @object, context: {
|
5
|
+
<%= concept(base_class.concept_ns("cell/edits/side_title"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
|
6
6
|
<% end %>
|
7
7
|
|
8
|
-
<%= concept(base_class.concept_ns("cell/form"), @object, context: {
|
8
|
+
<%= concept(base_class.concept_ns("cell/form"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<%= concept(@object.class.concept_ns("cell/inject"), @object,
|
2
|
-
params: params, context: {
|
2
|
+
params: params, context: {kono_user: kono_user, base_class: @object.class}) -%>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<% content_for(:page_title) do %>
|
2
|
-
<%= concept(base_class.concept_ns("cell/index/page_title"), @objects, context: {
|
2
|
+
<%= concept(base_class.concept_ns("cell/index/page_title"), @objects, context: {kono_user: kono_user,base_class:base_class}) %>
|
3
3
|
<% end %>
|
4
4
|
<% content_for(:side_title) do %>
|
5
|
-
<%= concept(base_class.concept_ns("cell/index/side_title"), @objects, context: {
|
5
|
+
<%= concept(base_class.concept_ns("cell/index/side_title"), @objects, context: {kono_user: kono_user,base_class:base_class}) %>
|
6
6
|
<% end %>
|
7
7
|
|
8
|
-
<%= concept(base_class.concept_ns("cell/search"), @search, context: {
|
8
|
+
<%= concept(base_class.concept_ns("cell/search"), @search, context: {kono_user: kono_user,base_class:base_class}) unless @search.nil? %>
|
9
9
|
|
10
|
-
<%= concept(base_class.concept_ns("cell/index/table"), @objects, context: {
|
10
|
+
<%= concept(base_class.concept_ns("cell/index/table"), @objects, context: {kono_user: kono_user,base_class:base_class}) %>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<% content_for(:page_title) do %>
|
2
|
-
<%= concept(base_class.concept_ns("cell/create/page_title"), @object, context: {
|
2
|
+
<%= concept(base_class.concept_ns("cell/create/page_title"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
|
3
3
|
<% end %>
|
4
4
|
<% content_for(:side_title) do %>
|
5
|
-
<%= concept(base_class.concept_ns("cell/create/side_title"), @object, context: {
|
5
|
+
<%= concept(base_class.concept_ns("cell/create/side_title"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
|
6
6
|
<% end %>
|
7
7
|
|
8
8
|
|
9
|
-
<%= concept(base_class.concept_ns("cell/form"), @object, context: {
|
9
|
+
<%= concept(base_class.concept_ns("cell/form"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<%= concept(@object.class.concept_ns("cell/inject"), @object,
|
2
|
-
params: params, context: {
|
2
|
+
params: params, context: {kono_user: kono_user, base_class: @object.class}) -%>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
-
<%= concept(base_class.concept_ns("cell/shows/page_title"), @object, context: {
|
2
|
+
<%= concept(base_class.concept_ns("cell/shows/page_title"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
|
3
3
|
<% end %>
|
4
4
|
<% content_for :side_title do %>
|
5
|
-
<%= concept(base_class.concept_ns("cell/shows/side_title"), @object, context: {
|
5
|
+
<%= concept(base_class.concept_ns("cell/shows/side_title"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
|
6
6
|
<% end %>
|
7
7
|
|
8
|
-
<%= concept(base_class.concept_ns("cell/show"), @object, context: {
|
8
|
+
<%= concept(base_class.concept_ns("cell/show"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
|
@@ -3,4 +3,4 @@
|
|
3
3
|
# target: params[:kono_utils][:modal_upgraded_target_container],
|
4
4
|
html_manipulation_method: 'replaceWith',
|
5
5
|
inject_show_modal: true,
|
6
|
-
context: {
|
6
|
+
context: {kono_user: kono_user, base_class: @object.class}) -%>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kono_utils_bootstrap_view4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marino Bonetti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: '1.1'
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.1.
|
42
|
+
version: 1.1.2
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: '1.1'
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 1.1.
|
52
|
+
version: 1.1.2
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: kaminari
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -372,9 +372,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
372
372
|
version: '0'
|
373
373
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
374
374
|
requirements:
|
375
|
-
- - "
|
375
|
+
- - ">="
|
376
376
|
- !ruby/object:Gem::Version
|
377
|
-
version:
|
377
|
+
version: '0'
|
378
378
|
requirements: []
|
379
379
|
rubygems_version: 3.0.8
|
380
380
|
signing_key:
|