From: Richard Fairhurst Date: Tue, 20 Nov 2007 10:08:58 +0000 (+0000) Subject: Require data to be public before editing X-Git-Tag: live~8091 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/a8333a38a2c9abf3304d61b20c5215d75fdd5795?hp=6785ce523129b9be84a8f5b4abfae213d856a6f2 Require data to be public before editing --- diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index 8ff98a3b1..de2764115 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -6,6 +6,11 @@

The OpenStreetMap database is currently in read-only mode while essential database maintenance work is carried out.

+<% elsif !@user.data_public? %> +

You haven't set your edits to be public.

+

You can't use the online editor unless you do so. You can set your edits as public from your +<%= link_to 'user page', {:controller => 'user', :action => 'account', :display_name => @user.display_name}%>.

+

(Find out why this is the case.)

<% else %> <% content_for :greeting do %> <% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %> @@ -91,15 +96,5 @@ window.onresize = handleResize; window.onload = handleResize; - -<% unless @user.data_public? %> - var warningtext ="

You haven't set your edits to be public.

From mid-November, you will no longer be able to use the online editor unless you do so. You can set your edits as public from your "; - var warningtext=warningtext+'<%= link_to 'user page', {:controller => 'user', :action => 'account', :display_name => @user.display_name}%>.

'; - var warningtext=warningtext+'

(Find out why this is changing.)

'; - updateSidebar("Warning",warningtext); - openSidebar(); -<% end %> - - <% end %> diff --git a/app/views/user/account.rhtml b/app/views/user/account.rhtml index 53c355316..b25cb0071 100644 --- a/app/views/user/account.rhtml +++ b/app/views/user/account.rhtml @@ -107,7 +107,7 @@ <% if @user.data_public? %> All your edits are public. <% else %> - Currently your edits are anonymous and people can't send you messages or see your location. To show what you edited and allow people to contact you through the website, click the button below. You will need to do this if you want to use the online editor after mid-November (find out why). This action cannot be reversed. + Currently your edits are anonymous and people can't send you messages or see your location. To show what you edited and allow people to contact you through the website, click the button below. You will need to do this if you want to use the online editor (find out why). This action cannot be reversed.

<%= button_to "Make all my edits public, forever", :action => :go_public %> <% end %>