projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5857871
)
Add new <contributor-terms> element to user details
author
Frederik Ramm
<frederik@remote.org>
Thu, 12 Aug 2010 15:21:01 +0000
(17:21 +0200)
committer
Tom Hughes
<tom@compton.nu>
Thu, 12 Aug 2010 16:47:51 +0000
(17:47 +0100)
app/views/user/api_details.builder
patch
|
blob
|
history
diff --git
a/app/views/user/api_details.builder
b/app/views/user/api_details.builder
index d70c65f042b924f9fdd1824961d11cc870c0bb98..a164c7a56338e85884864abbcf2521f47c225500 100644
(file)
--- a/
app/views/user/api_details.builder
+++ b/
app/views/user/api_details.builder
@@
-6,6
+6,9
@@
xml.osm("version" => API_VERSION, "generator" => GENERATOR) do
if @user.description
xml.tag! "description", @user.description
end
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,
if @user.home_lat and @user.home_lon
xml.tag! "home", :lat => @user.home_lat,
:lon => @user.home_lon,