lato 0.1.36 → 0.1.37

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: 26a09a09607c42a7c3908638a3b72f46e897c6313a99d8685ca4642b466c3dd1
4
- data.tar.gz: bb5a56a86eb94b574b0b4f9ca0f4ffb35b4c18065ed3cec882da41d8c9ff612e
3
+ metadata.gz: 0463c61f14b12b4a5d40dec5484589d2d24b478aa884718b079a1f3707b1f34c
4
+ data.tar.gz: 6217a89caf09b1a915d29817ce90b5d9b0801130ed4c9543ec7702b62e51dff1
5
5
  SHA512:
6
- metadata.gz: 903bc9c0bdffcabe8ba4c78a6e788ccc4ee5f9937bc3ce0828d252f4a0a5969d9d6968c89fc7a5a5c9de3beef60380d919d6fc649e00481e61a4523cd395e57b
7
- data.tar.gz: 100cf1fd0c49e47ae3c2247dbb9b5af503b3ecfdc4bb61c08530e2e3dfe2e72987042b098f3d51865e5c329d042f4b02b8d19e89f5419bb5fa778a20d688913d
6
+ metadata.gz: 023ff6442934328a8e335a117ed093dd39a5384d416542fd050ce7d9b1ecce51f5db715610756fde0220d8a1f8ce209226b120ca824e95364a088b504577fe7c
7
+ data.tar.gz: eb553fca9c7923f2758ef8bfeed72e7e3123da9ccea9eea52edfa20dbd3cceb0688a239d736fc94393207df7de9de80252adb21a4f7479e7955174285d7d0981
@@ -1,6 +1,7 @@
1
1
  <%
2
2
 
3
3
  collection_test_istance = collection.model.new
4
+ collection_total = collection.respond_to?(:total_count) ? collection.total_count : collection.count
4
5
 
5
6
  %>
6
7
 
@@ -39,8 +40,8 @@ collection_test_istance = collection.model.new
39
40
 
40
41
  <ul class="list-group list-group-flush">
41
42
  <% collection.each do |member| %>
42
- <li class="list-group-item p-0 border-0">
43
- <table class="table table-bordered">
43
+ <li class="list-group-item p-2 border-0 bg-light mb-3 rounded">
44
+ <table class="table">
44
45
  <tbody>
45
46
  <% columns.each do |column| %>
46
47
  <tr>
@@ -67,7 +68,7 @@ collection_test_istance = collection.model.new
67
68
  </ul>
68
69
 
69
70
  <div class="d-flex flex-column align-items-center">
70
- <span class="text-muted"><%= collection.count %> <%= I18n.t('lato.viewed_results').downcase %>
71
+ <span class="text-muted"><%= collection_total %> <%= I18n.t('lato.total_results').downcase %></span>
71
72
  <% if collection.respond_to?(:total_pages) %>
72
73
  <div class="mt-3"><%= paginate collection %></div>
73
74
  <% end %>
@@ -131,7 +132,7 @@ collection_test_istance = collection.model.new
131
132
  <% else %>
132
133
  <div></div>
133
134
  <% end %>
134
- <span class="text-muted"><%= collection.count %> <%= I18n.t('lato.viewed_results').downcase %>
135
+ <span class="text-muted"><%= collection_total %> <%= I18n.t('lato.total_results').downcase %></span>
135
136
  </div>
136
137
  </td>
137
138
  </tr>
@@ -20,7 +20,7 @@ en:
20
20
  update_password: Update password
21
21
  confirm: Confirm
22
22
  search_for: Search for
23
- viewed_results: Results viewed
23
+ total_results: Total results
24
24
  account_informations: Account informations
25
25
  verify_email: Verify email
26
26
  email_verified: Verified
@@ -22,7 +22,7 @@ it:
22
22
  update_password: Aggiornamento password
23
23
  confirm: Conferma
24
24
  search_for: Ricerca per
25
- viewed_results: Risultati visualizzati
25
+ total_results: Risultati totali
26
26
  account_informations: Informazioni account
27
27
  verify_email: Verifica email
28
28
  email_verified: Verificato
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.36"
2
+ VERSION = "0.1.37"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.36
4
+ version: 0.1.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-02 00:00:00.000000000 Z
11
+ date: 2023-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails