tybo 0.0.39 → 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: d26ae2b2463d0b28e75f5f46bd3a0caf244375b64b5538a4979da1b3d9637ba8
4
- data.tar.gz: 6fb17e7c453c2120c95a4e9a745ef111bbae6f6a64da6fe7ffbe0eb921bd84a7
3
+ metadata.gz: fe1a3a1cb71b4dee7e4f1b20f1c7f68cb255c5ee6ccb111c3c78a258946b93b6
4
+ data.tar.gz: f5e0552c09e34de629338efc300f2f2dc7d9c480e34a9cdd54750af6f45e711c
5
5
  SHA512:
6
- metadata.gz: 3dfce6fdf4c9e18cae0d0cfb6990b11689ab68382a9fcd31c74896c140ff9616357372c1694e0925f2c3210de17caf0844885419043351baaff7c4a2d318678e
7
- data.tar.gz: b2fadb843137990b5b50385a8a235318b232b56c9594870172711ff760ee7c5669c7f0dd4f84eca8b2848fc8bff0d9cbac910d0f313502f385d7f76972f6d5a3
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,34 +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
12
  <% pagy.series.each do |item| # series example: [1, :gap, 7, 8, "9", 10, 11, :gap, 36] -%>
14
13
  <% if item.is_a?(Integer) -%>
15
- <%== 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"') %>
16
15
  <% elsif item.is_a?(String) -%>
17
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"') %>
18
17
  <% elsif item == :gap -%>
19
18
  <span class="inline-flex h-10 items-center px-1.5 text-gray-500">
20
- <%== pagy_t('pagy.nav.gap') %>
19
+ <%== I18n.t('bo.nav.gap') %>
21
20
  </span>
22
21
  <% end -%>
23
22
  <% end -%>
24
-
25
23
  <% if pagy.next -%>
26
24
  <div class="flex min-w-0 flex-1 justify-end">
27
- <%== 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"') %>
28
26
  </div>
29
27
  <% else -%>
30
28
  <div class="flex min-w-0 flex-1 justify-end">
31
- <%== 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"') %>
32
30
  </div>
33
31
  <% end -%>
34
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.39'
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.39
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