bullet_train-themes-light 1.6.20 → 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: af515e251a821c828b37e88dd92bf57c26d6e3fec21581d669a814677195fcc6
4
- data.tar.gz: 862cddd6dfe49882faac21cc5cea9cc83bd7a520bdd1a3b9d2f499e253fd0eba
3
+ metadata.gz: c717fe670e31f6df9053a83266ceb21b16062c6c37bed9bd518c7e68480a12ad
4
+ data.tar.gz: d17c49e9535b9b24de739fa6816bb7d8fed8f32da0a350cbfbe5ce83ec48dac5
5
5
  SHA512:
6
- metadata.gz: e732d39e0a71408c705ad4740be6fccf45b3c44fb530d6d0321222e10feaf96de9556e8d9fffc345ed5d1f0606cb437a352656cb5d73e56a2f7e3c4447303f8a
7
- data.tar.gz: 0fb20a92022d58fe63c338081941fcb6351d38f0c4182a90396afaf2ba1912177f91e5088c2184844c68fb7bf3a03874e762ac3b1cd845190fde6497d1d25819
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 %>
@@ -5,7 +5,7 @@
5
5
  <div class="sm:bg-white py-8 px-10 sm:shadow sm:dark:shadow-lg rounded-lg sm:dark:bg-slate-700 dark:bg-opacity-80">
6
6
  <div class="sm:mx-auto sm:w-full sm:max-w-md py-5">
7
7
  <a href="<%= main_app.root_path %>" class="block py-3">
8
- <img alt="" src="<%= image_path("logo/logo.png") %>" width="<%= image_width_for_height("logo/logo.png", BulletTrain::Themes.logo_height) %>" height="<%= BulletTrain::Themes.logo_height %>" class="theme-logo mx-auto h-12 w-auto" />
8
+ <img alt="" src="<%= image_path("logo/logo.png") %>" width="<%= image_width_for_height("logo/logo.png", BulletTrain::Themes.logo_height) %>" height="<%= BulletTrain::Themes.logo_height %>" class="theme-logo mx-auto" />
9
9
  </a>
10
10
 
11
11
  <h1 class="mt-6 text-center text-3xl font-semibold tracking-tight dark:text-white">
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.6.20"
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.20
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-11-29 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