[PATCH conductor] Fixing jQuery template on deployments#show
ifarkas at redhat.com
ifarkas at redhat.com
Wed Dec 21 15:59:47 UTC 2011
From: Imre Farkas <ifarkas at redhat.com>
---
.../views/deployments/_pretty_view_show.html.haml | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/app/views/deployments/_pretty_view_show.html.haml b/src/app/views/deployments/_pretty_view_show.html.haml
index c8cfec6..a52ea08 100644
--- a/src/app/views/deployments/_pretty_view_show.html.haml
+++ b/src/app/views/deployments/_pretty_view_show.html.haml
@@ -55,9 +55,11 @@
<dt class="state">#{t('deployments.pretty_view_show.state')}</dt>
<dd>${state}</dd>
</li>
- <li>
- <a href="#{key_instance_path('replace_id').sub('replace_id', '${id}')}">#{t('deployments.pretty_view_show.download_key')}</a>
- </li>
+ {{if has_key}}
+ <li>
+ <a href="#{key_instance_path('replace_id').sub('replace_id', '${id}')}">#{t('deployments.pretty_view_show.download_key')}</a>
+ </li>
+ {{/if}}
</ul>
</dl>
<hr>
--
1.7.6.4
More information about the aeolus-devel
mailing list