mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-13 08:51:38 +08:00
34 lines
1.9 KiB
JavaScript
34 lines
1.9 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, functionType="function", escapeExpression=this.escapeExpression;
|
|
|
|
|
|
buffer += "<a class=\"";
|
|
foundHelper = helpers.id;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.id; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + " tool-link\" href=\"";
|
|
foundHelper = helpers.link;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.link; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "\" target=\"";
|
|
foundHelper = helpers.target;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.target; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "\" minsizehint=\"";
|
|
foundHelper = helpers.min_width;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.min_width; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "\">";
|
|
foundHelper = helpers.name;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "</a> ";
|
|
foundHelper = helpers.description;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.description; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1);
|
|
return buffer;});
|
|
})(); |