<%
tool_name = Rails.configuration.branding[:application][:name]
username = @user.name
api_documentation_url = Rails.configuration.branding[:application][:api_documentation_url]
email_subject = _('Query or feedback related to %{tool_name}') %{ :tool_name => tool_name }
%>
<% FastGettext.with_locale FastGettext.default_locale do %>
<p>
<%= _('Hello %{username}') %{ :username => username } %>
</p>
<p>
<%= raw(_('You have been granted permission by your organisation to use our API. Your API token and instructions for using the API endpoints can be found at: %{link}') %{ :link => link_to(api_documentation_url, api_documentation_url) }) %>
</p>
<%= render partial: 'email_signature', locals: { email_subject: email_subject } %>
<% end %>