bullet_train-themes-light 1.0.37 → 1.0.41

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: 3a9edbd6f9361ea3e63f1c1af36e74f8176c4a97a93e932b03e3a7860f748c52
4
- data.tar.gz: 952d211adc95c5cb6651b26c855ee0c8a3b1d35257076f48892e5724580def99
3
+ metadata.gz: 2ebc63a09541e262fdafb99a99650b178d8138c56835daf1a4deb99a71aef920
4
+ data.tar.gz: 989ac02949b28c05a0c96f5d35accfe71e98ff0f279bee7f7e176ce62e4d5260
5
5
  SHA512:
6
- metadata.gz: f246a927856ce8e7a685c43b2f48e3f1f65fa4ed2b998d002815c9164eb39d46572af9e61abcc5b7fb3f83c5aa94c7527cad006e40fec79ea0faae942d3cf3e5
7
- data.tar.gz: 28d74dea8a0cb56ae750688eb26102e36cb327efb76ce545f0f407fff1ed2b56c0a2c9f7e27413cd1795a1eb56ab652291d975ab03f7b816e4e5a005547e8d14
6
+ metadata.gz: 1f56c7c45903b51d0e641cec382029e19571871b04dba2b6bc303f2fc5a7e8cd2b6cf1f787e4ff283ed80326e1f33413b505eb066e59bf431b3966a4d00dbc81
7
+ data.tar.gz: 1c17ad1f2db8d6266d75d93e0b86c1ed1394185255468dfc185869dcc0f34f3873dfbe743a003ef869b446194873f864bff570b10d99baa53276a4b2b6b40efd
@@ -1,3 +1,5 @@
1
+ <% yield p = np %>
2
+
1
3
  <div class="py-4 px-8 w-full space-y-3">
2
4
  <div class="flex space-x-4">
3
5
  <% if action.is_a?(Actions::TracksCreator) %>
@@ -13,6 +15,7 @@
13
15
  </div>
14
16
  </div>
15
17
  <div class="flex-0">
18
+ <%= p.yield :actions if p.content_for? :actions %>
16
19
  <% if action.is_a?(Actions::RequiresApproval) %>
17
20
  <% if can? :approve, action %>
18
21
  <%= button_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.approve"), [:approve, :account, action], method: :post, class: 'button-secondary button-smaller' %>
@@ -52,8 +55,8 @@
52
55
  </div>
53
56
 
54
57
  <% elsif action.is_a?(Actions::HasProgress) && action.started? %>
55
- <div class="mt-3 h-4 bg-gray-100 shadow-inner rounded w-full">
56
- <div class="h-4 animate-pulse bg-primary-500 rounded" style="width: <%= action.completion_percent %>%"></div>
58
+ <div class="mt-3">
59
+ <%= render "shared/attributes/progress_bar", object: action, attribute: :performed_count, total: :target_count %>
57
60
  </div>
58
61
 
59
62
  <div class="mt-2 uppercase text-xs text-gray-400">
@@ -0,0 +1,21 @@
1
+ <% object ||= current_attributes_object %>
2
+ <% strategy ||= current_attributes_strategy || :none %>
3
+ <% url ||= nil %>
4
+ <% hide_completed ||= false %>
5
+
6
+ <% if object.send(total).present? %>
7
+ <% completion_percent = (object.send(attribute).to_f / object.send(total).to_f) * 100.0 %>
8
+
9
+ <% unless completion_percent == 100 && hide_completed %>
10
+ <%= render 'shared/attributes/attribute', object: object, attribute: "#{attribute}_over_#{total}".to_sym, strategy: strategy, url: url do %>
11
+ <% if completion_percent == 100 %>
12
+ <i class="fal fa-check ti ti-check text-green-500"></i>
13
+ <% else %>
14
+ <div class="h-4 bg-gray-100 shadow-inner rounded w-full">
15
+ <div class="h-4 <%= 'animate-pulse' unless completion_percent == 100 %> bg-primary-500 rounded" style="width: <%= completion_percent %>%"></div>
16
+ </div>
17
+ <% end %>
18
+ <% end %>
19
+ <% end %>
20
+ <% end %>
21
+
@@ -53,7 +53,7 @@ end
53
53
 
54
54
  <% # any error messages. %>
55
55
  <% if has_errors %>
56
- <p class="mt-1.5 text-xs text-red">
56
+ <p class="mt-1.5 text-xs text-red-600">
57
57
  <%= errors.map { |error| error + ". " }.join %>
58
58
  <%= yield :error %>
59
59
  <% flush_content_for :error %>
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.0.37"
4
+ VERSION = "1.0.41"
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.0.37
4
+ version: 1.0.41
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-07-02 00:00:00.000000000 Z
11
+ date: 2022-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -101,6 +101,7 @@ files:
101
101
  - app/views/themes/light/actions/_list.html.erb
102
102
  - app/views/themes/light/attributes/_base.html.erb
103
103
  - app/views/themes/light/attributes/_block.html.erb
104
+ - app/views/themes/light/attributes/_progress_bar.html.erb
104
105
  - app/views/themes/light/billing/_pricing_table.html.erb
105
106
  - app/views/themes/light/breadcrumbs/_actions.html.erb
106
107
  - app/views/themes/light/commentary/_box.html.erb
@@ -148,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
149
  - !ruby/object:Gem::Version
149
150
  version: '0'
150
151
  requirements: []
151
- rubygems_version: 3.3.7
152
+ rubygems_version: 3.2.22
152
153
  signing_key:
153
154
  specification_version: 4
154
155
  summary: 'Bullet Train Themes: Light'