lato 0.1.37 → 0.1.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/lato/components/_index.html.erb +6 -6
- 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: c8947dc920c2ff430381a61dc716793c6f84041524b6e16ac377bc9107e515a1
|
4
|
+
data.tar.gz: 2e79a46022a54971859448b29484305b41d8c9f9b19dc6a45c4dcb09f526ac42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41fff5e87a6194c695752b447fb93c402461fed8bf0195ed481e7bd7e499f0ba5d5146d899ba0d03aca02883d3122639ee379f25abe2a8f71d314acb9b35c75f
|
7
|
+
data.tar.gz: 95fbbcf0a7f6d424a81969ad5eb0b60885af056e3350eda753dcef8cfc85cc6f4945cfef1e2084745c0c3118a89e6950c8652eaa2e87f7479686a135fe6eeda6
|
@@ -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 %>
|
@@ -44,13 +44,13 @@ collection_total = collection.respond_to?(:total_count) ? collection.total_count
|
|
44
44
|
<table class="table">
|
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