1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/e8fac2f5d93f/ Changeset: e8fac2f5d93f User: carlfeberhard Date: 2014-03-20 19:16:13 Summary: Remove handlebars common-template helpers, remove unused templates Affected #: 9 files diff -r 261d9bab3d12b2bf6fb0ab2e57a8a08e85cbc408 -r e8fac2f5d93f1ab7b87041dd5b1878705e8178af static/scripts/packed/templates/compiled/helpers-common-templates.js --- a/static/scripts/packed/templates/compiled/helpers-common-templates.js +++ /dev/null @@ -1,1 +0,0 @@ -Handlebars.registerHelper("local",function(a){return _l(a.fn(this))});Handlebars.registerHelper("n2br",function(a){return a.fn(this).replace(/\n/g,"<br/>")}); \ No newline at end of file diff -r 261d9bab3d12b2bf6fb0ab2e57a8a08e85cbc408 -r e8fac2f5d93f1ab7b87041dd5b1878705e8178af static/scripts/packed/templates/compiled/template-iconButton.js --- a/static/scripts/packed/templates/compiled/template-iconButton.js +++ /dev/null @@ -1,1 +0,0 @@ -(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a["template-iconButton"]=b(function(i,j,g,e,h){this.compilerInfo=[4,">= 1.0.0"];g=this.merge(g,i.helpers);e=this.merge(e,i.partials);h=h||{};var c="",f,d=this;c+="\n";f=d.invokePartial(e.iconButton,"iconButton",j,g,e,h);if(f||f===0){c+=f}return c})})(); \ No newline at end of file diff -r 261d9bab3d12b2bf6fb0ab2e57a8a08e85cbc408 -r e8fac2f5d93f1ab7b87041dd5b1878705e8178af static/scripts/packed/templates/compiled/template-warningmessagesmall.js --- a/static/scripts/packed/templates/compiled/template-warningmessagesmall.js +++ /dev/null @@ -1,1 +0,0 @@ -(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a["template-warningmessagesmall"]=b(function(i,j,f,d,g){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,i.helpers);g=g||{};var c="",e,h="function";c+=' \n <div class="warningmessagesmall"><strong>';if(e=f.warning){e=e.call(j,{hash:{},data:g})}else{e=j.warning;e=typeof e===h?e.apply(j):e}if(e||e===0){c+=e}c+="</strong></div>";return c})})(); \ No newline at end of file diff -r 261d9bab3d12b2bf6fb0ab2e57a8a08e85cbc408 -r e8fac2f5d93f1ab7b87041dd5b1878705e8178af static/scripts/templates/common-templates.html --- a/static/scripts/templates/common-templates.html +++ /dev/null @@ -1,15 +0,0 @@ -<script type="text/javascript" class="helper-common" id="helper-local"> -/** Calls _l (from base-mvc.js) to localize strings (if poosible) - * This helper is specifically for localization within templates - */ -Handlebars.registerHelper( 'local', function( options ){ - return _l( options.fn( this ) ); -}); -</script> - -<script type="text/javascript" class="helper-common" id="helper-n2br"> -/** replace newlines with breaks */ -Handlebars.registerHelper( 'n2br', function( options ){ - return options.fn( this ).replace( /\n/g, '<br/>' ); -}); -</script> diff -r 261d9bab3d12b2bf6fb0ab2e57a8a08e85cbc408 -r e8fac2f5d93f1ab7b87041dd5b1878705e8178af static/scripts/templates/compiled/helpers-common-templates.js --- a/static/scripts/templates/compiled/helpers-common-templates.js +++ /dev/null @@ -1,10 +0,0 @@ -/** Calls _l (from base-mvc.js) to localize strings (if poosible) - * This helper is specifically for localization within templates - */ -Handlebars.registerHelper( 'local', function( options ){ - return _l( options.fn( this ) ); -}); -/** replace newlines with breaks */ -Handlebars.registerHelper( 'n2br', function( options ){ - return options.fn( this ).replace( /\n/g, '<br/>' ); -}); \ No newline at end of file diff -r 261d9bab3d12b2bf6fb0ab2e57a8a08e85cbc408 -r e8fac2f5d93f1ab7b87041dd5b1878705e8178af static/scripts/templates/compiled/template-iconButton.js --- a/static/scripts/templates/compiled/template-iconButton.js +++ /dev/null @@ -1,14 +0,0 @@ -(function() { - var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; -templates['template-iconButton'] = template(function (Handlebars,depth0,helpers,partials,data) { - 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 = self.invokePartial(partials.iconButton, 'iconButton', depth0, helpers, partials, data); - if(stack1 || stack1 === 0) { buffer += stack1; } - return buffer; - }); -})(); \ No newline at end of file diff -r 261d9bab3d12b2bf6fb0ab2e57a8a08e85cbc408 -r e8fac2f5d93f1ab7b87041dd5b1878705e8178af static/scripts/templates/compiled/template-warningmessagesmall.js --- a/static/scripts/templates/compiled/template-warningmessagesmall.js +++ /dev/null @@ -1,16 +0,0 @@ -(function() { - var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; -templates['template-warningmessagesmall'] = 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"; - - - buffer += " \n <div class=\"warningmessagesmall\"><strong>"; - 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 += "</strong></div>"; - return buffer; - }); -})(); \ No newline at end of file diff -r 261d9bab3d12b2bf6fb0ab2e57a8a08e85cbc408 -r e8fac2f5d93f1ab7b87041dd5b1878705e8178af templates/webapps/galaxy/dataset/tabular_chunked.mako --- a/templates/webapps/galaxy/dataset/tabular_chunked.mako +++ b/templates/webapps/galaxy/dataset/tabular_chunked.mako @@ -6,7 +6,6 @@ <%def name="javascripts()"> ${parent.javascripts()} ${h.js( "libs/require" )} - ${h.templates("helpers-common-templates")} <script type="text/javascript"> require.config({ @@ -36,4 +35,4 @@ ${parent.stylesheets()} </%def> -${ render_deleted_data_message( dataset ) } \ No newline at end of file +${ render_deleted_data_message( dataset ) } diff -r 261d9bab3d12b2bf6fb0ab2e57a8a08e85cbc408 -r e8fac2f5d93f1ab7b87041dd5b1878705e8178af templates/webapps/galaxy/galaxy.masthead.mako --- a/templates/webapps/galaxy/galaxy.masthead.mako +++ b/templates/webapps/galaxy/galaxy.masthead.mako @@ -66,7 +66,6 @@ } %> - ${h.templates( "helpers-common-templates" )} ${h.js( "mvc/base-mvc", "utils/localization", "mvc/user/user-model", "mvc/user/user-quotameter" )} ## load the frame manager Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.