Dne 20.9.2010 20:26, Jason Guiditta napsal(a): > On Thu, 2010-09-16 at 15:57 +0200, [email protected] wrote: >> From: Jan Provaznik<[email protected]> >> >> --- >> src/app/controllers/image_controller.rb | 8 ++++- >> .../image_descriptor_target_controller.rb | 8 ------ >> src/app/controllers/instance_controller.rb | 15 +++++++---- >> src/app/controllers/templates_controller.rb | 25 >> ++++++++++++------- >> src/app/views/cloud_accounts/_form.haml | 15 ++++++++++++ >> src/app/views/image/_images.haml | 7 +---- >> src/app/views/instance/_instances.haml | 2 +- >> src/app/views/instance/new.haml | 14 +++++----- >> src/app/views/instance/select_image.haml | 5 ---- >> src/app/views/instance/select_template.haml | 5 ++++ >> src/app/views/templates/_targets.haml | 14 +++++----- >> src/app/views/templates/_templates.haml | 18 ++++++++++++++ >> src/app/views/templates/software.haml | 2 +- >> 13 files changed, 87 insertions(+), 51 deletions(-) >> delete mode 100644 >> src/app/controllers/image_descriptor_target_controller.rb >> delete mode 100644 src/app/views/instance/select_image.haml >> create mode 100644 src/app/views/instance/select_template.haml >> create mode 100644 src/app/views/templates/_templates.haml >> > > <snip> > >> diff --git a/src/app/views/templates/software.haml >> b/src/app/views/templates/software.haml >> index 998ce9b..9d11b5e 100644 >> --- a/src/app/views/templates/software.haml >> +++ b/src/app/views/templates/software.haml >> @@ -82,7 +82,7 @@ >> %li{ :class => "#{selection_style} ui-state-default >> ui-corner-top", :style => 'clear: none' } >> = "<a href=\"#{url_for(:action => "software", :id => >> @image_descriptor, :tab => item[:tab])}\"><span>#{item[:text]}</span></a>" >> %li{ :class => "select_repository"} >> - = select_tag("repository", ["<option value='all' >> selected='selected'>All</option>"] + >> @repository_manager.repositories.map{|repid, rep|"<option >> value=\"#{repid}\">#{rep['name']}</option>"}, {:onchange => >> "get_repository(event)"}) >> + = select_tag("repository", ["<option value='all' >> selected='selected'>All</option>"] + >> @repository_manager.repositories.map{|rep|"<option >> value=\"#{rep.id}\">#{rep.name}</option>"}, {:onchange => >> "get_repository(event)"}) >> - unless request.xhr? >> = render :partial => @selected_tab >> .pkglist{:style => "margin-left: 30px", :class => "left-pkglist"} > > Maybe this is just something mis-configured on my setup, but I get the > following error on this page: > > ActionView::TemplateError (undefined method `name' for > #<Array:0x7faa8d3c9fd0>) on line #85 of > app/views/templates/software.haml: > 82: %li{ :class => "#{selection_style} ui-state-default > ui-corner-top", :style => 'clear: none' } > 83: = "<a href=\"#{url_for(:action => "software", :id => > @image_descriptor, :tab => > item[:tab])}\"><span>#{item[:text]}</span></a>" > 84: %li{ :class => "select_repository"} > 85: = select_tag("repository", ["<option value='all' > selected='selected'>All</option>"] + > @repository_manager.repositories.map{|rep| "<option value= > \"#{rep.id}\">#{rep.name}</option>"}, {:onchange => > "get_repository(event)"}) > 86: - unless request.xhr? > 87: = render :partial => @selected_tab > 88: .pkglist{:style => "margin-left: 30px", :class => > "left-pkglist"} > > > >
This problem should be solved by applying 3/5 patch (pulp), sorry - bad dependency. _______________________________________________ deltacloud-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/deltacloud-devel
