From f6d68868260396e548a9382a63e7a096837aa9fd Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Date: Thu, 5 Oct 2017 10:24:06 -0400 Subject: [PATCH] Do not show "Show Annotations" link when there are none --- app/views/directives/annotations.html | 45 +++++++++++++-------------- dist/scripts/templates.js | 11 +++---- 2 files changed, 25 insertions(+), 31 deletions(-) diff --git a/app/views/directives/annotations.html b/app/views/directives/annotations.html index f6c9a40519..663cf9e082 100644 --- a/app/views/directives/annotations.html +++ b/app/views/directives/annotations.html @@ -1,26 +1,23 @@ -

- Show Annotations - Hide Annotations +

+ {{!expandAnnotations ? 'Hide Annotations' : 'Show Annotations'}}

-
-
- - - - - - - -
{{annotationKey}} - - -
-
-

- There are no annotations on this resource. -

+
+ + + + + + + +
{{annotationKey}} + + +
+

+ There are no annotations on this resource. +

diff --git a/dist/scripts/templates.js b/dist/scripts/templates.js index 4a6f82bf47..c7bf4e0318 100644 --- a/dist/scripts/templates.js +++ b/dist/scripts/templates.js @@ -5763,12 +5763,10 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function( $templateCache.put('views/directives/annotations.html', - "

\n" + - "Show Annotations\n" + - "Hide Annotations\n" + + "

\n" + + "{{!expandAnnotations ? 'Hide Annotations' : 'Show Annotations'}}\n" + "

\n" + - "
\n" + - "
\n" + + "
\n" + "\n" + "\n" + "\n" + @@ -5783,8 +5781,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function( "\n" + "

\n" + "There are no annotations on this resource.\n" + - "

\n" + - "" + "

" );