spree_vpago 2.1.7.pre.pre2 → 2.1.7.pre.pre4
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7fb748d948f3b82c5870b7a713394535018ef00ddaadfbfdeedc2138ba7d1b82
|
|
4
|
+
data.tar.gz: 858bdf85bfb34d0665a8ef8642b887fe60e9f3add44b5d55c54835819dad8a78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50fd1b821279a1f732dc592b026d06aad018b7add228cbad342534c2b042fecef861d62e6c40108a53bff01bea4d23e957d0ebad6854f834c552d7abf845c550
|
|
7
|
+
data.tar.gz: e17f82372c65dd9a00ffa27f4d10ab7e454baf35add04a5c70ca6bf67bd776d70108ac7b60356694ea9b7ff1fe37e7ac41687cb2c0a7e538567f0cda21f4f841
|
data/Gemfile.lock
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
module Vpago
|
|
4
4
|
module LogEntryDecorator
|
|
5
5
|
def parsed_details
|
|
6
|
-
@
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
@parsed_details ||= if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1.0')
|
|
7
|
+
YAML.safe_load(details, permitted_classes: permitted_classes_for_yaml, aliases: true)
|
|
8
|
+
else
|
|
9
|
+
YAML.safe_load(details, permitted_classes_for_yaml)
|
|
10
|
+
end
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
private
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!-- replace "#listing_log_entries" -->
|
|
2
|
+
|
|
3
|
+
<div class="bg-white border rounded table-responsive">
|
|
4
|
+
<table class="table" id='listing_log_entries'>
|
|
5
|
+
<% @log_entries.each do |entry| %>
|
|
6
|
+
<thead class="text-muted">
|
|
7
|
+
<tr class="log_entry <%= entry.parsed_details.success? ? 'success' : 'fail' %>">
|
|
8
|
+
<td colspan="2">
|
|
9
|
+
<h4>
|
|
10
|
+
<i class="icon icon-<%= entry.parsed_details.success? ? 'save' : 'cancel' %>"></i>
|
|
11
|
+
<%= pretty_time(entry.created_at) %>
|
|
12
|
+
</h4>
|
|
13
|
+
</td>
|
|
14
|
+
</tr>
|
|
15
|
+
</thead>
|
|
16
|
+
<tbody>
|
|
17
|
+
<tr>
|
|
18
|
+
<td>Message</td>
|
|
19
|
+
<td><%= entry.parsed_details.message %></td>
|
|
20
|
+
</tr>
|
|
21
|
+
|
|
22
|
+
<% if entry.parsed_details.params.present? %>
|
|
23
|
+
<tr>
|
|
24
|
+
<td>Details</td>
|
|
25
|
+
<td>
|
|
26
|
+
<button type="button"
|
|
27
|
+
class="btn btn-sm btn-outline-secondary"
|
|
28
|
+
data-toggle="modal"
|
|
29
|
+
data-target="#detailsModal-<%= entry.id %>">
|
|
30
|
+
View Details
|
|
31
|
+
</button>
|
|
32
|
+
|
|
33
|
+
<!-- Modal -->
|
|
34
|
+
<div class="modal fade" id="detailsModal-<%= entry.id %>" tabindex="-1" role="dialog" aria-labelledby="detailsModalLabel-<%= entry.id %>" aria-hidden="true">
|
|
35
|
+
<div class="modal-dialog modal-lg" role="document">
|
|
36
|
+
<div class="modal-content">
|
|
37
|
+
<div class="modal-header">
|
|
38
|
+
<h5 class="modal-title" id="detailsModalLabel-<%= entry.id %>">
|
|
39
|
+
Payment Details - <%= pretty_time(entry.created_at) %>
|
|
40
|
+
</h5>
|
|
41
|
+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
42
|
+
<span aria-hidden="true">×</span>
|
|
43
|
+
</button>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="modal-body" style="max-height: 500px; overflow-y: auto;">
|
|
46
|
+
<% entry.parsed_details.params.each do |key, value| %>
|
|
47
|
+
<div class="mb-4">
|
|
48
|
+
<h6 class="text-muted"><%= key.to_s.titleize %></h6>
|
|
49
|
+
<pre class="p-3 border rounded bg-light" style="max-height: 300px; overflow-y: auto;"><%= JSON.pretty_generate(value) rescue value.inspect %></pre>
|
|
50
|
+
</div>
|
|
51
|
+
<% end %>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="modal-footer">
|
|
54
|
+
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</td>
|
|
60
|
+
</tr>
|
|
61
|
+
<% end %>
|
|
62
|
+
</tbody>
|
|
63
|
+
<% end %>
|
|
64
|
+
</table>
|
|
65
|
+
</div>
|
|
66
|
+
|
data/lib/spree_vpago/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_vpago
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.7.pre.
|
|
4
|
+
version: 2.1.7.pre.pre4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- You
|
|
@@ -224,6 +224,7 @@ files:
|
|
|
224
224
|
- app/overrides/spree/admin/adjustments/_adjustment/handle_by_table_body.html.erb.deface
|
|
225
225
|
- app/overrides/spree/admin/adjustments/_adjustments_table/handle_by_table_header.html.erb.deface
|
|
226
226
|
- app/overrides/spree/admin/adjustments/_form/handle_by_field.html.erb.deface
|
|
227
|
+
- app/overrides/spree/admin/log_entries/index/table.html.erb.deface
|
|
227
228
|
- app/overrides/spree/admin/orders/_shipment/edit_method.html.erb.deface
|
|
228
229
|
- app/overrides/spree/admin/orders/_shipment/show_method.html.erb.deface
|
|
229
230
|
- app/overrides/spree/admin/payment_methods/_form/enable_pre_auth_field.html.erb.deface
|