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