From: Jan Provaznik <jprovazn(a)redhat.com>
https://bugzilla.redhat.com/show_bug.cgi?id=761088
---
.../views/deployments/_pretty_view_show.html.haml | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/app/views/deployments/_pretty_view_show.html.haml
b/src/app/views/deployments/_pretty_view_show.html.haml
index c4bf681..f7ceade 100644
--- a/src/app/views/deployments/_pretty_view_show.html.haml
+++ b/src/app/views/deployments/_pretty_view_show.html.haml
@@ -15,8 +15,9 @@
%li
%dt.state= t('deployments.pretty_view_show.state')
%dd= instance.state
- %li
- = link_to t('deployments.pretty_view_show.download_key'),
key_instance_path(instance)
+ - if instance.instance_key
+ %li
+ = link_to t('deployments.pretty_view_show.download_key'),
key_instance_path(instance)
%hr
.actions
%ul
--
1.7.6