mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
51 lines
4.0 KiB
JavaScript
51 lines
4.0 KiB
JavaScript
(function() {
|
|
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
|
|
templates['template-visualization-dataControl'] = template(function (Handlebars,depth0,helpers,partials,data) {
|
|
this.compilerInfo = [4,'>= 1.0.0'];
|
|
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
|
|
var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;
|
|
|
|
function program1(depth0,data) {
|
|
|
|
var buffer = "", stack1;
|
|
buffer += "\n <option value=\"";
|
|
if (stack1 = helpers.index) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
|
|
else { stack1 = depth0.index; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
|
|
buffer += escapeExpression(stack1)
|
|
+ "\">";
|
|
if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
|
|
else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
|
|
buffer += escapeExpression(stack1)
|
|
+ "</option>\n ";
|
|
return buffer;
|
|
}
|
|
|
|
function program3(depth0,data) {
|
|
|
|
|
|
return "checked=\"true\"";
|
|
}
|
|
|
|
buffer += "<p class=\"help-text\">\n Use the following controls to change the data used by the chart.\n Use the 'Draw' button to render (or re-render) the chart with the current settings.\n </p>\n\n "
|
|
+ "\n <div class=\"column-select\">\n <label for=\"X-select\">Data column for X: </label>\n <select name=\"X\" id=\"X-select\">\n ";
|
|
stack1 = helpers.each.call(depth0, depth0.numericColumns, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
|
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
buffer += "\n </select>\n </div>\n <div class=\"column-select\">\n <label for=\"Y-select\">Data column for Y: </label>\n <select name=\"Y\" id=\"Y-select\">\n ";
|
|
stack1 = helpers.each.call(depth0, depth0.numericColumns, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
|
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
buffer += "\n </select>\n </div>\n\n "
|
|
+ "\n <div id=\"include-id\">\n <label for=\"include-id-checkbox\">Include a third column as data point IDs?</label>\n <input type=\"checkbox\" name=\"include-id\" id=\"include-id-checkbox\" />\n <p class=\"help-text-small\">\n These will be displayed (along with the x and y values) when you hover over\n a data point.\n </p>\n </div>\n <div class=\"column-select\" style=\"display: none\">\n <label for=\"ID-select\">Data column for IDs: </label>\n <select name=\"ID\" id=\"ID-select\">\n ";
|
|
stack1 = helpers.each.call(depth0, depth0.allColumns, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
|
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
buffer += "\n </select>\n </div>\n\n "
|
|
+ "\n <div id=\"first-line-header\" style=\"display: none;\">\n <p>Possible headers: ";
|
|
if (stack1 = helpers.possibleHeaders) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
|
|
else { stack1 = depth0.possibleHeaders; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
|
|
buffer += escapeExpression(stack1)
|
|
+ "\n </p>\n <label for=\"first-line-header-checkbox\">Use the above as column headers?</label>\n <input type=\"checkbox\" name=\"include-id\" id=\"first-line-header-checkbox\"\n ";
|
|
stack1 = helpers['if'].call(depth0, depth0.usePossibleHeaders, {hash:{},inverse:self.noop,fn:self.program(3, program3, data),data:data});
|
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
buffer += "/>\n <p class=\"help-text-small\">\n It looks like Galaxy couldn't get proper column headers for this data.\n Would you like to use the column headers above as column names to select columns?\n </p>\n </div>\n\n <input id=\"render-button\" type=\"button\" value=\"Draw\" />\n <div class=\"clear\"></div>";
|
|
return buffer;
|
|
});
|
|
})(); |