- xml.tag! "contributor-terms",
- :agreed => !!@this_user.terms_agreed,
- :pd => !!@this_user.consider_pd
- if @this_user.image.file?
- xml.tag! "img", :href => "http://#{SERVER_URL}#{@this_user.image.url}"
+ xml.tag! "img", :href => user_image_url(@user, :size => 256) if @user.image.file? || @user.image_use_gravatar
+ xml.tag! "roles" do
+ @user.roles.each do |role|
+ xml.tag! role.role
+ end
+ end
+ xml.tag! "changesets", :count => @user.changesets.size
+ xml.tag! "traces", :count => @user.traces.size
+ xml.tag! "blocks" do
+ xml.tag! "received", :count => @user.blocks.size,
+ :active => @user.blocks.active.size
+ if @user.moderator?
+ xml.tag! "issued", :count => @user.blocks_created.size,
+ :active => @user.blocks_created.active.size
+ end