@etiennejourdier commented on this pull request.


> @@ -5,9 +5,17 @@
 <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"), new_user_path) %></p>
+    <div class="alert alert-warning pb-0">
+      <p><%= 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"), new_user_path) 
%></p>
+    <% if @anonymous_notes_count > 10 %>
+      <p><%= t ".counter_warning_html",
+                :x_anonymous_notes => t(".x_anonymous_notes", :count => 
@anonymous_notes_count),

I'm really sorry, I'd totally missed the second paragraph of your comment... 
Finally I changed the message to "at least x anonymous notes" because the 
counter may miss notes if the cookie has been deleted in the meantime.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5468#discussion_r1912543788
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/pull/5468/review/2545526...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to