diff --git a/ui/core/.template-lintrc.js b/ui/core/.template-lintrc.js
index 61df6a727..4db5af2b0 100644
--- a/ui/core/.template-lintrc.js
+++ b/ui/core/.template-lintrc.js
@@ -4,7 +4,7 @@ module.exports = {
extends: 'octane',
rules: {
'no-bare-strings': true,
- 'no-curly-component-invocation': { allow: ['app-name'] },
- 'no-implicit-this': { allow: ['app-name'] }
+ 'no-curly-component-invocation': { allow: ['app-name', 'company-name', 'company-copyright'] },
+ 'no-implicit-this': { allow: ['app-name', 'company-name', 'company-copyright', 'doc-url'] }
}
};
diff --git a/ui/core/app/helpers/company-copyright.js b/ui/core/app/helpers/company-copyright.js
new file mode 100644
index 000000000..f4e799954
--- /dev/null
+++ b/ui/core/app/helpers/company-copyright.js
@@ -0,0 +1,7 @@
+import { helper } from '@ember/component/helper';
+import config from '../config/environment';
+
+export default helper(function companyCopyright() {
+ const currentYear = new Date().getFullYear();
+ return `© ${currentYear} ${config.companyName}`;
+});
diff --git a/ui/core/app/helpers/company-name.js b/ui/core/app/helpers/company-name.js
new file mode 100644
index 000000000..78d99f2e7
--- /dev/null
+++ b/ui/core/app/helpers/company-name.js
@@ -0,0 +1,6 @@
+import { helper } from '@ember/component/helper';
+import config from '../config/environment';
+
+export default helper(function companyName() {
+ return config.companyName;
+});
diff --git a/ui/core/app/helpers/doc-url.js b/ui/core/app/helpers/doc-url.js
index ae10962ce..e31e4932a 100644
--- a/ui/core/app/helpers/doc-url.js
+++ b/ui/core/app/helpers/doc-url.js
@@ -5,7 +5,7 @@ import config from '../config/environment';
export default helper(function docUrl(params/*, hash*/) {
const baseURL = config.documentation.baseURL;
- const docKey = params[0];
+ const docKey = params[0] || '';
const configuredPath = get(config.documentation, docKey);
if (docKey) {
assert(`
diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set.js
index 91a502f82..4d88c52b1 100644
--- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set.js
+++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set.js
@@ -23,7 +23,7 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHo
super.renderTemplate(...arguments);
this.render(
- 'scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/-header',
+ 'scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/-header',
{
into: 'scopes/scope/projects/project/host-catalogs/host-catalog',
outlet: 'header',
@@ -32,7 +32,7 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHo
);
this.render(
- 'scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/-navigation',
+ 'scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/-navigation',
{
into: 'scopes/scope/projects/project/host-catalogs/host-catalog',
outlet: 'navigation',
@@ -41,7 +41,7 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHo
);
this.render(
- 'scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/-actions',
+ 'scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/-actions',
{
into: 'scopes/scope/projects/project/host-catalogs/host-catalog',
outlet: 'actions',
diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host.js
index 1cfa23223..da1ca0685 100644
--- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host.js
+++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host.js
@@ -23,7 +23,7 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsHostR
super.renderTemplate(...arguments);
this.render(
- 'scopes/scope/projects/project/host-catalogs/host-catalog/hosts/-header',
+ 'scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/-header',
{
into: 'scopes/scope/projects/project/host-catalogs/host-catalog',
outlet: 'header',
@@ -32,7 +32,7 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsHostR
);
this.render(
- 'scopes/scope/projects/project/host-catalogs/host-catalog/hosts/-navigation',
+ 'scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/-navigation',
{
into: 'scopes/scope/projects/project/host-catalogs/host-catalog',
outlet: 'navigation',
@@ -41,7 +41,7 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsHostR
);
this.render(
- 'scopes/scope/projects/project/host-catalogs/host-catalog/hosts/-actions',
+ 'scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/-actions',
{
into: 'scopes/scope/projects/project/host-catalogs/host-catalog',
outlet: 'actions',
diff --git a/ui/core/app/templates/application.hbs b/ui/core/app/templates/application.hbs
index fa96053b4..ac4f0eac3 100644
--- a/ui/core/app/templates/application.hbs
+++ b/ui/core/app/templates/application.hbs
@@ -59,11 +59,13 @@
{{t "resources.auth-method.description"}}
{{t "resources.auth-method.description"}}
{{t "resources.group.description"}}
{{t "resources.group.description"}}
{{t "resources.org.description"}}
{{/if}} diff --git a/ui/core/app/templates/scopes/scope/projects/index.hbs b/ui/core/app/templates/scopes/scope/projects/index.hbs index 6173aeffb..fca7f0fae 100644 --- a/ui/core/app/templates/scopes/scope/projects/index.hbs +++ b/ui/core/app/templates/scopes/scope/projects/index.hbs @@ -5,7 +5,10 @@{{t "resources.project.description"}}
{{/if}} diff --git a/ui/core/app/templates/scopes/scope/projects/project/host-catalogs/host-catalog/-header.hbs b/ui/core/app/templates/scopes/scope/projects/project/host-catalogs/host-catalog/-header.hbs index 647741ad9..f4d885fae 100644 --- a/ui/core/app/templates/scopes/scope/projects/project/host-catalogs/host-catalog/-header.hbs +++ b/ui/core/app/templates/scopes/scope/projects/project/host-catalogs/host-catalog/-header.hbs @@ -1,4 +1,7 @@ -{{t "resources.host-catalog.description"}}
{{t "resources.host-set.description"}}
{{t "resources.host.description"}}
{{t "resources.host-catalog.description"}}
{{t "resources.project.description"}}
{{t "resources.session.description"}}
{{t "resources.target.description"}}
{{/if}} diff --git a/ui/core/app/templates/scopes/scope/projects/project/targets/target/-header.hbs b/ui/core/app/templates/scopes/scope/projects/project/targets/target/-header.hbs index b6f507ea4..b94a925a8 100644 --- a/ui/core/app/templates/scopes/scope/projects/project/targets/target/-header.hbs +++ b/ui/core/app/templates/scopes/scope/projects/project/targets/target/-header.hbs @@ -1,4 +1,7 @@ -{{t "resources.target.description"}}
{{t "resources.role.description"}}
{{/if}} diff --git a/ui/core/app/templates/scopes/scope/roles/role/-header.hbs b/ui/core/app/templates/scopes/scope/roles/role/-header.hbs index 03164c9b2..a04e5edc1 100644 --- a/ui/core/app/templates/scopes/scope/roles/role/-header.hbs +++ b/ui/core/app/templates/scopes/scope/roles/role/-header.hbs @@ -1,4 +1,7 @@ -{{t "resources.role.description"}}
{{t "resources.role.grant.description"}}
{{@model.id}}
-{{t "resources.role.principal.description"}}
{{t "resources.user.description"}}
{{/if}} diff --git a/ui/core/app/templates/scopes/scope/users/user/-header.hbs b/ui/core/app/templates/scopes/scope/users/user/-header.hbs index d67b6c679..1f80dcfc5 100644 --- a/ui/core/app/templates/scopes/scope/users/user/-header.hbs +++ b/ui/core/app/templates/scopes/scope/users/user/-header.hbs @@ -1,4 +1,7 @@ -{{t "resources.user.description"}}