caboose-cms 0.5.160 → 0.5.161

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTZmYjMwNTE1OTY0OWNjYzRkMTczOWRlZTgyMzI4ZWExOTc3MjJlMA==
4
+ YTQ1MTU0YjcyN2E4MjYwOGUwYzgzZDNmMTc5NmMxYWViYzNlZmIyZg==
5
5
  data.tar.gz: !binary |-
6
- MDRiYjE5ZjNkMTQwNDI1M2IzMTRjNWQ5ZWUzZDg1MjE3NzdkMjYxMg==
6
+ OTk0Y2NjZmE1M2NkYzgyNTYwM2Y2NzNjMjE0MWE2Y2M0MDkwZWUwNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjUxM2NjMDBmMGM1NDVmMjJkZmZhNDRmYzk3YzJkNDEyNTllZDAzOGQ3NjJj
10
- N2Y3OWFmYzM5MTE2ZTVhNjIwNzljN2I2ZjgyYzI1MzA4MTdhNWRlODUxN2Jh
11
- NzYwMDU2MzM3N2MyNWZlNmQ3NzdhZWI5ZWU3NTY1NmQ2ZTkyOTk=
9
+ YWJlMGU1OGY4YTE3ODcxZWY5MmRiOWVkMTJlNzdhMTI5OTJkZmNmNTEyZjU3
10
+ MGJkZjUzZjRlMWE2MjdkYTQ5NTU0OWNmMjk3ZTdhNGQzZTNlNTI0YmMwMmM0
11
+ ZDZmYWY1NzI5MGY1ZDAxMzU0YWMwMDE3ZGRhMWE5ZWM2MjI0YzM=
12
12
  data.tar.gz: !binary |-
13
- MTRhN2M3OTQ5MDg0MjUwOTE3MjFhOGE4YTZlYzQxYjZkNDFhMTdiOWE5ODk1
14
- Yjc2ZTM2YTA5MGRmOTgwZjNlNmVhOTk2MDNlNmJmN2RmMzM5NTRmNmQ2MDc3
15
- M2FhNmU0NTQ5ZDM5NGI2ZmQ3Yjc0YTgxM2NjMjI3OGJiNWIyNmM=
13
+ ZjYzYWQ1MmZlMjU4NGEzNDExMTc4ZDJiNGYyZGY4MzA5NzE3OTk0YzYzNGZi
14
+ NzJjODAxNWUzYWNlYzkwZGIwNTk2YzA4ZDI5NTdkMWM2MmFkYTkyNmY0Y2Iy
15
+ ZmMyNjQ2NTMxY2M1ZmZlYTkyMGIzZWYxNmI3NTQzYjg2MzNiMDI=
@@ -35,9 +35,6 @@
35
35
  <li><% if li.include_gift_message %>Gift message: <%= li.gift_message %><% else %>No gift message<% end %></li>
36
36
  <li><% if li.hide_prices %>Hide all prices<% else %>Show all prices<% end %></li>
37
37
  </ul>
38
- <% end %>
39
- <% if li.variant.downloadable %>
40
- <p><a href='<%= @order.site.store_config.pp_relay_domain %>/my-account/orders/<%= @order.id %>/line-items/<%= li.id %>/download' target="_blank">Download</a></li>
41
38
  <% end %>
42
39
  </td>
43
40
  <td align='right'><%= number_to_currency(li.unit_price) %></td>
@@ -51,8 +48,25 @@
51
48
  <% v = li.variant %>
52
49
  <% p = v.product %>
53
50
  <tr>
54
- <td>Not assigned to a package</td>
55
- <td><%= p.title %></td></td>
51
+ <td>
52
+ <% if v.downloadable %>
53
+ <p>This item is downloadable.</p>
54
+ <p><a href='<%= @order.site.store_config.pp_relay_domain %>/my-account/orders/<%= @order.id %>/line-items/<%= li.id %>/download' target="_blank">Download</a></li>
55
+ <% else %>
56
+ Not assigned to a package
57
+ <% end %>
58
+ </td>
59
+ <td>
60
+ <p><%= p.title %></td></p>
61
+ <% if li.is_gift %>
62
+ <p>This item is a gift.</p>
63
+ <ul>
64
+ <li><% if li.gift_wrap %>Gift wrap (<%= number_to_currency(p.gift_wrap_price) %>)<% else %>Do not gift wrap<% end %></li>
65
+ <li><% if li.include_gift_message %>Gift message: <%= li.gift_message %><% else %>No gift message<% end %></li>
66
+ <li><% if li.hide_prices %>Hide all prices<% else %>Show all prices<% end %></li>
67
+ </ul>
68
+ <% end %>
69
+ </td>
56
70
  <td align='right'><%= number_to_currency(li.unit_price) %></td>
57
71
  <td align='right'><%= li.quantity %></td>
58
72
  <td align='right'><%= number_to_currency(li.subtotal) %></td>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.160'
2
+ VERSION = '0.5.161'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.160
4
+ version: 0.5.161
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry