bullet_train-themes-light 1.6.21 → 1.6.22

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: a4e2cbb5d6d46e52703ce771f75e4f426d86496f9866b02785a440bee0aab600
4
- data.tar.gz: 2de36147c58718041183b2795e416326e0c06a97eacc2dee1880b6c43b31c1c3
3
+ metadata.gz: c717fe670e31f6df9053a83266ceb21b16062c6c37bed9bd518c7e68480a12ad
4
+ data.tar.gz: d17c49e9535b9b24de739fa6816bb7d8fed8f32da0a350cbfbe5ce83ec48dac5
5
5
  SHA512:
6
- metadata.gz: 72ab8724a5c1f6f68a86026f95a77b6e5fba35b5020426e65c5ed4f152d592cce138a1250f256069729f6f224d929838547dbe9ecadb6bf5fc140990768acc31
7
- data.tar.gz: a8d943bf4c40a0a008ac828503909e352b7f6ba21f52f49b1254a043f69132054b818bdbefea1b1e7816e0615ef40180492e374da06cb2d1895626344b758c75
6
+ metadata.gz: 0a315617e3b842576561fb5416607e0e51934a43bdfc0d0cd9da1274584e5f06deee646a6d12e571aa50437fcac00ab25e5a6c9a623ef1e40061ea336395bd68
7
+ data.tar.gz: d9c2237ea4f654d144f595f8d78bda4157f87f110e5f3b799f6613d56d809d692657e1805e9ae03664f5d828f782c7cdbaef16448d82f7c135d9e5b7393c741b
@@ -22,9 +22,9 @@
22
22
  <% if can? :read, action %>
23
23
  <%= link_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.show"), build_action_model_path(action), class: 'button-secondary button-smaller' %>
24
24
  <% end %>
25
- <% if can? :edit, action %>
25
+ <% if can?(:edit, action) && !action.started? %>
26
26
  <%= link_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.edit"), build_action_model_path(action, type: :edit), class: 'button-secondary button-smaller' %>
27
- <% end unless action.started_at # TODO This is the wrong way to do this, we need to do this in `roles.yml` when we can. %>
27
+ <% end %>
28
28
  <% if can? :destroy, action %>
29
29
  <%= button_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.destroy"), build_action_model_path(action), method: :delete, data: { confirm: t("#{action.class.name.pluralize.underscore}.buttons.confirmations.destroy", model_locales(action)) }, class: 'button-secondary button-smaller' %>
30
30
  <% end %>
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.6.21"
4
+ VERSION = "1.6.22"
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-light
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.21
4
+ version: 1.6.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-04 00:00:00.000000000 Z
11
+ date: 2023-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard