Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanRada committed Dec 10, 2013
1 parent f6a3acf commit 9a367fe
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
40 changes: 25 additions & 15 deletions app/views/wash_with_html/doc.builder
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,17 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) {
xml.div("class" => "noprint") {

xml.h2 "Index "
xml.p "Complex Types: "
@complex_types = get_complex_types(@map)
xml.ul do
@complex_types.each do |hash|
xml.li { |y| y << "<a href='##{hash[:class]}'><span class='pre'>#{hash[:class]}</span></a>" }
unless @complex_types.blank?
xml.p "Complex Types: "

xml.ul do
@complex_types.each do |hash|
xml.li { |y| y << "<a href='##{hash[:class]}'><span class='pre'>#{hash[:class]}</span></a>" }
end
end

end

@fault_types = get_fault_types_names(@map)
unless @fault_types.blank?
xml.p "Fault Types: "
Expand All @@ -69,30 +72,37 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) {
end
end

methods = get_soap_action_names(@map)
unless methods.blank?
@methods = get_soap_action_names(@map)
unless @methods.blank?
xml.p "Public Methods:"

xml.ul do
methods.each do |name|
@methods.each do |name|
xml.li { |y| y << "<a href='##{name}'><span class='pre'>#{name}</span></a>" }
end
end
end

}

xml.h2 "Complex types:"
create_html_complex_types(xml, @complex_types)

unless @complex_types.blank?
xml.h2 "Complex types:"
create_html_complex_types(xml, @complex_types)
end
unless @fault_types.blank?
xml.h2 "Fault types:"
create_html_fault_types_details(xml, @map)
end

xml.h2 "Public methods:"
create_html_public_methods(xml, @map)

unless @methods.blank?
xml.h2 "Public methods:"
create_html_public_methods(xml, @map)
end

if @complex_types.blank? && @fault_types.blank? && @methods.blank?
xml.p "There are no soap actions defined yet for this service. Please add some actions and try again!"
end


}

}
2 changes: 1 addition & 1 deletion lib/washout_builder/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module WashoutBuilder
VERSION = "0.8.9"
VERSION = "0.8.10"
end

0 comments on commit 9a367fe

Please sign in to comment.