From 3e2b6f3441fa4ed370f1aae2edad745c8612a5e9 Mon Sep 17 00:00:00 2001 From: Carl Eberhard Date: Wed, 7 Aug 2013 15:12:35 -0400 Subject: [PATCH] Handlebars.runtime.js: update to 1.0.0, recompile templates, pack (devs need to update their handlebars.compilers to 1.0.12) --- static/scripts/libs/handlebars.runtime.js | 303 ++++++++++---- .../scripts/packed/libs/handlebars.runtime.js | 2 +- .../compiled/helpers-common-templates.js | 2 +- .../templates/compiled/panel_section.js | 2 +- .../compiled/template-hda-annotationArea.js | 2 +- .../compiled/template-hda-displayApps.js | 2 +- .../compiled/template-hda-downloadLinks.js | 2 +- .../compiled/template-hda-failedMetadata.js | 2 +- .../compiled/template-hda-hdaSummary.js | 2 +- .../compiled/template-hda-tagArea.js | 2 +- .../compiled/template-hda-titleLink.js | 2 +- .../compiled/template-hda-warning-messages.js | 2 +- .../compiled/template-history-historyPanel.js | 2 +- .../templates/compiled/template-iconButton.js | 2 +- .../compiled/template-popupmenu-menu.js | 2 +- .../template-user-quotaMeter-quota.js | 2 +- .../template-user-quotaMeter-usage.js | 2 +- .../template-visualization-chartControl.js | 2 +- .../template-visualization-chartDisplay.js | 2 +- .../template-visualization-dataControl.js | 2 +- ...te-visualization-scatterplotControlForm.js | 2 +- .../template-visualization-statsDisplay.js | 2 +- .../compiled/template-warningmessagesmall.js | 2 +- .../packed/templates/compiled/tool_form.js | 2 +- .../packed/templates/compiled/tool_link.js | 2 +- .../packed/templates/compiled/tool_search.js | 2 +- .../compiled/helpers-common-templates.js | 27 -- .../templates/compiled/panel_section.js | 4 +- .../compiled/template-hda-annotationArea.js | 56 ++- .../compiled/template-hda-displayApps.js | 84 ++-- .../compiled/template-hda-downloadLinks.js | 197 ++++----- .../compiled/template-hda-failedMetadata.js | 50 +-- .../compiled/template-hda-hdaSummary.js | 140 +++---- .../compiled/template-hda-tagArea.js | 23 +- .../compiled/template-hda-titleLink.js | 26 +- .../compiled/template-hda-warning-messages.js | 318 +++++--------- .../compiled/template-history-historyPanel.js | 389 +++++++----------- .../templates/compiled/template-iconButton.js | 11 +- .../compiled/template-popupmenu-menu.js | 155 +++---- .../template-user-quotaMeter-quota.js | 64 ++- .../template-user-quotaMeter-usage.js | 43 +- .../template-visualization-chartControl.js | 65 ++- .../template-visualization-chartDisplay.js | 26 +- .../template-visualization-dataControl.js | 121 ++---- ...te-visualization-scatterplotControlForm.js | 54 +-- .../template-visualization-statsDisplay.js | 47 +-- .../compiled/template-warningmessagesmall.js | 14 +- .../scripts/templates/compiled/tool_form.js | 4 +- .../scripts/templates/compiled/tool_link.js | 4 +- .../scripts/templates/compiled/tool_search.js | 4 +- 50 files changed, 976 insertions(+), 1303 deletions(-) diff --git a/static/scripts/libs/handlebars.runtime.js b/static/scripts/libs/handlebars.runtime.js index 0866641947a..b9f4e492055 100644 --- a/static/scripts/libs/handlebars.runtime.js +++ b/static/scripts/libs/handlebars.runtime.js @@ -1,39 +1,80 @@ +/* + +Copyright (C) 2011 by Yehuda Katz + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +*/ + +// lib/handlebars/browser-prefix.js +var Handlebars = {}; + +(function(Handlebars, undefined) { +; // lib/handlebars/base.js -/*jshint eqnull:true*/ -this.Handlebars = {}; +Handlebars.VERSION = "1.0.0"; +Handlebars.COMPILER_REVISION = 4; -(function(Handlebars) { - -Handlebars.VERSION = "1.0.rc.1"; +Handlebars.REVISION_CHANGES = { + 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it + 2: '== 1.0.0-rc.3', + 3: '== 1.0.0-rc.4', + 4: '>= 1.0.0' +}; Handlebars.helpers = {}; Handlebars.partials = {}; +var toString = Object.prototype.toString, + functionType = '[object Function]', + objectType = '[object Object]'; + Handlebars.registerHelper = function(name, fn, inverse) { - if(inverse) { fn.not = inverse; } - this.helpers[name] = fn; + if (toString.call(name) === objectType) { + if (inverse || fn) { throw new Handlebars.Exception('Arg not supported with multiple helpers'); } + Handlebars.Utils.extend(this.helpers, name); + } else { + if (inverse) { fn.not = inverse; } + this.helpers[name] = fn; + } }; Handlebars.registerPartial = function(name, str) { - this.partials[name] = str; + if (toString.call(name) === objectType) { + Handlebars.Utils.extend(this.partials, name); + } else { + this.partials[name] = str; + } }; Handlebars.registerHelper('helperMissing', function(arg) { if(arguments.length === 2) { return undefined; } else { - throw new Error("Could not find property '" + arg + "'"); + throw new Error("Missing helper: '" + arg + "'"); } }); -var toString = Object.prototype.toString, functionType = "[object Function]"; - Handlebars.registerHelper('blockHelperMissing', function(context, options) { var inverse = options.inverse || function() {}, fn = options.fn; - - var ret = ""; var type = toString.call(context); if(type === functionType) { context = context.call(this); } @@ -62,63 +103,97 @@ Handlebars.createFrame = Object.create || function(object) { return obj; }; +Handlebars.logger = { + DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, level: 3, + + methodMap: {0: 'debug', 1: 'info', 2: 'warn', 3: 'error'}, + + // can be overridden in the host environment + log: function(level, obj) { + if (Handlebars.logger.level <= level) { + var method = Handlebars.logger.methodMap[level]; + if (typeof console !== 'undefined' && console[method]) { + console[method].call(console, obj); + } + } + } +}; + +Handlebars.log = function(level, obj) { Handlebars.logger.log(level, obj); }; + Handlebars.registerHelper('each', function(context, options) { var fn = options.fn, inverse = options.inverse; - var ret = "", data; + var i = 0, ret = "", data; + + var type = toString.call(context); + if(type === functionType) { context = context.call(this); } if (options.data) { data = Handlebars.createFrame(options.data); } - if(context && context.length > 0) { - for(var i=0, j=context.length; i": ">", - '"': """, - "'": "'", - "`": "`" - }; +var escape = { + "&": "&", + "<": "<", + ">": ">", + '"': """, + "'": "'", + "`": "`" +}; - var badChars = /[&<>"'`]/g; - var possible = /[&<>"'`]/; +var badChars = /[&<>"'`]/g; +var possible = /[&<>"'`]/; - var escapeChar = function(chr) { - return escape[chr] || "&"; - }; +var escapeChar = function(chr) { + return escape[chr] || "&"; +}; - Handlebars.Utils = { - escapeExpression: function(string) { - // don't escape SafeStrings, since they're already safe - if (string instanceof Handlebars.SafeString) { - return string.toString(); - } else if (string == null || string === false) { - return ""; - } - - if(!possible.test(string)) { return string; } - return string.replace(badChars, escapeChar); - }, - - isEmpty: function(value) { - if (typeof value === "undefined") { - return true; - } else if (value === null) { - return true; - } else if (value === false) { - return true; - } else if(Object.prototype.toString.call(value) === "[object Array]" && value.length === 0) { - return true; - } else { - return false; +Handlebars.Utils = { + extend: function(obj, value) { + for(var key in value) { + if(value.hasOwnProperty(key)) { + obj[key] = value[key]; } } - }; -})();; + }, + + escapeExpression: function(string) { + // don't escape SafeStrings, since they're already safe + if (string instanceof Handlebars.SafeString) { + return string.toString(); + } else if (string == null || string === false) { + return ""; + } + + // Force a string conversion as this will be done by the append regardless and + // the regex test will do this transparently behind the scenes, causing issues if + // an object's to string has escaped characters in it. + string = string.toString(); + + if(!possible.test(string)) { return string; } + return string.replace(badChars, escapeChar); + }, + + isEmpty: function(value) { + if (!value && value !== 0) { + return true; + } else if(toString.call(value) === "[object Array]" && value.length === 0) { + return true; + } else { + return false; + } + } +}; +; // lib/handlebars/runtime.js + Handlebars.VM = { template: function(templateSpec) { // Just add water @@ -186,39 +270,73 @@ Handlebars.VM = { program: function(i, fn, data) { var programWrapper = this.programs[i]; if(data) { - return Handlebars.VM.program(fn, data); - } else if(programWrapper) { - return programWrapper; - } else { - programWrapper = this.programs[i] = Handlebars.VM.program(fn); - return programWrapper; + programWrapper = Handlebars.VM.program(i, fn, data); + } else if (!programWrapper) { + programWrapper = this.programs[i] = Handlebars.VM.program(i, fn); } + return programWrapper; + }, + merge: function(param, common) { + var ret = param || common; + + if (param && common) { + ret = {}; + Handlebars.Utils.extend(ret, common); + Handlebars.Utils.extend(ret, param); + } + return ret; }, programWithDepth: Handlebars.VM.programWithDepth, - noop: Handlebars.VM.noop + noop: Handlebars.VM.noop, + compilerInfo: null }; return function(context, options) { options = options || {}; - return templateSpec.call(container, Handlebars, context, options.helpers, options.partials, options.data); + var result = templateSpec.call(container, Handlebars, context, options.helpers, options.partials, options.data); + + var compilerInfo = container.compilerInfo || [], + compilerRevision = compilerInfo[0] || 1, + currentRevision = Handlebars.COMPILER_REVISION; + + if (compilerRevision !== currentRevision) { + if (compilerRevision < currentRevision) { + var runtimeVersions = Handlebars.REVISION_CHANGES[currentRevision], + compilerVersions = Handlebars.REVISION_CHANGES[compilerRevision]; + throw "Template was precompiled with an older version of Handlebars than the current runtime. "+ + "Please update your precompiler to a newer version ("+runtimeVersions+") or downgrade your runtime to an older version ("+compilerVersions+")."; + } else { + // Use the embedded version info since the runtime doesn't know about this revision yet + throw "Template was precompiled with a newer version of Handlebars than the current runtime. "+ + "Please update your runtime to a newer version ("+compilerInfo[1]+")."; + } + } + + return result; }; }, - programWithDepth: function(fn, data, $depth) { - var args = Array.prototype.slice.call(arguments, 2); + programWithDepth: function(i, fn, data /*, $depth */) { + var args = Array.prototype.slice.call(arguments, 3); - return function(context, options) { + var program = function(context, options) { options = options || {}; return fn.apply(this, [context, options.data || data].concat(args)); }; + program.program = i; + program.depth = args.length; + return program; }, - program: function(fn, data) { - return function(context, options) { + program: function(i, fn, data) { + var program = function(context, options) { options = options || {}; return fn(context, options.data || data); }; + program.program = i; + program.depth = 0; + return program; }, noop: function() { return ""; }, invokePartial: function(partial, name, context, helpers, partials, data) { @@ -239,3 +357,6 @@ Handlebars.VM = { Handlebars.template = Handlebars.VM.template; ; +// lib/handlebars/browser-suffix.js +})(Handlebars); +; diff --git a/static/scripts/packed/libs/handlebars.runtime.js b/static/scripts/packed/libs/handlebars.runtime.js index 468be5b7c1a..96526fec41b 100644 --- a/static/scripts/packed/libs/handlebars.runtime.js +++ b/static/scripts/packed/libs/handlebars.runtime.js @@ -1 +1 @@ -this.Handlebars={};(function(c){c.VERSION="1.0.rc.1";c.helpers={};c.partials={};c.registerHelper=function(e,f,d){if(d){f.not=d}this.helpers[e]=f};c.registerPartial=function(d,e){this.partials[d]=e};c.registerHelper("helperMissing",function(d){if(arguments.length===2){return undefined}else{throw new Error("Could not find property '"+d+"'")}});var a=Object.prototype.toString,b="[object Function]";c.registerHelper("blockHelperMissing",function(g,f){var d=f.inverse||function(){},i=f.fn;var e="";var h=a.call(g);if(h===b){g=g.call(this)}if(g===true){return i(this)}else{if(g===false||g==null){return d(this)}else{if(h==="[object Array]"){if(g.length>0){return c.helpers.each(g,f)}else{return d(this)}}else{return i(g)}}}});c.K=function(){};c.createFrame=Object.create||function(d){c.K.prototype=d;var e=new c.K();c.K.prototype=null;return e};c.registerHelper("each",function(k,g){var l=g.fn,d=g.inverse;var f="",m;if(g.data){m=c.createFrame(g.data)}if(k&&k.length>0){for(var h=0,e=k.length;h":">",'"':""","'":"'","`":"`"};var d=/[&<>"'`]/g;var b=/[&<>"'`]/;var a=function(e){return c[e]||"&"};Handlebars.Utils={escapeExpression:function(e){if(e instanceof Handlebars.SafeString){return e.toString()}else{if(e==null||e===false){return""}}if(!b.test(e)){return e}return e.replace(d,a)},isEmpty:function(e){if(typeof e==="undefined"){return true}else{if(e===null){return true}else{if(e===false){return true}else{if(Object.prototype.toString.call(e)==="[object Array]"&&e.length===0){return true}else{return false}}}}}}})();Handlebars.VM={template:function(a){var b={escapeExpression:Handlebars.Utils.escapeExpression,invokePartial:Handlebars.VM.invokePartial,programs:[],program:function(d,e,f){var c=this.programs[d];if(f){return Handlebars.VM.program(e,f)}else{if(c){return c}else{c=this.programs[d]=Handlebars.VM.program(e);return c}}},programWithDepth:Handlebars.VM.programWithDepth,noop:Handlebars.VM.noop};return function(d,c){c=c||{};return a.call(b,Handlebars,d,c.helpers,c.partials,c.data)}},programWithDepth:function(b,d,c){var a=Array.prototype.slice.call(arguments,2);return function(f,e){e=e||{};return b.apply(this,[f,e.data||d].concat(a))}},program:function(a,b){return function(d,c){c=c||{};return a(d,c.data||b)}},noop:function(){return""},invokePartial:function(a,c,e,f,d,g){var b={helpers:f,partials:d,data:g};if(a===undefined){throw new Handlebars.Exception("The partial "+c+" could not be found")}else{if(a instanceof Function){return a(e,b)}else{if(!Handlebars.compile){throw new Handlebars.Exception("The partial "+c+" could not be compiled when running in runtime-only mode")}else{d[c]=Handlebars.compile(a,{data:g!==undefined});return d[c](e,b)}}}}};Handlebars.template=Handlebars.VM.template; \ No newline at end of file +var Handlebars={};(function(c,e){c.VERSION="1.0.0";c.COMPILER_REVISION=4;c.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 1.0.0"};c.helpers={};c.partials={};var d=Object.prototype.toString,f="[object Function]",b="[object Object]";c.registerHelper=function(l,m,k){if(d.call(l)===b){if(k||m){throw new c.Exception("Arg not supported with multiple helpers")}c.Utils.extend(this.helpers,l)}else{if(k){m.not=k}this.helpers[l]=m}};c.registerPartial=function(k,l){if(d.call(k)===b){c.Utils.extend(this.partials,k)}else{this.partials[k]=l}};c.registerHelper("helperMissing",function(k){if(arguments.length===2){return e}else{throw new Error("Missing helper: '"+k+"'")}});c.registerHelper("blockHelperMissing",function(m,l){var k=l.inverse||function(){},o=l.fn;var n=d.call(m);if(n===f){m=m.call(this)}if(m===true){return o(this)}else{if(m===false||m==null){return k(this)}else{if(n==="[object Array]"){if(m.length>0){return c.helpers.each(m,l)}else{return k(this)}}else{return o(m)}}}});c.K=function(){};c.createFrame=Object.create||function(k){c.K.prototype=k;var l=new c.K();c.K.prototype=null;return l};c.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,methodMap:{0:"debug",1:"info",2:"warn",3:"error"},log:function(m,k){if(c.logger.level<=m){var l=c.logger.methodMap[m];if(typeof console!=="undefined"&&console[l]){console[l].call(console,k)}}}};c.log=function(l,k){c.logger.log(l,k)};c.registerHelper("each",function(k,t){var r=t.fn,m=t.inverse;var o=0,p="",n;var q=d.call(k);if(q===f){k=k.call(this)}if(t.data){n=c.createFrame(t.data)}if(k&&typeof k==="object"){if(k instanceof Array){for(var l=k.length;o":">",'"':""","'":"'","`":"`"};var a=/[&<>"'`]/g;var g=/[&<>"'`]/;var j=function(k){return h[k]||"&"};c.Utils={extend:function(m,l){for(var k in l){if(l.hasOwnProperty(k)){m[k]=l[k]}}},escapeExpression:function(k){if(k instanceof c.SafeString){return k.toString()}else{if(k==null||k===false){return""}}k=k.toString();if(!g.test(k)){return k}return k.replace(a,j)},isEmpty:function(k){if(!k&&k!==0){return true}else{if(d.call(k)==="[object Array]"&&k.length===0){return true}else{return false}}}};c.VM={template:function(k){var l={escapeExpression:c.Utils.escapeExpression,invokePartial:c.VM.invokePartial,programs:[],program:function(n,o,p){var m=this.programs[n];if(p){m=c.VM.program(n,o,p)}else{if(!m){m=this.programs[n]=c.VM.program(n,o)}}return m},merge:function(o,n){var m=o||n;if(o&&n){m={};c.Utils.extend(m,n);c.Utils.extend(m,o)}return m},programWithDepth:c.VM.programWithDepth,noop:c.VM.noop,compilerInfo:null};return function(q,p){p=p||{};var n=k.call(l,c,q,p.helpers,p.partials,p.data);var r=l.compilerInfo||[],o=r[0]||1,t=c.COMPILER_REVISION;if(o!==t){if(o'});Handlebars.registerHelper("warningmessagesmall",function(a){return'
'+a.fn(this)+"
"});Handlebars.registerHelper("local",function(a){return _l(a.fn(this))});Handlebars.registerPartial("iconButton",function(c,b){var a="";a+=(c.enabled)?(""):(""));return a}); \ No newline at end of file +Handlebars.registerPartial("clearFloatDiv",function(a){return'
'});Handlebars.registerHelper("warningmessagesmall",function(a){return'
'+a.fn(this)+"
"});Handlebars.registerHelper("local",function(a){return _l(a.fn(this))}); \ No newline at end of file diff --git a/static/scripts/packed/templates/compiled/panel_section.js b/static/scripts/packed/templates/compiled/panel_section.js index 80661cb442f..ca522adeb2c 100644 --- a/static/scripts/packed/templates/compiled/panel_section.js +++ b/static/scripts/packed/templates/compiled/panel_section.js @@ -1 +1 @@ -(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.panel_section=b(function(e,k,d,j,i){this.compilerInfo=[2,">= 1.0.0-rc.3"];d=d||e.helpers;i=i||{};var g="",c,f="function",h=this.escapeExpression;g+='\n\n "; + return buffer; + } function program30(depth0,data) { - return "You are over your disk quota";} + return "You are over your disk quota"; + } function program32(depth0,data) { - return "Tool execution is on hold until your disk usage drops below your allocated quota";} + return "Tool execution is on hold until your disk usage drops below your allocated quota"; + } function program34(depth0,data) { - return "Your history is empty. Click 'Get Data' on the left pane to start";} + return "Your history is empty. Click 'Get Data' on the left pane to start"; + } - buffer += "
\n\n
\n "; - buffer += "\n
\n "; - buffer += "\n "; - foundHelper = helpers.user; - stack1 = foundHelper || depth0.user; - stack1 = (stack1 === null || stack1 === undefined || stack1 === false ? stack1 : stack1.email); - stack2 = helpers['if']; - tmp1 = self.program(1, program1, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.program(4, program4, data); - stack1 = stack2.call(depth0, stack1, tmp1); - if(stack1 || stack1 === 0) { buffer += stack1; } + buffer += "
\n\n
\n " + + "\n
\n " + + "\n "; + stack2 = helpers['if'].call(depth0, ((stack1 = depth0.user),stack1 == null || stack1 === false ? stack1 : stack1.email), {hash:{},inverse:self.program(4, program4, data),fn:self.program(1, program1, data),data:data}); + if(stack2 || stack2 === 0) { buffer += stack2; } buffer += "\n
\n
\n\n
\n
"; - foundHelper = helpers.nice_size; - stack1 = foundHelper || depth0.nice_size; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "nice_size", { hash: {} }); } - buffer += escapeExpression(stack1) + "
\n\n
\n "; - foundHelper = helpers.user; - stack1 = foundHelper || depth0.user; - stack1 = (stack1 === null || stack1 === undefined || stack1 === false ? stack1 : stack1.email); - stack2 = helpers['if']; - tmp1 = self.program(7, program7, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.noop; - stack1 = stack2.call(depth0, stack1, tmp1); - if(stack1 || stack1 === 0) { buffer += stack1; } - buffer += "\n
\n
\n
\n\n "; - buffer += "\n "; - buffer += "\n "; - foundHelper = helpers.user; - stack1 = foundHelper || depth0.user; - stack1 = (stack1 === null || stack1 === undefined || stack1 === false ? stack1 : stack1.email); - stack2 = helpers['if']; - tmp1 = self.program(12, program12, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.noop; - stack1 = stack2.call(depth0, stack1, tmp1); - if(stack1 || stack1 === 0) { buffer += stack1; } + if (stack2 = helpers.nice_size) { stack2 = stack2.call(depth0, {hash:{},data:data}); } + else { stack2 = depth0.nice_size; stack2 = typeof stack2 === functionType ? stack2.apply(depth0) : stack2; } + buffer += escapeExpression(stack2) + + "
\n\n
\n "; + stack2 = helpers['if'].call(depth0, ((stack1 = depth0.user),stack1 == null || stack1 === false ? stack1 : stack1.email), {hash:{},inverse:self.noop,fn:self.program(7, program7, data),data:data}); + if(stack2 || stack2 === 0) { buffer += stack2; } + buffer += "\n
\n
\n
\n\n " + + "\n " + + "\n "; + stack2 = helpers['if'].call(depth0, ((stack1 = depth0.user),stack1 == null || stack1 === false ? stack1 : stack1.email), {hash:{},inverse:self.noop,fn:self.program(12, program12, data),data:data}); + if(stack2 || stack2 === 0) { buffer += stack2; } buffer += "\n\n "; - foundHelper = helpers.deleted; - stack1 = foundHelper || depth0.deleted; - stack2 = helpers['if']; - tmp1 = self.program(24, program24, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.noop; - stack1 = stack2.call(depth0, stack1, tmp1); - if(stack1 || stack1 === 0) { buffer += stack1; } + stack2 = helpers['if'].call(depth0, depth0.deleted, {hash:{},inverse:self.noop,fn:self.program(24, program24, data),data:data}); + if(stack2 || stack2 === 0) { buffer += stack2; } buffer += "\n\n
\n "; - foundHelper = helpers.message; - stack1 = foundHelper || depth0.message; - stack2 = helpers['if']; - tmp1 = self.program(28, program28, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.noop; - stack1 = stack2.call(depth0, stack1, tmp1); - if(stack1 || stack1 === 0) { buffer += stack1; } + stack2 = helpers['if'].call(depth0, depth0.message, {hash:{},inverse:self.noop,fn:self.program(28, program28, data),data:data}); + if(stack2 || stack2 === 0) { buffer += stack2; } buffer += "\n
\n\n
\n
\n "; - foundHelper = helpers.local; - stack1 = foundHelper || depth0.local; - tmp1 = self.program(30, program30, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.noop; - if(foundHelper && typeof stack1 === functionType) { stack1 = stack1.call(depth0, tmp1); } - else { stack1 = blockHelperMissing.call(depth0, stack1, tmp1); } - if(stack1 || stack1 === 0) { buffer += stack1; } + options = {hash:{},inverse:self.noop,fn:self.program(30, program30, data),data:data}; + if (stack2 = helpers.local) { stack2 = stack2.call(depth0, options); } + else { stack2 = depth0.local; stack2 = typeof stack2 === functionType ? stack2.apply(depth0) : stack2; } + if (!helpers.local) { stack2 = blockHelperMissing.call(depth0, stack2, options); } + if(stack2 || stack2 === 0) { buffer += stack2; } buffer += ".\n "; - foundHelper = helpers.local; - stack1 = foundHelper || depth0.local; - tmp1 = self.program(32, program32, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.noop; - if(foundHelper && typeof stack1 === functionType) { stack1 = stack1.call(depth0, tmp1); } - else { stack1 = blockHelperMissing.call(depth0, stack1, tmp1); } - if(stack1 || stack1 === 0) { buffer += stack1; } + options = {hash:{},inverse:self.noop,fn:self.program(32, program32, data),data:data}; + if (stack2 = helpers.local) { stack2 = stack2.call(depth0, options); } + else { stack2 = depth0.local; stack2 = typeof stack2 === functionType ? stack2.apply(depth0) : stack2; } + if (!helpers.local) { stack2 = blockHelperMissing.call(depth0, stack2, options); } + if(stack2 || stack2 === 0) { buffer += stack2; } buffer += ".\n
\n
\n
\n\n
\n\n
\n "; - foundHelper = helpers.local; - stack1 = foundHelper || depth0.local; - tmp1 = self.program(34, program34, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.noop; - if(foundHelper && typeof stack1 === functionType) { stack1 = stack1.call(depth0, tmp1); } - else { stack1 = blockHelperMissing.call(depth0, stack1, tmp1); } - if(stack1 || stack1 === 0) { buffer += stack1; } + if (stack2 = helpers.id) { stack2 = stack2.call(depth0, {hash:{},data:data}); } + else { stack2 = depth0.id; stack2 = typeof stack2 === functionType ? stack2.apply(depth0) : stack2; } + buffer += escapeExpression(stack2) + + "-datasets\" class=\"history-datasets-list\">
\n\n
\n "; + options = {hash:{},inverse:self.noop,fn:self.program(34, program34, data),data:data}; + if (stack2 = helpers.local) { stack2 = stack2.call(depth0, options); } + else { stack2 = depth0.local; stack2 = typeof stack2 === functionType ? stack2.apply(depth0) : stack2; } + if (!helpers.local) { stack2 = blockHelperMissing.call(depth0, stack2, options); } + if(stack2 || stack2 === 0) { buffer += stack2; } buffer += "\n
"; - return buffer;}); + return buffer; + }); })(); \ No newline at end of file diff --git a/static/scripts/templates/compiled/template-iconButton.js b/static/scripts/templates/compiled/template-iconButton.js index e3f92f2799f..b958934c7e0 100644 --- a/static/scripts/templates/compiled/template-iconButton.js +++ b/static/scripts/templates/compiled/template-iconButton.js @@ -1,13 +1,14 @@ (function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['template-iconButton'] = template(function (Handlebars,depth0,helpers,partials,data) { - helpers = helpers || Handlebars.helpers; partials = partials || Handlebars.partials; - var buffer = "", stack1, foundHelper, self=this; + this.compilerInfo = [4,'>= 1.0.0']; +helpers = this.merge(helpers, Handlebars.helpers); partials = this.merge(partials, Handlebars.partials); data = data || {}; + var buffer = "", stack1, self=this; buffer += "\n"; - stack1 = depth0; - stack1 = self.invokePartial(partials.iconButton, 'iconButton', stack1, helpers, partials);; + stack1 = self.invokePartial(partials.iconButton, 'iconButton', depth0, helpers, partials, data); if(stack1 || stack1 === 0) { buffer += stack1; } - return buffer;}); + return buffer; + }); })(); \ No newline at end of file diff --git a/static/scripts/templates/compiled/template-popupmenu-menu.js b/static/scripts/templates/compiled/template-popupmenu-menu.js index 1dd94ac5605..fd03e5867b8 100644 --- a/static/scripts/templates/compiled/template-popupmenu-menu.js +++ b/static/scripts/templates/compiled/template-popupmenu-menu.js @@ -1,164 +1,119 @@ (function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['template-popupmenu-menu'] = template(function (Handlebars,depth0,helpers,partials,data) { - helpers = helpers || Handlebars.helpers; - var buffer = "", stack1, stack2, foundHelper, tmp1, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression; + this.compilerInfo = [4,'>= 1.0.0']; +helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; + var buffer = "", stack1, stack2, functionType="function", escapeExpression=this.escapeExpression, self=this; function program1(depth0,data) { - var buffer = "", stack1, stack2; + var buffer = "", stack1; buffer += "\n "; - foundHelper = helpers.options; - stack1 = foundHelper || depth0.options; - stack2 = helpers.each; - tmp1 = self.program(2, program2, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.noop; - stack1 = stack2.call(depth0, stack1, tmp1); + stack1 = helpers.each.call(depth0, depth0.options, {hash:{},inverse:self.noop,fn:self.program(2, program2, data),data:data}); if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "\n"; - return buffer;} + return buffer; + } function program2(depth0,data) { - var buffer = "", stack1, stack2; + var buffer = "", stack1; buffer += "\n "; - foundHelper = helpers.divider; - stack1 = foundHelper || depth0.divider; - stack2 = helpers['if']; - tmp1 = self.program(3, program3, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.program(5, program5, data); - stack1 = stack2.call(depth0, stack1, tmp1); + stack1 = helpers['if'].call(depth0, depth0.divider, {hash:{},inverse:self.program(5, program5, data),fn:self.program(3, program3, data),data:data}); if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "\n "; - return buffer;} + return buffer; + } function program3(depth0,data) { - return "\n
  • \n ";} + return "\n
  • \n "; + } function program5(depth0,data) { - var buffer = "", stack1, stack2; + var buffer = "", stack1; buffer += "\n "; - foundHelper = helpers.header; - stack1 = foundHelper || depth0.header; - stack2 = helpers['if']; - tmp1 = self.program(6, program6, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.program(8, program8, data); - stack1 = stack2.call(depth0, stack1, tmp1); + stack1 = helpers['if'].call(depth0, depth0.header, {hash:{},inverse:self.program(8, program8, data),fn:self.program(6, program6, data),data:data}); if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "\n "; - return buffer;} + return buffer; + } function program6(depth0,data) { var buffer = "", stack1; buffer += "\n
  • "; - foundHelper = helpers.html; - stack1 = foundHelper || depth0.html; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "html", { hash: {} }); } + if (stack1 = helpers.html) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.html; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "
  • \n "; - return buffer;} + return buffer; + } function program8(depth0,data) { - var buffer = "", stack1, stack2; - buffer += "\n "; - buffer += "\n
  • \n "; - foundHelper = helpers.checked; - stack1 = foundHelper || depth0.checked; - stack2 = helpers['if']; - tmp1 = self.program(15, program15, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.noop; - stack1 = stack2.call(depth0, stack1, tmp1); + stack1 = helpers['if'].call(depth0, depth0.checked, {hash:{},inverse:self.noop,fn:self.program(15, program15, data),data:data}); if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "\n "; - foundHelper = helpers.html; - stack1 = foundHelper || depth0.html; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "html", { hash: {} }); } + if (stack1 = helpers.html) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.html; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "\n
  • \n "; - return buffer;} + return buffer; + } function program9(depth0,data) { var stack1; - foundHelper = helpers.href; - stack1 = foundHelper || depth0.href; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "href", { hash: {} }); } - return escapeExpression(stack1);} + if (stack1 = helpers.href) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.href; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + return escapeExpression(stack1); + } function program11(depth0,data) { - return "javascript:void(0);";} + return "javascript:void(0);"; + } function program13(depth0,data) { var buffer = "", stack1; buffer += "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) + "\""; - return buffer;} + if (stack1 = helpers.target) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.target; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + buffer += escapeExpression(stack1) + + "\""; + return buffer; + } function program15(depth0,data) { - return "";} + return ""; + } function program17(depth0,data) { - return "\n
  • No Options.
  • \n";} + return "\n
  • No Options.
  • \n"; + } buffer += "
      \n"; - foundHelper = helpers.options; - stack1 = foundHelper || depth0.options; - stack1 = (stack1 === null || stack1 === undefined || stack1 === false ? stack1 : stack1.length); - stack2 = helpers['if']; - tmp1 = self.program(1, program1, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.program(17, program17, data); - stack1 = stack2.call(depth0, stack1, tmp1); - if(stack1 || stack1 === 0) { buffer += stack1; } + if (stack1 = helpers.id) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.id; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + buffer += escapeExpression(stack1) + + "-menu\" class=\"dropdown-menu\">\n"; + stack2 = helpers['if'].call(depth0, ((stack1 = depth0.options),stack1 == null || stack1 === false ? stack1 : stack1.length), {hash:{},inverse:self.program(17, program17, data),fn:self.program(1, program1, data),data:data}); + if(stack2 || stack2 === 0) { buffer += stack2; } buffer += "\n
    "; - return buffer;}); + return buffer; + }); })(); \ No newline at end of file diff --git a/static/scripts/templates/compiled/template-user-quotaMeter-quota.js b/static/scripts/templates/compiled/template-user-quotaMeter-quota.js index a691a350622..e3981d38efa 100644 --- a/static/scripts/templates/compiled/template-user-quotaMeter-quota.js +++ b/static/scripts/templates/compiled/template-user-quotaMeter-quota.js @@ -1,56 +1,46 @@ (function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['template-user-quotaMeter-quota'] = template(function (Handlebars,depth0,helpers,partials,data) { - helpers = helpers || Handlebars.helpers; - var buffer = "", stack1, stack2, foundHelper, tmp1, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression, blockHelperMissing=helpers.blockHelperMissing; + this.compilerInfo = [4,'>= 1.0.0']; +helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; + var buffer = "", stack1, options, functionType="function", escapeExpression=this.escapeExpression, self=this, blockHelperMissing=helpers.blockHelperMissing; function program1(depth0,data) { var buffer = "", stack1; buffer += " title=\"Using "; - foundHelper = helpers.nice_total_disk_usage; - stack1 = foundHelper || depth0.nice_total_disk_usage; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "nice_total_disk_usage", { hash: {} }); } - buffer += escapeExpression(stack1) + "\""; - return buffer;} + if (stack1 = helpers.nice_total_disk_usage) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.nice_total_disk_usage; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + buffer += escapeExpression(stack1) + + "\""; + return buffer; + } function program3(depth0,data) { - return "Using";} + return "Using"; + } buffer += "
    \n
    \n "; - buffer += "\n
    \n " + + "\n
    \n
    "; - return buffer;}); + if (stack1 = helpers.quota_percent) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.quota_percent; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + buffer += escapeExpression(stack1) + + "%\n
    \n
    "; + return buffer; + }); })(); \ No newline at end of file diff --git a/static/scripts/templates/compiled/template-user-quotaMeter-usage.js b/static/scripts/templates/compiled/template-user-quotaMeter-usage.js index dc75a8dc703..8519b24edf6 100644 --- a/static/scripts/templates/compiled/template-user-quotaMeter-usage.js +++ b/static/scripts/templates/compiled/template-user-quotaMeter-usage.js @@ -1,43 +1,34 @@ (function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['template-user-quotaMeter-usage'] = template(function (Handlebars,depth0,helpers,partials,data) { - helpers = helpers || Handlebars.helpers; - var buffer = "", stack1, stack2, foundHelper, tmp1, self=this, functionType="function", blockHelperMissing=helpers.blockHelperMissing, helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression; + this.compilerInfo = [4,'>= 1.0.0']; +helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; + var buffer = "", stack1, self=this, functionType="function", blockHelperMissing=helpers.blockHelperMissing, escapeExpression=this.escapeExpression; function program1(depth0,data) { - var buffer = "", stack1; - foundHelper = helpers.local; - stack1 = foundHelper || depth0.local; - tmp1 = self.program(2, program2, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.noop; - if(foundHelper && typeof stack1 === functionType) { stack1 = stack1.call(depth0, tmp1); } - else { stack1 = blockHelperMissing.call(depth0, stack1, tmp1); } + var buffer = "", stack1, options; + options = {hash:{},inverse:self.noop,fn:self.program(2, program2, data),data:data}; + if (stack1 = helpers.local) { stack1 = stack1.call(depth0, options); } + else { stack1 = depth0.local; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + if (!helpers.local) { stack1 = blockHelperMissing.call(depth0, stack1, options); } if(stack1 || stack1 === 0) { buffer += stack1; } buffer += " "; - foundHelper = helpers.nice_total_disk_usage; - stack1 = foundHelper || depth0.nice_total_disk_usage; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "nice_total_disk_usage", { hash: {} }); } + if (stack1 = helpers.nice_total_disk_usage) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.nice_total_disk_usage; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } buffer += escapeExpression(stack1); - return buffer;} + return buffer; + } function program2(depth0,data) { - return "Using";} + return "Using"; + } buffer += "
    \n
    \n "; - foundHelper = helpers.nice_total_disk_usage; - stack1 = foundHelper || depth0.nice_total_disk_usage; - stack2 = helpers['if']; - tmp1 = self.program(1, program1, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.noop; - stack1 = stack2.call(depth0, stack1, tmp1); + stack1 = helpers['if'].call(depth0, depth0.nice_total_disk_usage, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data}); if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "\n
    \n
    "; - return buffer;}); + return buffer; + }); })(); \ No newline at end of file diff --git a/static/scripts/templates/compiled/template-visualization-chartControl.js b/static/scripts/templates/compiled/template-visualization-chartControl.js index a0794e5e6d7..3fba6248849 100644 --- a/static/scripts/templates/compiled/template-visualization-chartControl.js +++ b/static/scripts/templates/compiled/template-visualization-chartControl.js @@ -1,49 +1,40 @@ (function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['template-visualization-chartControl'] = template(function (Handlebars,depth0,helpers,partials,data) { - helpers = helpers || Handlebars.helpers; - var buffer = "", stack1, stack2, foundHelper, tmp1, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression; + 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) { - return " checked=\"true\"";} + return " checked=\"true\""; + } buffer += "

    \n Use the following controls to how the chart is displayed.\n The slide controls can be moved by the mouse or, if the 'handle' is in focus, your keyboard's arrow keys.\n Move the focus between controls by using the tab or shift+tab keys on your keyboard.\n Use the 'Draw' button to render (or re-render) the chart with the current settings.\n

    \n\n
    \n \n
    "; - foundHelper = helpers.datapointSize; - stack1 = foundHelper || depth0.datapointSize; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "datapointSize", { hash: {} }); } - buffer += escapeExpression(stack1) + "
    \n
    \n

    \n Size of the graphic representation of each data point\n

    \n
    \n\n
    \n \n \n
    \n

    \n Size of the graphic representation of each data point\n

    \n
    \n\n
    \n \n \n Uncheck this to disable the animations used on the chart\n

    \n
    \n\n
    \n \n
    "; - foundHelper = helpers.width; - stack1 = foundHelper || depth0.width; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "width", { hash: {} }); } - buffer += escapeExpression(stack1) + "
    \n
    \n

    \n (not including chart margins and axes)\n

    \n
    \n\n
    \n \n
    "; - foundHelper = helpers.height; - stack1 = foundHelper || depth0.height; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "height", { hash: {} }); } - buffer += escapeExpression(stack1) + "
    \n
    \n

    \n (not including chart margins and axes)\n

    \n
    \n\n
    \n \n \n

    \n
    \n\n
    \n \n \n

    \n
    \n\n "; - return buffer;}); + if (stack1 = helpers.width) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.width; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + buffer += escapeExpression(stack1) + + "\n
    \n

    \n (not including chart margins and axes)\n

    \n \n\n
    \n \n
    "; + if (stack1 = helpers.height) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.height; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + buffer += escapeExpression(stack1) + + "
    \n
    \n

    \n (not including chart margins and axes)\n

    \n
    \n\n
    \n \n \n

    \n
    \n\n
    \n \n \n

    \n
    \n\n "; + return buffer; + }); })(); \ No newline at end of file diff --git a/static/scripts/templates/compiled/template-visualization-chartDisplay.js b/static/scripts/templates/compiled/template-visualization-chartDisplay.js index 0a4c47660d6..c26807a89e0 100644 --- a/static/scripts/templates/compiled/template-visualization-chartDisplay.js +++ b/static/scripts/templates/compiled/template-visualization-chartDisplay.js @@ -1,20 +1,20 @@ (function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['template-visualization-chartDisplay'] = 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; + this.compilerInfo = [4,'>= 1.0.0']; +helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; + var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression; buffer += ""; - return buffer;}); + if (stack1 = helpers.width) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.width; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + buffer += escapeExpression(stack1) + + "\" height=\""; + if (stack1 = helpers.height) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.height; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + buffer += escapeExpression(stack1) + + "\">"; + return buffer; + }); })(); \ No newline at end of file diff --git a/static/scripts/templates/compiled/template-visualization-dataControl.js b/static/scripts/templates/compiled/template-visualization-dataControl.js index 4e2c70cd9f3..8dc3d7c5098 100644 --- a/static/scripts/templates/compiled/template-visualization-dataControl.js +++ b/static/scripts/templates/compiled/template-visualization-dataControl.js @@ -1,110 +1,51 @@ (function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['template-visualization-dataControl'] = template(function (Handlebars,depth0,helpers,partials,data) { - helpers = helpers || Handlebars.helpers; - var buffer = "", stack1, stack2, foundHelper, tmp1, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression; + 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 \n "; - return buffer;} + 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) + + "\n "; + return buffer; + } function program3(depth0,data) { - var buffer = "", stack1; - buffer += "\n \n "; - return buffer;} - -function program5(depth0,data) { - var buffer = "", stack1; - buffer += "\n \n "; - return buffer;} + return "checked=\"true\""; + } -function program7(depth0,data) { - - - return "checked=\"true\"";} - - buffer += "

    \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

    \n\n "; - buffer += "\n
    \n \n \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 \n
    \n
    \n \n \n
    \n\n "; - buffer += "\n
    \n \n \n

    \n These will be displayed (along with the x and y values) when you hover over\n a data point.\n

    \n
    \n
    \n \n \n
    \n\n " + + "\n
    \n \n \n

    \n These will be displayed (along with the x and y values) when you hover over\n a data point.\n

    \n
    \n
    \n \n \n
    \n\n "; - buffer += "\n
    \n

    Possible headers: "; - foundHelper = helpers.possibleHeaders; - stack1 = foundHelper || depth0.possibleHeaders; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "possibleHeaders", { hash: {} }); } - buffer += escapeExpression(stack1) + "\n

    \n \n \n

    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

    \n \n \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

    \n
    \n\n \n
    "; - return buffer;}); + return buffer; + }); })(); \ No newline at end of file diff --git a/static/scripts/templates/compiled/template-visualization-scatterplotControlForm.js b/static/scripts/templates/compiled/template-visualization-scatterplotControlForm.js index a381c8acd27..fb2a0879f90 100644 --- a/static/scripts/templates/compiled/template-visualization-scatterplotControlForm.js +++ b/static/scripts/templates/compiled/template-visualization-scatterplotControlForm.js @@ -1,33 +1,33 @@ (function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['template-visualization-scatterplotControlForm'] = 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; + this.compilerInfo = [4,'>= 1.0.0']; +helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; + var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression; - buffer += "\n\n
    \n "; - buffer += "\n
      \n "; - buffer += "\n
    • Data Controls
    • \n
    • Chart Controls
    • \n
    • Statistics
    • \n
    • Chart\n "; - buffer += "\n
      \n \n "; - foundHelper = helpers.message; - stack1 = foundHelper || depth0.message; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "message", { hash: {} }); } - buffer += escapeExpression(stack1) + "\n
      \n
    • \n
    \n\n "; - buffer += "\n
    \n "; - buffer += "\n
    \n "; - buffer += "\n
    \n \n "; - buffer += "\n
    \n "; - buffer += "\n
    \n\n "; - buffer += "\n
    \n "; - buffer += "\n
    \n\n "; - buffer += "\n
    \n "; - buffer += "\n
    \n\n
    "; - buffer += "\n
    "; - return buffer;}); + buffer += "\n\n
    \n " + + "\n
      \n " + + "\n
    • Data Controls
    • \n
    • Chart Controls
    • \n
    • Statistics
    • \n
    • Chart\n " + + "\n
      \n \n "; + if (stack1 = helpers.message) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.message; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + buffer += escapeExpression(stack1) + + "\n
      \n
    • \n
    \n\n " + + "\n
    \n " + + "\n
    \n " + + "\n
    \n \n " + + "\n
    \n " + + "\n
    \n\n " + + "\n
    \n " + + "\n
    \n\n " + + "\n
    \n " + + "\n
    \n\n
    " + + "\n
    "; + return buffer; + }); })(); \ No newline at end of file diff --git a/static/scripts/templates/compiled/template-visualization-statsDisplay.js b/static/scripts/templates/compiled/template-visualization-statsDisplay.js index ef3776baaba..841451ec551 100644 --- a/static/scripts/templates/compiled/template-visualization-statsDisplay.js +++ b/static/scripts/templates/compiled/template-visualization-statsDisplay.js @@ -1,40 +1,33 @@ (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, stack2, foundHelper, tmp1, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression; + 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 "; - 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) + ""; - foundHelper = helpers.xval; - stack1 = foundHelper || depth0.xval; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "xval", { hash: {} }); } - buffer += escapeExpression(stack1) + ""; - foundHelper = helpers.yval; - stack1 = foundHelper || depth0.yval; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "yval", { hash: {} }); } - buffer += escapeExpression(stack1) + "\n \n "; - return buffer;} + 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) + + ""; + if (stack1 = helpers.xval) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.xval; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + buffer += escapeExpression(stack1) + + ""; + if (stack1 = helpers.yval) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.yval; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } + buffer += escapeExpression(stack1) + + "\n \n "; + return buffer; + } buffer += "

    By column:

    \n \n \n "; - foundHelper = helpers.stats; - stack1 = foundHelper || depth0.stats; - stack2 = helpers.each; - tmp1 = self.program(1, program1, data); - tmp1.hash = {}; - tmp1.fn = tmp1; - tmp1.inverse = self.noop; - stack1 = stack2.call(depth0, stack1, tmp1); + stack1 = helpers.each.call(depth0, depth0.stats, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data}); if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "\n
    XY
    "; - return buffer;}); + return buffer; + }); })(); \ No newline at end of file diff --git a/static/scripts/templates/compiled/template-warningmessagesmall.js b/static/scripts/templates/compiled/template-warningmessagesmall.js index 709dc4ca06a..f739101613b 100644 --- a/static/scripts/templates/compiled/template-warningmessagesmall.js +++ b/static/scripts/templates/compiled/template-warningmessagesmall.js @@ -1,16 +1,16 @@ (function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['template-warningmessagesmall'] = 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; + this.compilerInfo = [4,'>= 1.0.0']; +helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; + var buffer = "", stack1, functionType="function"; buffer += " \n
    "; - foundHelper = helpers.warning; - stack1 = foundHelper || depth0.warning; - if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } - else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "warning", { hash: {} }); } + if (stack1 = helpers.warning) { stack1 = stack1.call(depth0, {hash:{},data:data}); } + else { stack1 = depth0.warning; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "
    "; - return buffer;}); + return buffer; + }); })(); \ No newline at end of file diff --git a/static/scripts/templates/compiled/tool_form.js b/static/scripts/templates/compiled/tool_form.js index 90c3df89429..0c60e9ad842 100644 --- a/static/scripts/templates/compiled/tool_form.js +++ b/static/scripts/templates/compiled/tool_form.js @@ -1,8 +1,8 @@ (function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['tool_form'] = template(function (Handlebars,depth0,helpers,partials,data) { - this.compilerInfo = [2,'>= 1.0.0-rc.3']; -helpers = helpers || Handlebars.helpers; data = 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) { diff --git a/static/scripts/templates/compiled/tool_link.js b/static/scripts/templates/compiled/tool_link.js index cb9d1f44bb9..69275e1e9de 100644 --- a/static/scripts/templates/compiled/tool_link.js +++ b/static/scripts/templates/compiled/tool_link.js @@ -1,8 +1,8 @@ (function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['tool_link'] = template(function (Handlebars,depth0,helpers,partials,data) { - this.compilerInfo = [2,'>= 1.0.0-rc.3']; -helpers = helpers || Handlebars.helpers; data = data || {}; + this.compilerInfo = [4,'>= 1.0.0']; +helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression; diff --git a/static/scripts/templates/compiled/tool_search.js b/static/scripts/templates/compiled/tool_search.js index 559bb2eb00c..0336d9a8653 100644 --- a/static/scripts/templates/compiled/tool_search.js +++ b/static/scripts/templates/compiled/tool_search.js @@ -1,8 +1,8 @@ (function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['tool_search'] = template(function (Handlebars,depth0,helpers,partials,data) { - this.compilerInfo = [2,'>= 1.0.0-rc.3']; -helpers = helpers || Handlebars.helpers; data = data || {}; + this.compilerInfo = [4,'>= 1.0.0']; +helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression;