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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0463c61f14b12b4a5d40dec5484589d2d24b478aa884718b079a1f3707b1f34c
4
- data.tar.gz: 6217a89caf09b1a915d29817ce90b5d9b0801130ed4c9543ec7702b62e51dff1
3
+ metadata.gz: e0abfeb278039b9f9bbe46997987eb13445868c970b380ac534cb907bf29f772
4
+ data.tar.gz: 3c1245e51048ce9954cd88ed89341a4e66d692d1fd9f5a6acd95632702921cec
5
5
  SHA512:
6
- metadata.gz: 023ff6442934328a8e335a117ed093dd39a5384d416542fd050ce7d9b1ecce51f5db715610756fde0220d8a1f8ce209226b120ca824e95364a088b504577fe7c
7
- data.tar.gz: eb553fca9c7923f2758ef8bfeed72e7e3123da9ccea9eea52edfa20dbd3cceb0688a239d736fc94393207df7de9de80252adb21a4f7479e7955174285d7d0981
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-col-<%= column %>">
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
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.37"
2
+ VERSION = "0.1.39"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.37
4
+ version: 0.1.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante