bullet_train-themes-tailwind_css 1.2.9 → 1.2.10

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: ecf76d5660bff5dc6c9a82c0a8121797ce6a1b8a51a484a871b3de752aac6942
4
- data.tar.gz: 5950ae449a1a3808664e625459b98f5687956f5e6f3e369e7a8c6c289fc4bd93
3
+ metadata.gz: 2db66abce8ab3b387e6084380ad70aabe5ee2f90b58192de70fad382b17fdcb1
4
+ data.tar.gz: 4e476351ba67b4845a60d95b620a17ce20242262de2e07174f50897ed0382063
5
5
  SHA512:
6
- metadata.gz: 19275c7cae11de2beaac70b246068385129512f67f3107442b621caf73ae4e03df5ee3ba5f73a78e33b41bc8013513f9557460d4a125469e615fd18b75b50291
7
- data.tar.gz: ace891c3a500a3c0aca89211fcdd4a93c4279c73d06a534cb398be3bdf6b69551366e863b8f5ae1150bc97e291c86df2731024383e0615c4a6758fbccffc6563
6
+ metadata.gz: dd1d1331091f7511c8470e3d89bd22ed10bb2349a9b7c9477128135f7d1f29132f3f984f47a5d3ebd74b80e2a833a99981b2a704da0952db50e8c584c9f229d7
7
+ data.tar.gz: 9fa00ec24dc7bab57c61ccaf1de3bf89e0c6d3fd2582b37b8dc1f02518a63f3a065f55f385c977c6cf66fb8f919beb9822d557c83da7d9c50226f83e3c6ed63b
@@ -1 +1,14 @@
1
- <%= yield %>
1
+ <% model ||= form.object %>
2
+ <% count ||= 1 %>
3
+ <% color ||= "red" %>
4
+ <% cancel_path ||= nil %>
5
+
6
+ <% if model.persisted? || current_limits.can?(:create, model.class, count: count) %>
7
+ <%= yield %>
8
+ <% else %>
9
+ <%= render "shared/limits/error", action: :create, model: model.class, count: count, color: color, cancel_path: cancel_path %>
10
+
11
+ <fieldset class="form-wrapper pt-2" disabled>
12
+ <%= yield %>
13
+ </fieldset>
14
+ <% end %>
@@ -0,0 +1,8 @@
1
+ <% model ||= @records.model %>
2
+ <% color ||= "red" %>
3
+
4
+ <% if current_limits.exhausted?(model) %>
5
+ <div class="pt-3">
6
+ <%= render "shared/limits/error", model: model, color: color, count: 0 %>
7
+ </div>
8
+ <% end %>
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module TailwindCss
4
- VERSION = "1.2.9"
4
+ VERSION = "1.2.10"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes-tailwind_css
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.9
4
+ version: 1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-28 00:00:00.000000000 Z
11
+ date: 2022-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []
120
- rubygems_version: 3.3.7
120
+ rubygems_version: 3.4.1
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Bullet Train Themes Tailwind CSS Base