i18n helper for link interpolation
A couple times this release I've had reviewers suggest we create an additional i18n helper to simplify the common use case of interpolating an anchor tag. This is an issue to track that.
- link_url = help_page_path('user/project/service_desk')
- link_start = '<a href="%{link_url}" target="_blank" rel="noopener noreferrer">'.html_safe % { link_url: link_url }
= _('See %{link_start}documentation%{link_end}').html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
@winh suggests that link_start
could be simplifed to:
- link_start = link_start_tag(help_page_path('user/project/service_desk'))