From: Imre Farkas ifarkas@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>
On 12/21/2011 04:59 PM, ifarkas@redhat.com wrote:
From: Imre Farkasifarkas@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>
ACK
aeolus-devel@lists.fedorahosted.org