[PATCH conductor] BZ790825: fix view inconsistencies between haml and jquery-template in images#show (rebased)

ifarkas at redhat.com ifarkas at redhat.com
Wed Feb 22 09:17:36 UTC 2012


From: Imre Farkas <ifarkas at redhat.com>

https://bugzilla.redhat.com/show_bug.cgi?id=790825
---
 src/app/views/images/show.html.haml |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/app/views/images/show.html.haml b/src/app/views/images/show.html.haml
index 82c00f5..631dad1 100644
--- a/src/app/views/images/show.html.haml
+++ b/src/app/views/images/show.html.haml
@@ -134,6 +134,11 @@
                       #{t('images.show.failed_build_attempts', :count => 1 )}
                     </div>
                   {{/if}}
+                {{else !build}}
+                  #{path = image_target_images_path('replace_image_id', :target => 'replace_driver')
+                    path = path.sub('replace_image_id', '${image[\'uuid\']}')
+                    path = path.sub('replace_driver', '${driver}')
+                    button_to(t('images.show.build'), path, :method => :post)}
                 {{else}}
                   &nbsp;
                 {{/if}}
-- 
1.7.6.5




More information about the aeolus-devel mailing list