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.
This commit is contained in:
Andy Allan 2021-06-23 20:09:19 +01:00
parent 3dd639c8d0
commit 0876ea0bee
3 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1 @@
<%= t ".terms_declined_html", :terms_declined_link => link_to(t(".terms_declined_link"), t(".terms_declined_url")) %>