[PATCH conductor] BZ790825: fix view inconsistencies between haml and jquery-template in images#show
ifarkas at redhat.com
ifarkas at redhat.com
Thu Feb 16 12:30:29 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 e26a720..4fe5166 100644
--- a/src/app/views/images/show.html.haml
+++ b/src/app/views/images/show.html.haml
@@ -125,6 +125,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}}
{{/if}}
--
1.7.6.5
More information about the aeolus-devel
mailing list