bullet_train-themes-light 1.0.38 → 1.0.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/themes/light/_alert.html.erb +4 -4
- data/app/views/themes/light/_well.html.erb +24 -16
- data/app/views/themes/light/actions/_action.html.erb +6 -3
- data/app/views/themes/light/attributes/_progress_bar.html.erb +21 -0
- data/app/views/themes/light/fields/_field.html.erb +1 -1
- data/lib/bullet_train/themes/light/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 247e0645849fc300b51cd946e428ad6082abe86ec9e1ed4927c5e7f2e404aa64
|
4
|
+
data.tar.gz: 794a0ac9cef5249ef03d8f81a63cbeb4f5dc0b1be5aced96ed7488a40f8afe3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7ea23ccfde6dc78b949db78a5c4a8438cb1507693ae0a5222f4b95bff7bc764fe3bc16daf6adf5596c1ae941ef071991fbfbeba3695a89a38d7c15afb836eb0
|
7
|
+
data.tar.gz: d0966f407fa9d8dd42486f5dbf2300aa959d73864ce3a87d1e5406d6c599c173225ca1feea29790dc615826a616291e781888a09646082d449395bbd66ed0873
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<% color ||= 'yellow' %>
|
2
2
|
|
3
|
-
<div class="rounded-md bg-<%= color %>-
|
4
|
-
<h3 class="text-sm text-<%= color %>-600 font-light">
|
3
|
+
<div class="rounded-md bg-<%= color %>-400 border border-<%= color %>-500 py-4 px-5 mb-3">
|
4
|
+
<h3 class="text-sm text-<%= color %>-600 text-<%= color %>-600 font-light">
|
5
5
|
<%= yield %>
|
6
6
|
</h3>
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<% # we have to list out the evaluations we want possible above so purgecss includes them in production. %>
|
10
10
|
<% if false %>
|
11
|
-
<div class="bg-yellow-
|
12
|
-
<div class="bg-red-
|
11
|
+
<div class="bg-yellow-400 border-yellow-500 dark:border-yellow-200 text-yellow-600 dark:text-yellow-200"></div>
|
12
|
+
<div class="bg-red-400 border-red-500 dark:border-red-200 text-red-600 dark:text-red-200"></div>
|
13
13
|
<% end %>
|
@@ -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
|
+
|
@@ -17,7 +17,7 @@ has_errors = errors.any? || content_for(:error).present? || other_options[:error
|
|
17
17
|
options[:class] = "#{options[:class]} block w-full rounded-md shadow-sm font-light text-sm"
|
18
18
|
|
19
19
|
options[:class] += if has_errors
|
20
|
-
" pr-10 border-red-
|
20
|
+
" pr-10 border-red-500 text-red-900 placeholder-red-500 focus:outline-none focus:ring-red-500 focus:border-red-500 dark:bg-darkPrimary-800 dark:text-darkPrimary-300"
|
21
21
|
else
|
22
22
|
" focus:ring-primary-500 focus:border-primary-500 border-gray-300 dark:bg-darkPrimary-800 dark:border-darkPrimary-900 dark:text-darkPrimary-300"
|
23
23
|
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.
|
4
|
+
version: 1.0.42
|
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
|