Require data to be public before editing
This commit is contained in:
parent
6785ce5231
commit
a8333a38a2
2 changed files with 6 additions and 11 deletions
|
@ -6,6 +6,11 @@
|
||||||
<p>The OpenStreetMap database is currently in read-only mode while
|
<p>The OpenStreetMap database is currently in read-only mode while
|
||||||
essential database maintenance work is carried out.
|
essential database maintenance work is carried out.
|
||||||
</p>
|
</p>
|
||||||
|
<% elsif !@user.data_public? %>
|
||||||
|
<p>You haven't set your edits to be public.</p>
|
||||||
|
<p>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}%>.</p>
|
||||||
|
<p>(<a href="http://wiki.openstreetmap.org/index.php/Disabling_anonymous_edits">Find out why this is the case.</a>)</p>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% content_for :greeting do %>
|
<% content_for :greeting do %>
|
||||||
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
|
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
|
||||||
|
@ -91,15 +96,5 @@
|
||||||
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 %>
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
<% 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 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.
|
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</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 %>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue