Merge pull request #2534 from anoek/2510

Fix funky layout on failed project job template warning
This commit is contained in:
Akita Noek
2016-06-22 09:44:07 -04:00
committed by GitHub
2 changed files with 12 additions and 12 deletions

View File

@@ -278,17 +278,17 @@
var msg; var msg;
switch (data.status) { switch (data.status) {
case 'failed': case 'failed':
msg = "The selected project has a <em>failed</em> status. Review the project's SCM settings" + msg = "<div>The selected project has a <em>failed</em> status. Review the project's SCM settings" +
" and run an update before adding it to a template."; " and run an update before adding it to a template.</div>";
break; break;
case 'never updated': case 'never updated':
msg = 'The selected project has a <em>never updated</em> status. You will need to run a successful' + msg = '<div>The selected project has a <em>never updated</em> status. You will need to run a successful' +
' update in order to selected a playbook. Without a valid playbook you will not be able ' + ' update in order to selected a playbook. Without a valid playbook you will not be able ' +
' to save this template.'; ' to save this template.</div>';
break; break;
case 'missing': case 'missing':
msg = 'The selected project has a status of <em>missing</em>. Please check the server and make sure ' + msg = '<div>The selected project has a status of <em>missing</em>. Please check the server and make sure ' +
' the directory exists and file permissions are set correctly.'; ' the directory exists and file permissions are set correctly.</div>';
break; break;
} }
if (msg) { if (msg) {

View File

@@ -198,17 +198,17 @@ export default
var msg; var msg;
switch (data.status) { switch (data.status) {
case 'failed': case 'failed':
msg = "The selected project has a <em>failed</em> status. Review the project's SCM settings" + msg = "<div>The selected project has a <em>failed</em> status. Review the project's SCM settings" +
" and run an update before adding it to a template."; " and run an update before adding it to a template.</div>";
break; break;
case 'never updated': case 'never updated':
msg = 'The selected project has a <em>never updated</em> status. You will need to run a successful' + msg = '<div>The selected project has a <em>never updated</em> status. You will need to run a successful' +
' update in order to selected a playbook. Without a valid playbook you will not be able ' + ' update in order to selected a playbook. Without a valid playbook you will not be able ' +
' to save this template.'; ' to save this template.</div>';
break; break;
case 'missing': case 'missing':
msg = 'The selected project has a status of <em>missing</em>. Please check the server and make sure ' + msg = '<div>The selected project has a status of <em>missing</em>. Please check the server and make sure ' +
' the directory exists and file permissions are set correctly.'; ' the directory exists and file permissions are set correctly.</div>';
break; break;
} }
Wait('stop'); Wait('stop');