mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
31 lines
1.6 KiB
JavaScript
31 lines
1.6 KiB
JavaScript
(function() {
|
|
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
|
|
templates['template-visualization-statsDisplay'] = template(function (Handlebars,depth0,helpers,partials,data) {
|
|
helpers = helpers || Handlebars.helpers;
|
|
var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;
|
|
|
|
function program1(depth0,data) {
|
|
|
|
var buffer = "", stack1, foundHelper;
|
|
buffer += "\n <tr><td>";
|
|
foundHelper = helpers.name;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "</td><td>";
|
|
foundHelper = helpers.xval;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.xval; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "</td><td>";
|
|
foundHelper = helpers.yval;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.yval; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "</td></tr>\n </tr>\n ";
|
|
return buffer;}
|
|
|
|
buffer += "<p class=\"help-text\">By column:</p>\n <table id=\"chart-stats-table\">\n <thead><th></th><th>X</th><th>Y</th></thead>\n ";
|
|
stack1 = depth0.stats;
|
|
stack1 = helpers.each.call(depth0, stack1, {hash:{},inverse:self.noop,fn:self.program(1, program1, data)});
|
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
buffer += "\n </table>";
|
|
return buffer;});
|
|
})(); |