[openstreetmap/openstreetmap-website] display warning in new note form after too many anonymous notes (PR #5468)
etiennejourdier
notifications at github.com
Tue Jan 7 22:29:14 UTC 2025
Thanks for your time, comments, and advice. I just pushed a new version with :
- the counter stored in a cookie, with a duration of 30 days, as anonymous visitors don't necessarily post notes every day (I'm not sure about other cookie options, please review)
- the cookie read in the controller
- a message in the view template, included in the already existing warning
- with pluralization managment in en.yml
I have slightly modified the standard warning in this way, to insist that discussion will help to resolve the note:

And I added the encouragement to contribute yourself in the same box, after at least 20 notes, with a link to the beginners' guide, and to the forum.

I know that finding the perfect sentence is always complicated, and English is not my mother tongue, so tell me if you prefer another sentence.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5468#issuecomment-2576350236
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5468/c2576350236 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250107/f085b054/attachment.htm>
More information about the rails-dev
mailing list