tybo 0.0.35 → 0.0.36

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: 1f1a040c49efef7ae924cde3a0bc4cd77622fc8920bd8d376d891c015859c4fa
4
- data.tar.gz: 2236e0ffe3cf5ff30613aa801c00f341abd8786872ba92ed379c1f196d167869
3
+ metadata.gz: 036cdcc280ede0327d1bcbe692a18d1569265fc78292805d28a4dfbdd65ee9ef
4
+ data.tar.gz: 8fc3de9a562d1e81cd41193fd229182eacbfed5f1f5ab8dbcaa183b53d84a364
5
5
  SHA512:
6
- metadata.gz: 293a5d9bd5d672671cf4f8cee78a6c641df9bf105e7b262221bfcac4bec6c0961d7b3e982061bbef2e7d5373d69deb3ac10b2496ec43f2e2df6c80aee8df732f
7
- data.tar.gz: a992ebe8fd5f0bc3bedb135402c126db152f33bcc21a26503398ba05f8320b9ca6748c442d40b7e514685213b75d82236d255c4d12181cf254e2fb9ff77a4ec8
6
+ metadata.gz: 5b6e068ca9110bc095adbff483c08710ff87e7987d372723c1f2a38ef7b86d35585bdd34f7520caafcb0e8c5fa6add2620725c8cf2c3887c550147bef641fcb8
7
+ data.tar.gz: 04ef441ff6cb1d0a89b736b2191a91b5bc8c9c73414a7f1a85d6f3d7962b38297ea70a09677a6aa378196a7016da51313d3353066103d866e4a5f837cd8b4739
@@ -17,7 +17,7 @@
17
17
  </div>
18
18
 
19
19
  <div class="flex-shrink-0 pr-2">
20
- <%= button_tag type: :button, data: { controller: "attachments", attachments_method_value: 'delete', attachments_url_value: remove_attachment_admin_thematic_path(@attachment.record), attachments_attachment_id_value: @attachment.id, action: "click->attachments#toggle" } do %>
20
+ <%= button_tag type: :button, data: { controller: "attachments", attachments_method_value: 'delete', attachments_url_value: @url, attachments_attachment_id_value: @attachment.id, action: "click->attachments#toggle" } do %>
21
21
  <span class="sr-only">Delete</span>
22
22
  <%= render(Icons::TrashComponent.new) %>
23
23
  <% end %>
@@ -9,7 +9,7 @@
9
9
  <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
10
10
  </svg>
11
11
  <% end %>
12
- <a href="<%= item[:path] %>" class="<%= 'ml-4' unless i.zero? %> text-sm font-medium text-gray-500 hover:text-gray-700">
12
+ <a href="<%= item[:path] %>" data-turbo-frame="_top" class="<%= 'ml-4' unless i.zero? %> text-sm font-medium text-gray-500 hover:text-gray-700">
13
13
  <%= item[:label] %>
14
14
  </a>
15
15
  </div>
@@ -10,7 +10,7 @@
10
10
  <!-- Search Bar -->
11
11
  <%%= render('search_bar') %>
12
12
  <!-- Table -->
13
- <%%= turbo_frame_tag "<%= class_name.underscore.pluralize %>", class: "shadow overflow-hidden rounded border-b border-gray-200" do %>
13
+ <%%= turbo_frame_tag "<%= class_name.underscore.pluralize %>", target: '_top', class: "shadow overflow-hidden rounded border-b border-gray-200" do %>
14
14
  <%%= render('table') %>
15
15
  <div class="py-2">
16
16
  <%%== render partial: 'shared/pagination', locals: { pagy: @pagy } %>
@@ -25,8 +25,10 @@ def create_translations
25
25
  data[local]['bo'][file_name.underscore] = {
26
26
  'one' => find_existing_translation(bo_model.to_s.downcase, local),
27
27
  'others' => find_existing_translation(bo_model.to_s.pluralize.downcase, local),
28
+ 'new' => find_existing_translation(bo_model.to_s.pluralize.downcase, local),
28
29
  'subtitle' => find_existing_translation("list of #{bo_model.to_s.pluralize.downcase}", local),
29
30
  'attributes' => model_attributes(data, local)
31
+
30
32
  }
31
33
  output = YAML.dump data
32
34
  File.write(locale_file, output)
@@ -9,6 +9,6 @@ class <%= class_name %>Controller < ApplicationController
9
9
  private
10
10
 
11
11
  def namespace
12
- @namespace ||= Bo::<%= class_name %>.pluralize
12
+ @namespace ||= Bo::<%= class_name.pluralize %>
13
13
  end
14
14
  end
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.0.35'
2
+ VERSION = '0.0.36'
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.35
4
+ version: 0.0.36
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-03-28 00:00:00.000000000 Z
12
+ date: 2023-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails