[PATCH conductor] Don't display 'Download key' if there is not instance key

Jan Provaznik jprovazn at redhat.com
Tue Dec 13 12:48:30 UTC 2011


On 12/13/2011 01:47 PM, jprovazn at redhat.com wrote:
> From: Jan Provaznik<jprovazn at 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

self ack & pushed



More information about the aeolus-devel mailing list