tybo 0.3.23 → 0.3.24
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8996c31097451e031e4b914ce1bec15f2875c8d109cd4635d83f2041857fd952
|
4
|
+
data.tar.gz: f56052f3c0a83da9fd3aacbcea21ea9e4893d8e283932b8a44b69585204005c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '029c0fba8bc61cf7962221b98e4675948c5690cd8e99f52a859eb94da3058d943db342bdec53d534880f8803a2c0bdbf7e557957dbcfde3616eb77cf24921dbb'
|
7
|
+
data.tar.gz: 84c1fb812d2fa6d1633e627465d0a2ad5eb6bd7c6707c3c3ac0ea657ad0df5850bf3d88c553757eff024822b91cf705ef71efbfc33163301dde5b8c411a8074b
|
@@ -11,7 +11,11 @@
|
|
11
11
|
<%% @<%= class_name.underscore.pluralize %>&.each_with_index do |<%= class_name.underscore %>, i| %>
|
12
12
|
<%%= tbody.with_tr(index: i) do |tr| %>
|
13
13
|
<%- bo_model.column_names.each do |column| -%>
|
14
|
+
<%- if %i[date datetime].include?(bo_model.attribute_types[column].type) -%>
|
15
|
+
<%%= tr.with_td { I18n.l(<%= class_name.underscore %>.<%= column %>, format: :long) if <%= class_name.underscore %>.<%= column %> } %>
|
16
|
+
<%- else -%>
|
14
17
|
<%%= tr.with_td { <%= class_name.underscore %>.<%= column %>.to_s } %>
|
18
|
+
<%- end -%>
|
15
19
|
<%- end -%>
|
16
20
|
<%%= tr.with_td do %>
|
17
21
|
<%%= link_to <%="#{options[:namespace]}_#{class_name.underscore}_path(#{class_name.underscore})"%>, class: "text-tybo-600 hover:text-tybo-900" do %>
|
@@ -8,7 +8,7 @@ module <%= options[:namespace].camelize %>
|
|
8
8
|
@q = authorized_scope(
|
9
9
|
<%=class_name%>.all,
|
10
10
|
with: Bo::<%= options[:namespace].camelize %>::<%= class_name %>Policy
|
11
|
-
).ransack(params[:q])
|
11
|
+
).order(:created_at).ransack(params[:q])
|
12
12
|
@pagy, @<%= class_name.pluralize.underscore %> = pagy(@q.result(distinct: true))
|
13
13
|
end
|
14
14
|
|
data/lib/tybo/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tybo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michel Delpierre
|
8
8
|
- Julien Camblan
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-08-
|
12
|
+
date: 2024-08-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -283,7 +283,7 @@ licenses:
|
|
283
283
|
- MIT
|
284
284
|
metadata:
|
285
285
|
homepage_uri: https://rubygems.org/gems/tybo
|
286
|
-
post_install_message:
|
286
|
+
post_install_message:
|
287
287
|
rdoc_options: []
|
288
288
|
require_paths:
|
289
289
|
- lib
|
@@ -298,8 +298,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
300
|
requirements: []
|
301
|
-
rubygems_version: 3.
|
302
|
-
signing_key:
|
301
|
+
rubygems_version: 3.5.11
|
302
|
+
signing_key:
|
303
303
|
specification_version: 4
|
304
304
|
summary: A tailwind custom admin engine for Ruby on Rails
|
305
305
|
test_files: []
|