mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
40 lines
2.2 KiB
JavaScript
40 lines
2.2 KiB
JavaScript
(function() {
|
|
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
|
|
templates['tool_link'] = template(function (Handlebars,depth0,helpers,partials,data) {
|
|
helpers = helpers || Handlebars.helpers;
|
|
var buffer = "", stack1, foundHelper, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;
|
|
|
|
|
|
buffer += "<a class=\"";
|
|
foundHelper = helpers.id;
|
|
stack1 = foundHelper || depth0.id;
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "id", { hash: {} }); }
|
|
buffer += escapeExpression(stack1) + " tool-link\" href=\"";
|
|
foundHelper = helpers.link;
|
|
stack1 = foundHelper || depth0.link;
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "link", { hash: {} }); }
|
|
buffer += escapeExpression(stack1) + "\" target=\"";
|
|
foundHelper = helpers.target;
|
|
stack1 = foundHelper || depth0.target;
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "target", { hash: {} }); }
|
|
buffer += escapeExpression(stack1) + "\" minsizehint=\"";
|
|
foundHelper = helpers.min_width;
|
|
stack1 = foundHelper || depth0.min_width;
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "min_width", { hash: {} }); }
|
|
buffer += escapeExpression(stack1) + "\">";
|
|
foundHelper = helpers.name;
|
|
stack1 = foundHelper || depth0.name;
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
|
|
buffer += escapeExpression(stack1) + "</a> ";
|
|
foundHelper = helpers.description;
|
|
stack1 = foundHelper || depth0.description;
|
|
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
|
|
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "description", { hash: {} }); }
|
|
buffer += escapeExpression(stack1);
|
|
return buffer;});
|
|
})(); |