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:
parent
3dd639c8d0
commit
0876ea0bee
3 changed files with 6 additions and 3 deletions
1
app/views/users/_terms_declined_flash.html.erb
Normal file
1
app/views/users/_terms_declined_flash.html.erb
Normal file
|
@ -0,0 +1 @@
|
|||
<%= t ".terms_declined_html", :terms_declined_link => link_to(t(".terms_declined_link"), t(".terms_declined_url")) %>
|
Loading…
Add table
Add a link
Reference in a new issue