bullet_train-themes-light 1.0.40 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbd2f901e69dc62f92c7c5bc6aa649169ce0f131ce0ab905b5a01fbd061e4418
4
- data.tar.gz: c0ac391167822a7eae670071c2516404908d3d144ebba94a86bd0aa7805a2353
3
+ metadata.gz: 2ebc63a09541e262fdafb99a99650b178d8138c56835daf1a4deb99a71aef920
4
+ data.tar.gz: 989ac02949b28c05a0c96f5d35accfe71e98ff0f279bee7f7e176ce62e4d5260
5
5
  SHA512:
6
- metadata.gz: 4b8af6edac8e084e21182f61eda8be33ba6d26d75bef60aedd699cf8d435d796db7c7ba630e7be2cf8d2b876cc27e3ae8d9f7c5fc7de33a27f62c2fe72e2daeb
7
- data.tar.gz: 7dd0a6d4cb5ccbe827799bb06a416259846bf01ede5c9072e722ffb635e511068328f58a4376a301c4b1a46c6580a42086134c54ffe2bc7a5791af926e4f36e9
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
+
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.0.40"
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.40
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-04 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'