From a02cd42570f096350421394cfdab7879aa68bf0e Mon Sep 17 00:00:00 2001 From: Lucy Fu Date: Thu, 27 Apr 2023 22:46:06 +0000 Subject: [PATCH] Fixes #36328 - display short host name in Content Hosts page --- .../bastion_katello/content-hosts/content-hosts.routes.js | 2 +- .../content/views/content-host-debs-actions.html | 2 +- .../content/views/content-host-debs-applicable.html | 2 +- .../content/views/content-host-debs-installed.html | 2 +- .../content-hosts/content/views/content-host-errata.html | 6 +++--- .../content/views/content-host-module-streams.html | 2 +- .../content/views/content-host-packages-actions.html | 2 +- .../content/views/content-host-packages-applicable.html | 2 +- .../content/views/content-host-packages-installed.html | 2 +- .../content-hosts/content/views/content-host-traces.html | 6 +++--- .../details/content-host-add-host-collections.controller.js | 2 +- .../details/content-host-host-collections.controller.js | 2 +- .../details/views/content-host-add-subscriptions.html | 2 +- .../content-hosts/details/views/content-host-details.html | 6 +++--- .../details/views/content-host-host-collections.html | 2 +- .../content-hosts/details/views/content-host-info.html | 6 +++--- .../details/views/content-host-provisioning-info.html | 4 ++-- .../details/views/content-host-subscriptions-list.html | 2 +- .../details/views/content-host-subscriptions.html | 2 +- .../bastion_katello/content-hosts/views/content-hosts.html | 6 +++--- 20 files changed, 31 insertions(+), 31 deletions(-) diff --git a/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.routes.js b/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.routes.js index 2d600ddda8c..62db42ae466 100644 --- a/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.routes.js +++ b/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.routes.js @@ -51,7 +51,7 @@ angular.module('Bastion.content-hosts').config(['$stateProvider', function ($sta controller: 'ContentHostDetailsInfoController', templateUrl: 'content-hosts/details/views/content-host-info.html', ncyBreadcrumb: { - label: "{{ host.name }}", + label: "{{ host.display_name }}", parent: 'content-hosts' } }) diff --git a/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-actions.html b/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-actions.html index be13ef660ee..deaa02fe0a7 100644 --- a/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-actions.html +++ b/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-actions.html @@ -1,4 +1,4 @@ -{{ 'Packages for: ' | translate }} {{ host.name }} +{{ 'Packages for: ' | translate }} {{ host.display_name }}

Package Actions

diff --git a/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-applicable.html b/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-applicable.html index c3830070026..b367365246e 100644 --- a/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-applicable.html +++ b/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-applicable.html @@ -1,4 +1,4 @@ -{{ 'Deb Packages for: ' | translate }} {{ host.name }} +{{ 'Deb Packages for: ' | translate }} {{ host.display_name }}

Applicable Deb Packages

diff --git a/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-installed.html b/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-installed.html index 1f4936127ee..27cc2d95383 100644 --- a/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-installed.html +++ b/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-installed.html @@ -1,4 +1,4 @@ -{{ 'Packages for: ' | translate }} {{ host.name }} +{{ 'Packages for: ' | translate }} {{ host.display_name }}

diff --git a/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html b/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html index eea49695626..378936bb8e6 100644 --- a/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +++ b/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html @@ -1,4 +1,4 @@ -{{ 'Errata for: ' | translate }} {{ host.name }} +{{ 'Errata for: ' | translate }} {{ host.display_name }}

Applicable Errata

@@ -53,8 +53,8 @@

Installable Errata
-
Apply Errata to Content Host "{{host.name}}"?
-
Are you sure you want to apply Errata to content host "{{ host.name }}"?
+
Apply Errata to Content Host "{{host.displayname}}"?
+
Are you sure you want to apply Errata to content host "{{ host.displayname }}"?