Preparation for anon edit change

This commit is contained in:
Richard Fairhurst 2007-10-27 21:47:59 +00:00
parent 8a69ef115a
commit 78e6578daa
2 changed files with 13 additions and 2 deletions

View file

@ -90,5 +90,16 @@
window.onresize = handleResize; window.onresize = handleResize;
window.onload = handleResize; window.onload = handleResize;
<% unless @user.data_public? %>
var warningtext ="<div style='padding-left:8px;padding-right:8px;'><p>You haven't set your edits to be public.</p><p><b>From mid-November, you will no longer be able to use the online editor unless you do so.</b> 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}%>.</p>';
var warningtext=warningtext+'<p>(<a href="http://wiki.openstreetmap.org/index.php/Disabling_anonymous_edits">Find out why this is changing.</a>)</p></div>';
updateSidebar("Warning",warningtext);
openSidebar();
<% end %>
</script> </script>
<% end %> <% end %>

View file

@ -103,11 +103,11 @@
// --> // -->
</script> </script>
<h2>Privacy</h2> <h2>Public editing</h2>
<% if @user.data_public? %> <% if @user.data_public? %>
All your edits are public. All your edits are public.
<% else %> <% else %>
Currently your edits are anonymous and people can't find out where you are located. To show what you edited and allow people to contact you through the website, click the button below. 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. <b>You will need to do this if you want to use the online editor after mid-November</b> (<a href="http://wiki.openstreetmap.org/index.php/Disabling_anonymous_edits">find out why</a>). This action cannot be reversed.
<br /><br /> <br /><br />
<%= button_to "Make all my edits public, forever", :action => :go_public %> <%= button_to "Make all my edits public, forever", :action => :go_public %>
<% end %> <% end %>