]> git.openstreetmap.org Git - rails.git/commit
Use data attributes to pass alternative button labels
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 1 Feb 2023 15:30:57 +0000 (15:30 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 1 Feb 2023 17:24:47 +0000 (17:24 +0000)
commit9bb8dd739a4342441e97254bbf5073f9df022672
tree93a6ac02744d8726e98df300fc49a0b1d3728f72
parent9748ce301c9488b9cd32439448770c3d4a38ebd6
Use data attributes to pass alternative button labels

This allows the text to be defined in the html partials, instead
of looking up the i18n via javascript.
app/assets/javascripts/index/note.js
app/views/notes/show.html.erb
test/system/note_comments_test.rb [new file with mode: 0644]