tybo 0.0.38 → 0.0.40

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: 99557e47d47ae93efa3be536ac6f13e8bce6993f1d1e49c0b22f8c9333e55f0a
4
- data.tar.gz: 252e756f4e1436b0bb975e8af283dcb5604103b22d837987e5fac9746bbd01be
3
+ metadata.gz: fe1a3a1cb71b4dee7e4f1b20f1c7f68cb255c5ee6ccb111c3c78a258946b93b6
4
+ data.tar.gz: f5e0552c09e34de629338efc300f2f2dc7d9c480e34a9cdd54750af6f45e711c
5
5
  SHA512:
6
- metadata.gz: 675cbbd35136484b36933a3f425032bafb9f0fd70987c4d7771fdbd14b2124692dba79d206edbf496d63a0d38ef0f2eaba9c15984b786f6f10d0cc3cb67df3b2
7
- data.tar.gz: 668b61e903ab1f30c6ffdcedd54824bb87c7156872cb7aa6deb8bbbc7fb8a652e831dce36657767d201613a579e78704b85314db308aded1c62cda35838e56f3
6
+ metadata.gz: 80604e36494268cc561093a2b09f1cb8f31dde3e71a5b727d6f2b211245898ad08e1e6c2917506a467848daf77e55abbf4907b822c362aa626b23ab3b7fc68d3
7
+ data.tar.gz: 0c5e58422f0e1a98bb7602a9c82f9617ea202e221fd5f9d3185e7f22691999652412c4599e3abf732558f6f42a70eedf41d4be466ea4ef5c92ae90891b82569c
@@ -8,7 +8,7 @@
8
8
  <%= @form.date_field @from_field, data: { action: "input->search-form#search" }, class: "rounded-md border-gray-300 shadow-sm focus:border-tybo-500 focus:ring-tybo-500 sm:text-sm" %>
9
9
  </div>
10
10
  <div class="mt-1 sm:col-span-2 text-center">
11
- to
11
+ <%= I18n.t('bo.to') %>
12
12
  </div>
13
13
  <div class="mt-1 sm:col-span-3 sm:mt-0">
14
14
  <%= @form.date_field @to_field, data: { action: "input->search-form#search" }, class: "rounded-md border-gray-300 shadow-sm focus:border-tybo-500 focus:ring-tybo-500 sm:text-sm" %>
@@ -1,36 +1,32 @@
1
1
  <% link = pagy_link_proc(pagy) -%>
2
2
  <nav class="mx-auto mt-6 flex max-w-7xl justify-between px-4 text-sm font-medium text-gray-700 sm:px-6 lg:px-8" role="navigation">
3
-
4
3
  <% if pagy.prev -%>
5
4
  <div class="min-w-0 flex-1">
6
- <%== link.call(pagy.prev, pagy_t('pagy.nav.prev'), 'aria-label="previous" class="inline-flex h-10 items-center rounded-md border border-gray-300 bg-white px-4 hover:bg-gray-100 focus:border-tybo-600 focus:outline-none focus:ring-2 focus:ring-tybo-600 focus:ring-opacity-25 focus:ring-offset-1 focus:ring-offset-tybo-600""') %>
5
+ <%== link.call(pagy.prev, I18n.t('bo.nav.prev'), 'aria-label="previous" class="inline-flex h-10 items-center rounded-md border border-gray-300 bg-white px-4 hover:bg-gray-100 focus:border-tybo-600 focus:outline-none focus:ring-2 focus:ring-tybo-600 focus:ring-opacity-25 focus:ring-offset-1 focus:ring-offset-tybo-600""') %>
7
6
  </div>
8
7
  <% else -%>
9
8
  <div class="min-w-0 flex-1">
10
- <%== link.call(pagy.next, pagy_t('pagy.nav.prev'), 'aria-label="next" class="hidden"') %>
9
+ <%== link.call(pagy.prev, I18n.t('bo.nav.prev'), 'aria-label="previous" class="hidden"') %>
11
10
  </div>
12
11
  <% end -%>
13
- <% if pagy.next -%>
14
12
  <% pagy.series.each do |item| # series example: [1, :gap, 7, 8, "9", 10, 11, :gap, 36] -%>
15
13
  <% if item.is_a?(Integer) -%>
