X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ade96da19f42a1277fde5748c978d2eb984f3536..55f0402471729354c31d85635e1c740599b1a0ad:/app/views/user/api_details.builder diff --git a/app/views/user/api_details.builder b/app/views/user/api_details.builder index 656218a92..6e77bfed8 100644 --- a/app/views/user/api_details.builder +++ b/app/views/user/api_details.builder @@ -6,15 +6,16 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do if @user.description xml.tag! "description", @user.description end + xml.tag! "contributor-terms", + :agreed => !!@user.terms_agreed, + :pd => !!@user.consider_pd if @user.home_lat and @user.home_lon xml.tag! "home", :lat => @user.home_lat, :lon => @user.home_lon, :zoom => @user.home_zoom end - if @user.image - # i'd love to use "url_for_file_column, :absolute=>true", but that doesn't seem - # to work with the file_column plugin version we're using. - xml.tag! "img", :href => ("http://" + SERVER_URL + url_for_file_column(@user, "image")) + if @user.image.file? + xml.tag! "img", :href => "http://#{SERVER_URL}#{@user.image.url}" end if @user.languages xml.tag! "languages" do