[yast-devel] Re: [yast-commit] <rest-service> master : fix default registration context, cleanup show templates
![](https://seccdn.libravatar.org/avatar/926abfa8eb8dab66c00070f582fc2b84.jpg?s=120&d=mm&r=g)
On Sat, Nov 14, 2009 at 02:52:32AM +0100, J.Daniel Schmidt wrote:
ref: refs/heads/master commit ab0b5faedefc16ca3523c2d4ed496b41741d17f3 Author: J. Daniel Schmidt <jdsn@suse.de> Date: Sat Nov 14 02:52:32 2009 +0100
fix default registration context, cleanup show templates ---
diff --git a/plugins/registration/app/views/registration/registration/show.html.erb b/plugins/registration/app/views/registration/registration/show.html.erb index 50e8aac..bbba3c0 100644 --- a/plugins/registration/app/views/registration/registration/show.html.erb +++ b/plugins/registration/app/views/registration/registration/show.html.erb @@ -1,11 +1 @@ -<%= # @register == nil ? "@register is nil - FIXME" : @register.to_xml - -%> -<%= case @register.class.to_s - when 'NilClass' - "@register is nil" - when 'String' - @register.to_s - when 'Register' - @register.to_xml - end - -%> +<%= @register.to_xml if @register -%>
You should not claim HTML and send XML. Simply don't support HTML, the browsers show XML just fine. http://lists.opensuse.org/yast-devel/2009-10/msg00136.html -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
participants (1)
-
Martin Vidner