2015-10-13 14:14:50 +02:00
|
|
|
Template.thumbnails.helpers({
|
2015-10-31 17:01:47 +01:00
|
|
|
thumbnails: function() {
|
2015-11-17 18:17:51 +01:00
|
|
|
var study = this;
|
|
|
|
|
var stacks = createStacks(study);
|
2015-10-31 17:01:47 +01:00
|
|
|
|
|
|
|
|
var array = [];
|
|
|
|
|
stacks.forEach(function(stack, index) {
|
|
|
|
|
array.push({
|
2015-11-17 18:17:51 +01:00
|
|
|
thumbnailIndex: index,
|
2015-10-31 17:01:47 +01:00
|
|
|
stack: stack
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
return array;
|
|
|
|
|
}
|
2015-10-13 14:14:50 +02:00
|
|
|
});
|