From 3cfd3a4f2c2bfe4c4b44651845a78ec239bba9d7 Mon Sep 17 00:00:00 2001 From: digitalfishpond Date: Tue, 31 May 2016 09:56:05 +0200 Subject: [PATCH] Status icons for Pods visible on list and resources pages --- i18n/messages-en.xtb | 2 ++ i18n/messages-ja.xtb | 2 ++ src/app/frontend/podlist/podcardlist.html | 13 +++++++++++++ src/app/frontend/podlist/podcardlist_component.js | 13 +++++++++++++ src/app/frontend/podlist/podlist.html | 2 +- .../frontend/replicasetdetail/replicasetdetail.html | 2 +- .../replicationcontrollerdetail.html | 2 +- src/app/frontend/servicedetail/servicedetail.html | 2 +- src/app/frontend/workloads/workloads.html | 2 +- 9 files changed, 35 insertions(+), 5 deletions(-) diff --git a/i18n/messages-en.xtb b/i18n/messages-en.xtb index a837df3d7919..0d82d105b6cd 100644 --- a/i18n/messages-en.xtb +++ b/i18n/messages-en.xtb @@ -67,6 +67,8 @@ Processes in privileged containers are equivalent to processes running as root on the host. Environment variables available for use in the container. Values can reference other variables using $(VAR_NAME) syntax. Number of pods must be a positive integer + This pod has errors. + This pod is in a pending state. Deploy a Containerized App Specify app details below Upload a YAML or JSON file diff --git a/i18n/messages-ja.xtb b/i18n/messages-ja.xtb index a3d8ba12ecd4..7bec982c27ce 100644 --- a/i18n/messages-ja.xtb +++ b/i18n/messages-ja.xtb @@ -67,6 +67,8 @@ Processes in privileged containers are equivalent to processes running as root on the host. Environment variables available for use in the container. Values can reference other variables using $(VAR_NAME) syntax. Number of pods must be a positive integer + This pod has errors. + This pod is in a pending state. Deploy a Containerized App Specify app details below Upload a YAML or JSON file diff --git a/src/app/frontend/podlist/podcardlist.html b/src/app/frontend/podlist/podcardlist.html index 554d5a5703a7..5883db1c71ef 100644 --- a/src/app/frontend/podlist/podcardlist.html +++ b/src/app/frontend/podlist/podcardlist.html @@ -31,6 +31,19 @@ + + + error + {{::$ctrl.i18n.MSG_POD_IS_FAILED_TOOLTIP}} + + + timelapse + {{::$ctrl.i18n.MSG_POD_IS_PENDING_TOOLTIP}} + + + beenhere + +
diff --git a/src/app/frontend/podlist/podcardlist_component.js b/src/app/frontend/podlist/podcardlist_component.js index 590c94e63c7b..85ef990a56b4 100644 --- a/src/app/frontend/podlist/podcardlist_component.js +++ b/src/app/frontend/podlist/podcardlist_component.js @@ -38,6 +38,11 @@ export class PodCardListController { /** @private {!ui.router.$state} */ this.state_ = $state; + + /** + * @export + */ + this.i18n = i18n; } /** @@ -77,3 +82,11 @@ export const podCardListComponent = { 'withStatuses': '<', }, }; + +const i18n = { + /** @export {string} @desc tooltip for failed pod card icon */ + MSG_POD_IS_FAILED_TOOLTIP: goog.getMsg('This pod has errors.'), + + /** @export {string} @desc tooltip for pending pod card icon */ + MSG_POD_IS_PENDING_TOOLTIP: goog.getMsg('This pod is in a pending state.'), +}; diff --git a/src/app/frontend/podlist/podlist.html b/src/app/frontend/podlist/podlist.html index 7f8529c85fac..8350f2120d91 100644 --- a/src/app/frontend/podlist/podlist.html +++ b/src/app/frontend/podlist/podlist.html @@ -15,7 +15,7 @@ --> - + diff --git a/src/app/frontend/replicasetdetail/replicasetdetail.html b/src/app/frontend/replicasetdetail/replicasetdetail.html index 7ab6e38b5bdb..7a73a5abb250 100644 --- a/src/app/frontend/replicasetdetail/replicasetdetail.html +++ b/src/app/frontend/replicasetdetail/replicasetdetail.html @@ -24,7 +24,7 @@ Pods + logs-href-fn="::ctrl.getPodLogsHref(pod)" with-statuses="true"> diff --git a/src/app/frontend/replicationcontrollerdetail/replicationcontrollerdetail.html b/src/app/frontend/replicationcontrollerdetail/replicationcontrollerdetail.html index 51d9017c4e4e..65f508f3a0d3 100644 --- a/src/app/frontend/replicationcontrollerdetail/replicationcontrollerdetail.html +++ b/src/app/frontend/replicationcontrollerdetail/replicationcontrollerdetail.html @@ -34,7 +34,7 @@ Pods + logs-href-fn="::ctrl.getPodLogsHref(pod)" with-statuses="true"> diff --git a/src/app/frontend/servicedetail/servicedetail.html b/src/app/frontend/servicedetail/servicedetail.html index d21ceea5ebf7..2889bd663809 100644 --- a/src/app/frontend/servicedetail/servicedetail.html +++ b/src/app/frontend/servicedetail/servicedetail.html @@ -19,6 +19,6 @@ Pods - + diff --git a/src/app/frontend/workloads/workloads.html b/src/app/frontend/workloads/workloads.html index 308b7ca81a38..c0c14819f853 100644 --- a/src/app/frontend/workloads/workloads.html +++ b/src/app/frontend/workloads/workloads.html @@ -70,7 +70,7 @@ - +