]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/new.html.erb
Merge remote-tracking branch 'upstream/pull/4795'
[rails.git] / app / views / notes / new.html.erb
index ee9837056b0c5756cf2994a6ef93f6358439e291..6728b32ffbc6a501abb252fc6941b3ec3e2cfdcd 100644 (file)
@@ -4,6 +4,11 @@
 
 <div class="note">
   <p class="alert alert-info"><%= t(".intro") %></p>
+  <% if !current_user %>
+    <p class="alert alert-warning"><%= t ".anonymous_warning_html",
+                                         :log_in => link_to(t(".anonymous_warning_log_in"), login_path(:referer => new_note_path)),
+                                         :sign_up => link_to(t(".anonymous_warning_sign_up"), user_new_path) %></p>
+  <% end %>
   <form action="#">
     <input type="hidden" name="lon" autocomplete="off">
     <input type="hidden" name="lat" autocomplete="off">