]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/edit.rhtml
Require data to be public before editing
[rails.git] / app / views / site / edit.rhtml
index ceb4702d43808345da7a8bb18b5103f6d073af28..de276411572166787fffe5e5e8b4ae32ae2a7e36 100644 (file)
@@ -6,6 +6,11 @@
 <p>The OpenStreetMap database is currently in read-only mode while
    essential database maintenance work is carried out.
 </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 %>
 <% content_for :greeting do %>
 <% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
@@ -90,5 +95,6 @@
 
   window.onresize = handleResize;
   window.onload = handleResize;
+
 </script>
 <% end %>