lato 0.1.37 → 0.1.39
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/app/views/lato/components/_index.html.erb +7 -7
- data/lib/lato/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0abfeb278039b9f9bbe46997987eb13445868c970b380ac534cb907bf29f772
|
4
|
+
data.tar.gz: 3c1245e51048ce9954cd88ed89341a4e66d692d1fd9f5a6acd95632702921cec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dfc268cf9ee491e54db23903968779cfcea40d01b646f98471ae3e1a1a9b9892e620f2166ffea99d7fa2b566c0cb3e2c5865b4823cafdf1c282866be0d31cbc
|
7
|
+
data.tar.gz: 433221de6eb4141e80615865d1c3d0188ba7f4dcdc06081b06319b9a3f5706932f00a58b317411f23c2189ba589b0aa9669a86157f1ad1b7f2e788c440d8f57f
|
@@ -5,7 +5,7 @@ collection_total = collection.respond_to?(:total_count) ? collection.total_count
|
|
5
5
|
|
6
6
|
%>
|
7
7
|
|
8
|
-
<%= turbo_frame_tag "lato_index_#{key}_#{model_name_underscore}", class: 'lato-index' do %>
|
8
|
+
<%= turbo_frame_tag "lato_index_#{key}_#{model_name_underscore}", class: "lato-index #{browser.device.mobile? ? 'lato-index-mob' : 'lato-index-desk'}" do %>
|
9
9
|
|
10
10
|
<%= form_tag request.path, method: :get, data: { turbo_frame: '_self' } do %>
|
11
11
|
<%= hidden_field_tag :key, key %>
|
@@ -41,16 +41,16 @@ collection_total = collection.respond_to?(:total_count) ? collection.total_count
|
|
41
41
|
<ul class="list-group list-group-flush">
|
42
42
|
<% collection.each do |member| %>
|
43
43
|
<li class="list-group-item p-2 border-0 bg-light mb-3 rounded">
|
44
|
-
<table class="table">
|
44
|
+
<table class="table mb-0">
|
45
45
|
<tbody>
|
46
46
|
<% columns.each do |column| %>
|
47
|
-
<tr>
|
48
|
-
<th><%= collection_test_istance.respond_to?(column) ? collection.model.human_attribute_name(column) : lato_index_dynamic_label({
|
47
|
+
<tr class="lato-index-mob-row lato-index-mob-row-<%= column %>">
|
48
|
+
<th class="lato-index-mob-label lato-index-mob-label-<%= column %>"><%= collection_test_istance.respond_to?(column) ? collection.model.human_attribute_name(column) : lato_index_dynamic_label({
|
49
49
|
key: key,
|
50
50
|
model_name: model_name,
|
51
51
|
column: column
|
52
52
|
}) %></th>
|
53
|
-
<td class="lato-index-
|
53
|
+
<td class="lato-index-mob-value lato-index-mob-value-<%= column %>">
|
54
54
|
<% viewer_function_name = "#{model_name_underscore}_#{column}" %>
|
55
55
|
<%= respond_to?(viewer_function_name) ? send(viewer_function_name, member) : (collection_test_istance.respond_to?(column) ? member.send(column) : lato_index_dynamic_value({
|
56
56
|
key: key,
|
@@ -81,7 +81,7 @@ collection_total = collection.respond_to?(:total_count) ? collection.total_count
|
|
81
81
|
<thead>
|
82
82
|
<tr class="align-middle">
|
83
83
|
<% columns.each do |column| %>
|
84
|
-
<th scope="col" class="lato-index-col-<%= column %>">
|
84
|
+
<th scope="col" class="lato-index-desk-col-label lato-index-desk-col-label-<%= column %>">
|
85
85
|
<div class="d-flex align-items-center">
|
86
86
|
<span><%= collection_test_istance.respond_to?(column) ? collection.model.human_attribute_name(column) : lato_index_dynamic_label({
|
87
87
|
key: key,
|
@@ -110,7 +110,7 @@ collection_total = collection.respond_to?(:total_count) ? collection.total_count
|
|
110
110
|
<% collection.each do |member| %>
|
111
111
|
<tr>
|
112
112
|
<% columns.each do |column| %>
|
113
|
-
<td class="lato-index-col-<%= column %>">
|
113
|
+
<td class="lato-index-desk-col-value lato-index-desk-col-value-<%= column %>">
|
114
114
|
<% viewer_function_name = "#{model_name_underscore}_#{column}" %>
|
115
115
|
<%= respond_to?(viewer_function_name) ? send(viewer_function_name, member) : (collection_test_istance.respond_to?(column) ? member.send(column) : lato_index_dynamic_value({
|
116
116
|
key: key,
|
data/lib/lato/version.rb
CHANGED