[PATCH aeolus-conductor] BZ#790250 Check Build Status on Show Image

Jan Provaznik jprovazn at redhat.com
Wed Feb 29 15:06:36 UTC 2012


On 02/29/2012 03:52 PM, mtaylor at redhat.com wrote:
> From: Martyn Taylor<mtaylor at redhat.com>
>
> ---
>   src/app/views/images/show.html.haml |    2 ++
>   1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/app/views/images/show.html.haml b/src/app/views/images/show.html.haml
> index 7681cee..1d31d36 100644
> --- a/src/app/views/images/show.html.haml
> +++ b/src/app/views/images/show.html.haml
> @@ -57,6 +57,8 @@
>                     %h3= group[:type].name
>                     - if @build and b = @builder.find_active_build(@build.id, driver)
>                       = label_tag b.status
> +                  - elsif !@build and b = @builder.find_active_build_by_imageid(@image.id, driver)
> +                    = label_tag b.status
>                     - elsif timg
>                       = button_to t('.delete'), image_target_image_path(@image.id, timg.id), :method =>  :delete
>                     - elsif @build and @build.id == @latest_build

ACK

(jquery template will be fixed in separate Imre's patch)



More information about the aeolus-devel mailing list