bullet_train-themes-light 1.0.40 → 1.0.44
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20c969201f79403cce0cba8cb5a2d640f69ee2eac4a3b9c7194b6115d090ee66
|
4
|
+
data.tar.gz: 8bacfd8bdc9af51ae1d5c9d4f7a7c9150caa015b34bd6235d82fd69af6a29495
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d682d968c52407f0ce55c5364653cf28e33aeb2c38b0f6f487c0362e9eaa02dac8c4a20a06a0d4970c7e0ca13bb2cb2cec35312d9e75b48b6e6473f316d64bfd
|
7
|
+
data.tar.gz: 3c5c2681752f776e9af8a373c8d3b581395e8b373c076175ff15a307b8a47c97d1328b81f63fb10e938c9c8c067c98ff926199243349001cc0f6b07c9f291dd5
|
@@ -1,25 +1,33 @@
|
|
1
1
|
<% yield p = np %>
|
2
2
|
|
3
|
-
<div class="border border-gray-300 dark:border-opacity-10 rounded-md
|
4
|
-
<% if p.content_for?(:title) || p.content_for?(:description) %>
|
5
|
-
<div class="space-y
|
6
|
-
<% if p.content_for?
|
7
|
-
<
|
8
|
-
|
9
|
-
|
3
|
+
<div class="border border-gray-300 dark:border-opacity-10 rounded-md bg-gray-50 dark:bg-opacity-10">
|
4
|
+
<% if p.content_for?(:title) || p.content_for?(:description) || p.content_for?(:body) %>
|
5
|
+
<div class="py-4 px-5 space-y">
|
6
|
+
<% if p.content_for?(:title) || p.content_for?(:description) %>
|
7
|
+
<div class="space-y-2">
|
8
|
+
<% if p.content_for? :title %>
|
9
|
+
<h2 class="text-base font-semibold">
|
10
|
+
<%= p.content_for :title %>
|
11
|
+
</h2>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% if p.content_for? :description %>
|
15
|
+
<p class="text-gray-400 font-light leading-normal">
|
16
|
+
<%= p.content_for :description %>
|
17
|
+
</p>
|
18
|
+
<% end %>
|
19
|
+
</div>
|
10
20
|
<% end %>
|
11
21
|
|
12
|
-
<% if p.content_for? :
|
13
|
-
<
|
14
|
-
<%= p.content_for :
|
15
|
-
</
|
22
|
+
<% if p.content_for? :body %>
|
23
|
+
<div class="space-y">
|
24
|
+
<%= p.content_for :body %>
|
25
|
+
</div>
|
16
26
|
<% end %>
|
17
27
|
</div>
|
18
28
|
<% end %>
|
19
29
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
</div>
|
24
|
-
<% end %>
|
30
|
+
<div>
|
31
|
+
<%= p.content_for :raw_body %>
|
32
|
+
</div>
|
25
33
|
</div>
|
@@ -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,8 +15,9 @@
|
|
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
|
-
<% if can?
|
20
|
+
<% if !action.approved? && 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' %>
|
19
22
|
<% end %>
|
20
23
|
<% end %>
|
@@ -52,8 +55,8 @@
|
|
52
55
|
</div>
|
53
56
|
|
54
57
|
<% elsif action.is_a?(Actions::HasProgress) && action.started? %>
|
55
|
-
<div class="mt-3
|
56
|
-
|
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
|
+
|
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.
|
4
|
+
version: 1.0.44
|
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-
|
11
|
+
date: 2022-07-21 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
|