16
- <%== link.call(item, item, 'class="inline-flex h-10 items-center rounded-md border border-gray-300 bg-white px-4 hover:bg-gray-100 focus:border-tybo-600 focus:outline-none focus:ring-2 focus:ring-tybo-600 focus:ring-opacity-25 focus:ring-offset-1 focus:ring-offset-tybo-600"') %>
14
+ <%== link.call(item, item, 'class="inline-flex h-10 items-center rounded-md border border-gray-300 bg-white px-4 hover:bg-gray-100 focus:border-tybo-600 focus:outline-none focus:ring-2 focus:ring-tybo-600 focus:ring-opacity-25 focus:ring-offset-1 focus:ring-offset-tybo-600"') %>
17
15
  <% elsif item.is_a?(String) -%>
18
16
  <%== link.call(item, item, 'class="toto inline-flex h-10 items-center rounded-md border border-tybo-600 bg-white px-4 ring-1 ring-tybo-600 hover:bg-gray-100 focus:border-tybo-600 focus:outline-none focus:ring-2 focus:ring-tybo-600 focus:ring-opacity-25 focus:ring-offset-1 focus:ring-offset-tybo-600"') %>
19
17
  <% elsif item == :gap -%>
20
18
  <span class="inline-flex h-10 items-center px-1.5 text-gray-500">
21
- <%== pagy_t('pagy.nav.gap') %>
19
+ <%== I18n.t('bo.nav.gap') %>
22
20
  </span>
23
21
  <% end -%>
24
22
  <% end -%>
25
- <% end -%>
26
-
27
23
  <% if pagy.next -%>
28
24
  <div class="flex min-w-0 flex-1 justify-end">
29
- <%== link.call(pagy.next, pagy_t('pagy.nav.next'), 'aria-label="next" class="inline-flex h-10 items-center rounded-md border border-gray-300 bg-white px-4 hover:bg-gray-100 focus:border-tybo-600 focus:outline-none focus:ring-2 focus:ring-tybo-600 focus:ring-opacity-25 focus:ring-offset-1 focus:ring-offset-tybo-600"') %>
25
+ <%== link.call(pagy.next, I18n.t('bo.nav.next'), 'aria-label="next" class="inline-flex h-10 items-center rounded-md border border-gray-300 bg-white px-4 hover:bg-gray-100 focus:border-tybo-600 focus:outline-none focus:ring-2 focus:ring-tybo-600 focus:ring-opacity-25 focus:ring-offset-1 focus:ring-offset-tybo-600"') %>
30
26
  </div>
31
27
  <% else -%>
32
28
  <div class="flex min-w-0 flex-1 justify-end">
33
- <%== link.call(pagy.next, pagy_t('pagy.nav.next'), 'aria-label="next" class="hidden"') %>
29
+ <%== link.call(pagy.next, I18n.t('bo.nav.next'), 'aria-label="next" class="hidden"') %>
34
30
  </div>
35
31
  <% end -%>
36
32
  </nav>
@@ -17,5 +17,9 @@
17
17
  "destroyed": "Suppression effectuée",
18
18
  "filters": "Filtres",
19
19
  "confirm_delete": "Êtes-vous sûr ?",
20
- "details": "Détails"
20
+ "details": "Détails",
21
+ "to": "à",
22
+ "next": "Suivant",
23
+ "prev": "Précédent",
24
+ "gap": "..."
21
25
  }
@@ -9,11 +9,17 @@ def create_translations
9
9
  'bo' => {
10
10
  'filters' => find_existing_translation('filters', local),
11
11
  'details' => find_existing_translation('details', local),
12
+ 'to' => find_existing_translation('to', local),
12
13
  'confirm_delete' => find_existing_translation('confirm_delete', local),
13
14
  'record' => {
14
15
  'created' => find_existing_translation('created', local),
15
16
  'updated' => find_existing_translation('updated', local),
16
- 'destroyed' => find_existing_translation('destroyed', local)
17
+ 'destroyed' => find_existing_translation('destroyed', local),
18
+ 'nav' => {
19
+ 'prev' => find_existing_translation('prev', local),
20
+ 'next' => find_existing_translation('next', local),
21
+ 'gap' => find_existing_translation('gap', local)
22
+ }
17
23
  }
18
24
  }
19
25
  }
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.0.38'
2
+ VERSION = '0.0.40'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tybo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.38
4
+ version: 0.0.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Delpierre
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-04-03 00:00:00.000000000 Z
12
+ date: 2023-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -294,7 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
294
294
  - !ruby/object:Gem::Version
295
295
  version: '0'
296
296
  requirements: []
297
- rubygems_version: 3.0.3.1
297
+ rubygems_version: 3.3.7
298
298
  signing_key:
299
299
  specification_version: 4
300
300
  summary: A tailwind custom admin engine for Ruby on Rails