bullet_train-themes-light 1.0.33 → 1.0.34
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: 75be7e4e6b8010397346a40aa03f61a431625dbc864516891efca13a828d5a1b
|
4
|
+
data.tar.gz: e0d47fcfdb395d2c000f980371211816c1e1eee688d4b690e49218793dc1cf7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b93cc5f7a483f930c2f79554c6ab900a7dc6372d91202ecb783f4bca85d6b61245353a8307e91504218c2c1914e9c6b4510db2731b9e71318e4a9c561db9119d
|
7
|
+
data.tar.gz: 1da57f34dbc14bf084ce09053fb62c66dff4996e2048ee40820661eba454cfca225f7b65c8c959fa8b806e46a4c553cb9ae00d49a3db290aadb5ede65b836ffc
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<% yield p = np %>
|
2
|
+
|
3
|
+
<div class="border border-gray-300 rounded-md py-5 px-6 bg-gray-50 space-y">
|
4
|
+
<div class="space-y-2">
|
5
|
+
<% if p.content_for? :title %>
|
6
|
+
<h2 class="text-base font-semibold">
|
7
|
+
<%= p.content_for :title %>
|
8
|
+
</h2>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<% if p.content_for? :description %>
|
12
|
+
<p class="text-gray-400 font-light leading-normal">
|
13
|
+
<%= p.content_for :description %>
|
14
|
+
</p>
|
15
|
+
<% end %>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<% if p.content_for? :body %>
|
19
|
+
<div class="space-y">
|
20
|
+
<%= p.content_for :body %>
|
21
|
+
</div>
|
22
|
+
<% end %>
|
23
|
+
</div>
|
@@ -0,0 +1,91 @@
|
|
1
|
+
<div class="py-4 px-8 w-full space-y-3">
|
2
|
+
<div class="flex space-x-4">
|
3
|
+
<% if action.is_a?(Actions::TracksCreator) %>
|
4
|
+
<div class="flex-0">
|
5
|
+
<%= render "shared/memberships/photo", membership: action.created_by, size: 7 %>
|
6
|
+
</div>
|
7
|
+
<% end %>
|
8
|
+
<div class="flex-1">
|
9
|
+
<div class="flex">
|
10
|
+
<div class="flex-1 space-y-4 py-1">
|
11
|
+
<div>
|
12
|
+
<%= action.label_string %> on
|
13
|
+
<%= target_description = capture do %>
|
14
|
+
<% if action.is_a?(Actions::TargetsMany) %>
|
15
|
+
<% if action.target_all? %>
|
16
|
+
all Tangible Things
|
17
|
+
<% else %>
|
18
|
+
<% if action.target_ids.one? %>
|
19
|
+
<%= action.targeted.first.label_string %>
|
20
|
+
<% else %>
|
21
|
+
<%= action.target_ids.count %> <%= "Tangible Thing".pluralize(action.target_ids.count) %>
|
22
|
+
<% end %>
|
23
|
+
<% end %>
|
24
|
+
<% else %>
|
25
|
+
<%= action.targeted.label_string %>
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
<div class="flex-0">
|
31
|
+
<% if action.is_a?(Actions::RequiresApproval) %>
|
32
|
+
<% if can? :approve, action %>
|
33
|
+
<%= button_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.approve"), [:approve, :account, action], method: :post, class: 'button-secondary button-smaller' %>
|
34
|
+
<% end %>
|
35
|
+
<% end %>
|
36
|
+
<% if can? :read, action %>
|
37
|
+
<%= link_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.show"), [:account, action], class: 'button-secondary button-smaller' %>
|
38
|
+
<% end %>
|
39
|
+
<% if can? :edit, action %>
|
40
|
+
<%= link_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.edit"), [:edit, :account, action], class: 'button-secondary button-smaller' %>
|
41
|
+
<% end %>
|
42
|
+
<% if can? :destroy, action %>
|
43
|
+
<%= button_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.destroy"), [:account, action], method: :delete, data: { confirm: t("#{action.class.name.pluralize.underscore}.buttons.confirmations.destroy", model_locales(action)) }, class: 'button-secondary button-smaller' %>
|
44
|
+
<% end %>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<% if action.completed? %>
|
49
|
+
<% if action.is_a?(Actions::HasProgress) %>
|
50
|
+
<div class="uppercase text-xs text-gray-400">
|
51
|
+
Processed <%= action.performed_count %> of <%= action.target_count %> <%= display_date_and_time(action.completed_at) %>
|
52
|
+
</div>
|
53
|
+
<% else %>
|
54
|
+
<div class="uppercase text-xs text-gray-400">
|
55
|
+
Processed <%= display_date_and_time(action.completed_at) %>
|
56
|
+
</div>
|
57
|
+
<% end %>
|
58
|
+
|
59
|
+
<% elsif action.is_a?(Actions::RequiresApproval) && !action.approved? %>
|
60
|
+
<div class="uppercase text-xs text-gray-400">
|
61
|
+
Awaiting approval
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<% elsif action.is_a?(Actions::SupportsScheduling) && action.scheduled_for && !action.started? %>
|
65
|
+
<div class="uppercase text-xs text-gray-400">
|
66
|
+
Scheduled for <%= display_date_and_time(action.scheduled_for) %>
|
67
|
+
</div>
|
68
|
+
|
69
|
+
<% elsif action.is_a?(Actions::HasProgress) && action.started? %>
|
70
|
+
<div class="mt-3 h-4 bg-gray-100 shadow-inner rounded w-full">
|
71
|
+
<div class="h-4 animate-pulse bg-primary-500 rounded" style="width: <%= action.completion_percent %>%"></div>
|
72
|
+
</div>
|
73
|
+
|
74
|
+
<div class="mt-2 uppercase text-xs text-gray-400">
|
75
|
+
Processing <%= action.performed_count %> of <%= action.target_count %>
|
76
|
+
</div>
|
77
|
+
|
78
|
+
<% elsif action.is_a?(Actions::HasProgress) %>
|
79
|
+
<div class="uppercase text-xs text-gray-400">
|
80
|
+
Preparing to process <%= action.performed_count %> of <%= action.target_count %>
|
81
|
+
</div>
|
82
|
+
|
83
|
+
<% else %>
|
84
|
+
<div class="uppercase text-xs text-gray-400">
|
85
|
+
Preparing to process
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<% end %>
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
@@ -95,6 +95,8 @@ files:
|
|
95
95
|
- app/views/themes/light/_notices.html.erb
|
96
96
|
- app/views/themes/light/_page.html.erb
|
97
97
|
- app/views/themes/light/_title.html.erb
|
98
|
+
- app/views/themes/light/_well.html.erb
|
99
|
+
- app/views/themes/light/actions/_action.html.erb
|
98
100
|
- app/views/themes/light/attributes/_base.html.erb
|
99
101
|
- app/views/themes/light/attributes/_block.html.erb
|
100
102
|
- app/views/themes/light/billing/_pricing_table.html.erb
|
@@ -111,6 +113,7 @@ files:
|
|
111
113
|
- app/views/themes/light/layouts/_head.html.erb
|
112
114
|
- app/views/themes/light/layouts/_mailer.html.erb
|
113
115
|
- app/views/themes/light/layouts/_pricing.html.erb
|
116
|
+
- app/views/themes/light/memberships/_photo.html.erb
|
114
117
|
- app/views/themes/light/memberships/_photos.html.erb
|
115
118
|
- app/views/themes/light/menu/_heading.html.erb
|
116
119
|
- app/views/themes/light/menu/_item.html.erb
|