caboose-cms 0.5.152 → 0.5.153

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTZhNjlmYTMzZjhhNmZmM2RiMzM1YzI4Mzg5NGU5OTkxZWYxZDkwZg==
4
+ MWNjNjk3MjIzZDk4YTg4ZmExYjA5YjgwMWExYTFmOWQ4NzZiYzY2MA==
5
5
  data.tar.gz: !binary |-
6
- NzBhZTUzN2Y5NTMzNTVjYzY0MDdkNThlOGU5NzIyNGE3MmUzNTJhNQ==
6
+ YzU5ODNlNTViNGYyMDRiNTg2NGI0MzU0YzE1NjI4N2MxMWNiYTQ0Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGNhMmJlZjIzNmJjOTI4OTQ4MTU3MDdiZjNlMWEzNTFkZjU4NGUyMmM2MWU1
10
- Njc0NmI1NWMxNmE5MmMzNjhkMTQyZjY1MmZlZjQwZTJlYjc4NjU0OTI2ODIy
11
- MDI4YzVjMGM5NWQ2MTkwZjExZDdkNDZiNTk5YTJlYjA3Yjk4YTY=
9
+ MjcyYmU1ZGFhYTI5NjUyZWM4NWZiOTE3ODE4ZDU2ZWIwMzUzMDUzOGQ2ZWEy
10
+ MTYyZDg5ZmU3ZTEwYzhiOWI5ZGVjNzUyOWUyZGFjOWYzYzFmMTY0NGM0Yzhm
11
+ YzlkNjIxNDRiOTg0NTc1NTBlYTAwZDE3OTNiNDZjZjcyZjIzNGM=
12
12
  data.tar.gz: !binary |-
13
- OWUyM2EyNWU1ZDc3Njg4YWM3ZmMxMTMzOTE3ZWI1YzIwYmUxNDhhOWQ3ZDg4
14
- ZTVhNTQ3NjQwZDM5YTZhNzM1MGVlNjYxNTFiMDEyZDA1NzY5MWJkMTA0ZTE3
15
- MDNlZTNkYjE5ODNhNTViNTEwNjgzYmRhNDBlYzBiN2U3Y2I0NzE=
13
+ NzZlYTQ3NjI4ZjFlZGMyZWIzMjFmMjY4ZDJkZWMzNDNkOWJmZmIzNWJiODM4
14
+ OTkzNzZhZThjZDU3OWM0Yjg0YmQzY2FiZGViZDkzYzcxMTA2NzlkM2Q3OWNj
15
+ MzE0YTU4OWJkZTIwMTEzYjRkMjg5ZDBmYTllYTZlMGUwM2VhOTI=
@@ -463,8 +463,12 @@ OrderController.prototype = {
463
463
  .append($('<div/>').attr('id', 'orderpackage_' + op.id + '_tracking_number'))
464
464
  .append($('<div/>').attr('id', 'orderpackage_' + op.id + '_total'))
465
465
  );
466
- }
467
- tr.append($('<td/>').append(that.line_item_link(li)).append($('<div/>').attr('id', 'line_item_' + li.id + '_message')));
466
+ }
467
+ tr.append($('<td/>')
468
+ .append(that.line_item_link(li))
469
+ .append(that.gift_options(li))
470
+ .append($('<div/>').attr('id', 'line_item_' + li.id + '_message'))
471
+ );
468
472
  tr.append($('<td/>').append($('<div/>').attr('id', 'lineitem_' + li.id + '_status')))
469
473
  tr.append($('<td/>').attr('align', 'right').html(curr(li.unit_price)));
470
474
  tr.append($('<td/>').attr('align', 'right').append($('<div/>').attr('id', 'lineitem_' + li.id + '_quantity')));
@@ -497,6 +501,25 @@ OrderController.prototype = {
497
501
  });
498
502
  },
499
503
 
504
+ gift_options: function(li)
505
+ {
506
+ var div = $('<div/>');
507
+ if (li.is_gift)
508
+ {
509
+ div.append($('<ul/>').addClass('gift_options')
510
+ .append($('<li/>').html("This item is a gift."))
511
+ .append($('<li/>').html("Gift wrap? " + (li.gift_wrap ? 'Yes' : 'No')))
512
+ .append($('<li/>').html("Hide prices? " + (li.hide_prices ? 'Yes' : 'No')))
513
+ .append($('<li/>').html("Gift message: " + (li.gift_message.length > 0 ? li.gift_message : '[Empty]')))
514
+ );
515
+ }
516
+ else
517
+ {
518
+ div.append($('<p/>').html("This item is not a gift."));
519
+ }
520
+ return div;
521
+ },
522
+
500
523
  line_item_link: function(li)
501
524
  {
502
525
  var that = this;
@@ -588,7 +611,11 @@ OrderController.prototype = {
588
611
 
589
612
  var tr = $('<tr/>');
590
613
  tr.append($('<td/>').append(div));
591
- tr.append($('<td/>').append(that.line_item_link(li)).append($('<div/>').attr('id', 'line_item_' + li.id + '_message')));
614
+ tr.append($('<td/>')
615
+ .append(that.line_item_link(li))
616
+ .append(that.gift_options(li))
617
+ .append($('<div/>').attr('id', 'line_item_' + li.id + '_message'))
618
+ );
592
619
  tr.append($('<td/>').append($('<div/>').attr('id', 'lineitem_' + li.id + '_status')))
593
620
  tr.append($('<td/>').attr('align', 'right').html(curr(li.unit_price)));
594
621
  tr.append($('<td/>').attr('align', 'right').append($('<div/>').attr('id', 'lineitem_' + li.id + '_quantity')));
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.152'
2
+ VERSION = '0.5.153'
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.152
4
+ version: 0.5.153
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry