Commit cba7add4 authored by Leigh Stoller's avatar Leigh Stoller

Add a footer to the Error Messages panel, with email link. The URL

provides the subject and a body that has the URL of the experiment.
parent 7f6e743c
......@@ -40,6 +40,12 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
dossh = window.APT_OPTIONS.dossh;
extend = window.APT_OPTIONS.extend || null;
var instanceStatus = window.APT_OPTIONS.instanceStatus;
var errorURL = (window.ISCLOUD ?
"cloudlab-ops@cloudlab.us" : "aptlab-ops@aptlab.net") +
"?subject=" +
encodeURIComponent("Help needed for instance: " + uuid) +
"&body=" + encodeURIComponent("\n\nInstance URL: " +
document.location.href);
// Generate the templates.
var template_args = {
......@@ -54,6 +60,7 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
publicURL: window.APT_OPTIONS.publicURL,
registered: window.APT_OPTIONS.registered,
isadmin: window.APT_OPTIONS.isadmin,
errorURL: errorURL,
// The status panel starts out collapsed.
status_panel_show: (instanceStatus == "ready" ? false : true),
};
......
......@@ -104,6 +104,10 @@
<div class="panel-body">
<code style="white-space: pre-wrap" id="error_panel_text"></code>
</div>
<div class="panel-footer">
Not sure what the error message means or how to proceed? Send us an
<a href="mailto:<%= errorURL %>">email message</a>.
</div>
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment