app/views/wash_with_html/all_services.builder
xml.instruct!
xml.declare! :DOCTYPE, :html, :PUBLIC, "-//W3C//DTD XHTML 1.0 Strict//EN", "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) {
xml.head {
xml.title "Available Services"
xml.style( "type"=>"text/css" ,"media" => "all" ) { xml.text! "
body{font-family:Calibri,Arial;background-color:#fefefe;}
.pre{font-family:Courier;}
.normal{font-family:Calibri,Arial;}
.bold{font-weight:bold;}
h1,h2,h3{font-family:Verdana,Times;}
h1{border-bottom:1px solid gray;}
h2{border-bottom:1px solid silver;}
h3{border-bottom:1px dashed silver;}
a{text-decoration:none;}
a:hover{text-decoration:underline;}
.blue{color:#3400FF;}
.lightBlue{color:#5491AF;}
"
}
xml.style( "type"=>"text/css", "media" => "print" ) { xml.text! "
.noprint{display:none;}
"
}
}
xml.body {
unless @services.blank?
@services.each do |service|
xml.h1 "#{service['service_name']} Soap Web Service"
xml.p {|pre| pre << "Documentation URI: <a href='#{service['documentation_url']}'>#{service['documentation_url']}</a>" }
xml.p {|pre| pre << "Endpoint URI: <a href='#{service['endpoint']}'>#{service['endpoint']}</a>" }
xml.p {|pre| pre << "WSDL URI: <a href='#{service['namespace']}'>#{service['namespace']}</a>" }
end
end
if @services.blank?
xml.h1 "Available Services"
xml.p "There are no services yet added. Please add the routes for your services and try again!"
end
}
}