advanced_haml_scaffold_generator 2.2.1 → 2.3.0
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 +4 -4
- data/VERSION +1 -1
- data/advanced_haml_scaffold_generator.gemspec +1 -1
- data/lib/rails/generators/haml/scaffold/templates/index.html.haml +49 -12
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f344a99c22cc17f0c6eb832e9b8cdf303abbd31b4739be7307b83e2885b6d1a
|
4
|
+
data.tar.gz: 3ae39730efadad38720846993251b3f29380bf9419dec47b7d8d87f7cea16c65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 645ebab9eb58aa1b262c667f372031fbed893103ae83ffdfb161e372c345866b4aa1f313124bb91fe95e8e320c00a22732e78ab6aa2c87b9e761fc02d5a9876d
|
7
|
+
data.tar.gz: 3ff6be8a5c3a8ec21d1dce75d093069819994a7e24784677b63de7ddd1ed437cb6d181b51848513182ad4398a8ea87353c48884458d06839aa13abc16ddff786
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.0
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "advanced_haml_scaffold_generator".freeze
|
9
|
-
s.version = "2.
|
9
|
+
s.version = "2.3.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
@@ -6,6 +6,7 @@
|
|
6
6
|
<% else -%>
|
7
7
|
%p.nav= link_to t('.new_<%= singular_table_name %>'), new_<%= singular_table_name %>_path, class: 'new'
|
8
8
|
<% end -%>
|
9
|
+
<% turbo = defined? Turbo -%>
|
9
10
|
|
10
11
|
- if @<%= plural_table_name %>.limit(1).size > 0
|
11
12
|
<% if defined? Wice::WiceGrid -%>
|
@@ -31,18 +32,30 @@
|
|
31
32
|
- link_to t('edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'edit'
|
32
33
|
- g.column do |<%= singular_table_name %>|
|
33
34
|
- if can? :destroy, <%= singular_table_name %>
|
35
|
+
<% if turbo -%>
|
36
|
+
- link_to t('destroy'), <%= singular_table_name %>, class: 'destroy',
|
37
|
+
data: {turbo_confirm: t('.confirm', default: 'Are you sure?'),
|
38
|
+
turbo_method: :delete}
|
39
|
+
<% else -%>
|
34
40
|
- link_to t('destroy'), <%= singular_table_name %>,
|
35
|
-
|
36
|
-
|
41
|
+
data: {confirm: t('.confirm', default: 'Are you sure?')},
|
42
|
+
method: :delete, class: 'destroy'
|
43
|
+
<% end -%>
|
37
44
|
<% else -%>
|
38
45
|
- g.column do |<%= singular_table_name %>|
|
39
46
|
- link_to t('show'), <%= singular_table_name %>, class: 'show'
|
40
47
|
- g.column do |<%= singular_table_name %>|
|
41
48
|
- link_to t('edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'edit'
|
42
49
|
- g.column do |<%= singular_table_name %>|
|
50
|
+
<% if turbo -%>
|
51
|
+
- link_to t('destroy'), <%= singular_table_name %>, class: 'destroy',
|
52
|
+
data: {turbo_confirm: t('.confirm', default: 'Are you sure?'),
|
53
|
+
turbo_method: :delete}
|
54
|
+
<% else -%>
|
43
55
|
- link_to t('destroy'), <%= singular_table_name %>,
|
44
|
-
|
45
|
-
|
56
|
+
data: {confirm: t('.confirm', default: 'Are you sure?')},
|
57
|
+
method: :delete, class: 'destroy'
|
58
|
+
<% end -%>
|
46
59
|
<% end -%>
|
47
60
|
-else
|
48
61
|
%table
|
@@ -72,15 +85,27 @@
|
|
72
85
|
= link_to t('edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'edit'
|
73
86
|
%td.action
|
74
87
|
- if can? :destroy, <%= singular_table_name %>
|
88
|
+
<% if turbo -%>
|
89
|
+
= link_to t('destroy'), <%= singular_table_name %>, class: 'destroy',
|
90
|
+
data: {turbo_confirm: t('.confirm', default: 'Are you sure?'),
|
91
|
+
turbo_method: :delete}
|
92
|
+
<% else -%>
|
75
93
|
= link_to t('destroy'), <%= singular_table_name %>,
|
76
|
-
|
77
|
-
|
94
|
+
data: {confirm: t('.confirm', default: 'Are you sure?')},
|
95
|
+
method: :delete, class: 'destroy'
|
96
|
+
<% end -%>
|
78
97
|
<% else -%>
|
79
98
|
%td.action= link_to t('show'), <%= singular_table_name %>, class: 'show'
|
80
99
|
%td.action= link_to t('edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'edit'
|
100
|
+
<% if turbo -%>
|
101
|
+
%td.action= link_to t('destroy'), <%= singular_table_name %>, class: 'destroy',
|
102
|
+
data: {turbo_confirm: t('.confirm', default: 'Are you sure?'),
|
103
|
+
turbo_method: :delete}
|
104
|
+
<% else -%>
|
81
105
|
%td.action= link_to t('destroy'), <%= singular_table_name %>,
|
82
|
-
|
83
|
-
|
106
|
+
data: {confirm: t('.confirm', default: 'Are you sure?')},
|
107
|
+
method: :delete, class: 'destroy'
|
108
|
+
<% end -%>
|
84
109
|
<% end -%>
|
85
110
|
<% else -%>
|
86
111
|
%table
|
@@ -110,15 +135,27 @@
|
|
110
135
|
= link_to t('edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'edit'
|
111
136
|
%td.action
|
112
137
|
- if can? :destroy, <%= singular_table_name %>
|
138
|
+
<% if turbo -%>
|
139
|
+
= link_to t('destroy'), <%= singular_table_name %>, class: 'destroy',
|
140
|
+
data: {turbo_confirm: t('.confirm', default: 'Are you sure?'),
|
141
|
+
turbo_method: :delete}
|
142
|
+
<% else -%>
|
113
143
|
= link_to t('destroy'), <%= singular_table_name %>,
|
114
|
-
|
115
|
-
|
144
|
+
data: {confirm: t('.confirm', default: 'Are you sure?')},
|
145
|
+
method: :delete, class: 'destroy'
|
146
|
+
<% end -%>
|
116
147
|
<% else -%>
|
117
148
|
%td.action= link_to t('show'), <%= singular_table_name %>, class: 'show'
|
118
149
|
%td.action= link_to t('edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'edit'
|
150
|
+
<% if turbo -%>
|
151
|
+
%td.action= link_to t('destroy'), <%= singular_table_name %>, class: 'destroy',
|
152
|
+
data: {turbo_confirm: t('.confirm', default: 'Are you sure?'),
|
153
|
+
turbo_method: :delete}
|
154
|
+
<% else -%>
|
119
155
|
%td.action= link_to t('destroy'), <%= singular_table_name %>,
|
120
|
-
|
121
|
-
|
156
|
+
data: {confirm: t('.confirm', default: 'Are you sure?')},
|
157
|
+
method: :delete, class: 'destroy'
|
158
|
+
<% end -%>
|
122
159
|
<% end -%>
|
123
160
|
<% end -%>
|
124
161
|
- else
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: advanced_haml_scaffold_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitri Koulikoff
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-06-17 00:00:00.000000000 Z
|
@@ -112,7 +112,7 @@ homepage: http://github.com/dima4p/advanced_haml_scaffold_generator
|
|
112
112
|
licenses:
|
113
113
|
- MIT
|
114
114
|
metadata: {}
|
115
|
-
post_install_message:
|
115
|
+
post_install_message:
|
116
116
|
rdoc_options: []
|
117
117
|
require_paths:
|
118
118
|
- lib
|
@@ -127,8 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
- !ruby/object:Gem::Version
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
|
-
rubygems_version: 3.1.
|
131
|
-
signing_key:
|
130
|
+
rubygems_version: 3.1.4
|
131
|
+
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Extention of the haml generator that is aware of i18n and so forth
|
134
134
|
test_files: []
|