[PATCH conductor] Add realm selection to Deployment Overview

tsedovic at redhat.com tsedovic at redhat.com
Thu Dec 22 14:14:31 UTC 2011


From: Tomas Sedovic <tomas at sedovic.cz>

https://bugzilla.redhat.com/show_bug.cgi?id=753946

The selection dropdown is shown only when there are realms to be selected.
---
 src/app/views/deployments/_overview.html.haml |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/app/views/deployments/_overview.html.haml b/src/app/views/deployments/_overview.html.haml
index bdc04e3..4c11e65 100644
--- a/src/app/views/deployments/_overview.html.haml
+++ b/src/app/views/deployments/_overview.html.haml
@@ -26,8 +26,11 @@
       = link_to @deployable.xml_filename, catalog_deployable_definition_path(@deployable.catalogs.first, @deployable)
       &rArr;
 
-      %h3= t('.image_ids')
+      - if @realms.any?
+        %h3= t('realms.index.realm')
+        = select :deployment, :frontend_realm_id, @realms.map{|r| [r.name, r.id]}, :include_blank => true
 
+      %h3= t('.image_ids')
       %ul
       - @deployment.deployable_xml.assemblies.each do |assembly|
         %li.image-id
-- 
1.7.6.4




More information about the aeolus-devel mailing list