]> git.openstreetmap.org Git - rails.git/commit
display an encouragement to contribute after many anonymous notes
authorEtilène Jourdier <etienne.jourdier@gmail.com>
Sun, 12 Jan 2025 21:42:57 +0000 (22:42 +0100)
committerAnton Khorev <tony29@yandex.ru>
Mon, 13 Jan 2025 11:36:21 +0000 (14:36 +0300)
commit0f2df0b9efcfff1d6bb0f7b2d16fa23f85d8708d
treea4f0b80f7c9d74353c2c883200c86a34e3c0867f
parent5d76ec051e2c429b6647401674e13688c1251956
display an encouragement to contribute after many anonymous notes

create a counter of anonymous notes in a cookie, read by new note controller to display an encouragement to contribute in the already existing anonymous warning if the anonymous visitor has already created at least 10 anonymous notes. Cookie deleted on log-in and sign-up after email validation
app/assets/javascripts/index/new_note.js
app/controllers/concerns/session_methods.rb
app/controllers/confirmations_controller.rb
app/controllers/notes_controller.rb
app/views/notes/new.html.erb
config/locales/en.yml