]> git.openstreetmap.org Git - rails.git/commit
Refactor terms declined flash message to use a partial
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Jun 2021 19:09:19 +0000 (20:09 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Jun 2021 19:11:19 +0000 (20:11 +0100)
commit0876ea0beece91be4cbd603e13951cfe6bc8e773
tree078ea8f532e87d6bbfdeb5cf05c4845b518f8457
parent3dd639c8d02677b773935aa982ba0c9f3cc209e5
Refactor terms declined flash message to use a partial

This allows us to include a link in the flash message, without having
to use html_safe. Also refactor to avoid having html angle brackets in
the translation strings, while still allowing locale-specific urls.
app/controllers/users_controller.rb
app/views/users/_terms_declined_flash.html.erb [new file with mode: 0644]
config/locales/en.yml