mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
2 lines
1.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
define([],function(){return{help:function(a){return'<div class="toolHelp" style="overflow: auto;"><div class="toolHelpBody">'+a.help+"</div></div>"},success:function(a){if(!a.jobs||!a.jobs.length)return this.error(a);var b=a.jobs.length,c="";c=1==b?"1 job has":b+" jobs have";var d='<div class="donemessagelarge"><p>'+c+" been successfully added to the queue - resulting in the following datasets:</p>";for(var e in a.outputs)d+='<p style="padding: 10px 20px;"><b>'+a.outputs[e].hid+": "+a.outputs[e].name+"</b></p>";return d+="<p>You can check the status of queued jobs and view the resulting data by refreshing the History pane. When the job has been run the status will change from 'running' to 'finished' if completed successfully or 'error' if problems were encountered.</p></div>"},error:function(a){return'<div><p>The server could not complete the request. Please contact the Galaxy Team if this error persists.</p><textarea class="ui-textarea" disabled style="color: black; height: 300px !important;">'+JSON.stringify(a,void 0,4)+"</textarea></div>"},requirements:function(a){var b="This tool requires ";for(var c in a.requirements){var d=a.requirements[c];b+=d.name,d.version&&(b+=" (Version "+d.version+")"),c<a.requirements.length-2&&(b+=", "),c==a.requirements.length-2&&(b+=" and ")}return b+'. Click <a target="_blank" href="https://wiki.galaxyproject.org/Tools/Requirements">here</a> for more information.'}}});
|
|
//# sourceMappingURL=../../../maps/mvc/tools/tools-template.js.map
|