mirror of https://github.com/rancher/ui.git
Base url was a bad choice...
This commit is contained in:
parent
ffd50935b4
commit
173f2c5e95
|
|
@ -58,11 +58,11 @@
|
|||
{{#if expanded}}
|
||||
<tr class="sub-row hide">{{! make the alternating color match }}</tr>
|
||||
<tr class="sub-row no-top">
|
||||
<td colspan="{{fullColspan}}" class="p-0">
|
||||
<td colspan="{{fullColspan}}" class="pr-40 pl-40">
|
||||
{{container-table
|
||||
body=model.instances
|
||||
stickyHeader=false
|
||||
bulkActions=true
|
||||
bulkActions=false
|
||||
search=false
|
||||
searchText=searchText
|
||||
subRow=true
|
||||
|
|
|
|||
|
|
@ -14,8 +14,10 @@ const defaultStateMap = {
|
|||
'degraded': {icon: 'icon icon-alert', color: 'text-warning'},
|
||||
'disconnected': {icon: 'icon icon-alert', color: 'text-warning'},
|
||||
'error': {icon: 'icon icon-alert', color: 'text-error' },
|
||||
'erroring': {icon: 'icon icon-alert', color: 'text-error' },
|
||||
'inactive': {icon: 'icon icon-circle', color: 'text-error' },
|
||||
'initializing': {icon: 'icon icon-alert', color: 'text-warning'},
|
||||
'migrating': {icon: 'icon icon-info', color: 'text-info' },
|
||||
'provisioning': {icon: 'icon icon-circle', color: 'text-info' },
|
||||
'purged': {icon: 'icon icon-purged', color: 'text-error' },
|
||||
'purging': {icon: 'icon icon-purged', color: 'text-info' },
|
||||
|
|
@ -26,6 +28,7 @@ const defaultStateMap = {
|
|||
'registering': {icon: 'icon icon-tag', color: 'text-info' },
|
||||
'reinitializing': {icon: 'icon icon-alert', color: 'text-warning'},
|
||||
'restoring': {icon: 'icon icon-medicalcross', color: 'text-info' },
|
||||
'restarting': {icon: 'icon icon-adjust', color: 'text-info' },
|
||||
'running': {icon: 'icon icon-circle-o', color: 'text-success'},
|
||||
'snapshotted': {icon: 'icon icon-snapshot', color: 'text-warning'},
|
||||
'started-once': {icon: 'icon icon-dot-circlefill',color: 'text-success'},
|
||||
|
|
@ -36,9 +39,11 @@ const defaultStateMap = {
|
|||
'updating': {icon: 'icon icon-tag', color: 'text-info' },
|
||||
'updating-active': {icon: 'icon icon-tag', color: 'text-info' },
|
||||
'updating-healthy': {icon: 'icon icon-tag', color: 'text-info' },
|
||||
'updating-unhealthy': {icon: 'icon icon-tag', color: 'text-info' },
|
||||
'updating-reinitializing': {icon: 'icon icon-alert', color: 'text-info' },
|
||||
'updating-inactive': {icon: 'icon icon-tag', color: 'text-info' },
|
||||
'updating-unhealthy': {icon: 'icon icon-tag', color: 'text-info' },
|
||||
'updating-reinitializing': {icon: 'icon icon-alert', color: 'text-warning'},
|
||||
'updating-running': {icon: 'icon icon-tag', color: 'text-info' },
|
||||
'updating-stopped': {icon: 'icon icon-tag', color: 'text-info' },
|
||||
'waiting': {icon: 'icon icon-tag', color: 'text-info' },
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ module.exports = function(app/*, options*/) {
|
|||
const rancherApiUrl = `${config.apiServer}${config.apiEndpoint}`;
|
||||
const tablePrefix = process.env.DB_TABLE_PREFIX || '';
|
||||
|
||||
const baseUrl = process.env.BASE_URL || ('https://' + process.env.RANCHER);
|
||||
const siteUrl = process.env.SITE_URL || ('https://' + process.env.RANCHER);
|
||||
|
||||
app.use(bodyParser.json()); // for parsing application/json
|
||||
|
||||
|
|
@ -313,7 +313,7 @@ module.exports = function(app/*, options*/) {
|
|||
var from_email = new helper.Email('no-reply@rancher.com');
|
||||
var to_email = new helper.Email(email);
|
||||
var subject = 'Password Reset Request';
|
||||
var contentLink = `<html><a href="${baseUrl}/verify-reset-password/${token}">Reset Password</a></html>`;
|
||||
var contentLink = `<html><a href="${siteUrl}/verify-reset-password/${token}">Reset Password</a></html>`;
|
||||
var content = new helper.Content(
|
||||
'text/html', contentLink);
|
||||
var mail = new helper.Mail(from_email, subject, to_email, content);
|
||||
|
|
@ -344,7 +344,7 @@ module.exports = function(app/*, options*/) {
|
|||
var from_email = new helper.Email('no-reply@rancher.com');
|
||||
var to_email = new helper.Email(email);
|
||||
var subject = 'Verify your Rancher Cloud Account';
|
||||
var contentLink = `<html><a href="${baseUrl}/verify/${token}">Verify Email</a></html>`;
|
||||
var contentLink = `<html><a href="${siteUrl}/verify/${token}">Verify Email</a></html>`;
|
||||
var content = new helper.Content(
|
||||
'text/html', contentLink);
|
||||
var mail = new helper.Mail(from_email, subject, to_email, content);
|
||||
|
|
@ -370,7 +370,7 @@ module.exports = function(app/*, options*/) {
|
|||
var from_email = new helper.Email('no-reply@rancher.com');
|
||||
var to_email = new helper.Email(email);
|
||||
var subject = 'Password Reset Confirmation';
|
||||
var contentLink = `<html><a href="${baseUrl}/login?resetpw=true">Reset Password</a></html>`;
|
||||
var contentLink = `<html><a href="${siteUrl}/login?resetpw=true">Reset Password</a></html>`;
|
||||
var content = new helper.Content(
|
||||
'text/html', contentLink);
|
||||
var mail = new helper.Mail(from_email, subject, to_email, content);
|
||||
|
|
|
|||
Loading…
Reference in New Issue