From 38e725ff66bfd3e5c0bceef2a937644f8b1bc8c5 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Mon, 8 Jan 2018 17:01:38 -0500 Subject: [PATCH] Template formatting. --- .../scripts/mvc/dataset/dataset-error.js | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/client/galaxy/scripts/mvc/dataset/dataset-error.js b/client/galaxy/scripts/mvc/dataset/dataset-error.js index e545343926a..3d7089bc6d1 100644 --- a/client/galaxy/scripts/mvc/dataset/dataset-error.js +++ b/client/galaxy/scripts/mvc/dataset/dataset-error.js @@ -50,16 +50,22 @@ var View = Backbone.View.extend({ /** Render the view */ render_error_page: function(dataset, job) { - this.$el.empty().append(this._templateHeader()); - this.$el.append("

Dataset Error

"); - this.$el.append(`

An error occured while running the tool ${job.tool_id}.

`); - this.$el.append("

Tool execution generated the following messages:

"); - this.$el.append(`
${_.escape(job.stderr)}
`); - this.$el.append("

Report This Error"); - this.$el.append( - "

Usually the local Galaxy administrators regularly review errors that occur on the server. However, if you would like to provide additional information (such as what you were trying to do when the error occurred) and a contact e-mail address, we will be better able to investigate your problem and get back to you.

" - ); - this.$el.append(this._getBugFormTemplate(dataset, job)); + this.$el.empty().append(` + ${this._templateHeader()} +

Dataset Error

+

An error occured while running the tool ${job.tool_id}.

+

Tool execution generated the following messages:

+
+                ${_.escape(job.stderr)}
+            
+

Report This Error +

+ Usually the local Galaxy administrators regularly review errors that occur on the server + However, if you would like to provide additional information (such as what you were trying + to do when the error occurred) and a contact e-mail address, we will be better able to + investigate your problem and get back to you. +

+ ${this._getBugFormTemplate(dataset, job)}`); }, /** Display actions messages */