Bug: Update conversation urls in email (#649)

Update the conversation URLs in email templates.
This commit is contained in:
Pranav Raj S 2020-03-29 09:34:57 +05:30 committed by GitHub
parent 50ebbc13b6
commit 6c48f2e789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 3 deletions

View file

@ -2,4 +2,9 @@
<p>Time to save the world. A new conversation has been assigned to you</p> <p>Time to save the world. A new conversation has been assigned to you</p>
<p>Click <%= link_to 'here', app_conversation_url(id: @conversation.display_id) %> to get cracking. </p> <p>
Click <%=
link_to 'here',
app_account_conversation_url(account_id: @conversation.account_id, id: @conversation.display_id)
%> to get cracking.
</p>

View file

@ -2,4 +2,9 @@
<p>Time to save the world. A new conversation has been created in <%= @conversation.inbox.name %></p> <p>Time to save the world. A new conversation has been created in <%= @conversation.inbox.name %></p>
<p>Click <%= link_to 'here', app_conversation_url(id: @conversation.display_id) %> to get cracking. </p> <p>
Click <%=
link_to 'here',
app_account_conversation_url(account_id: @conversation.account_id, id: @conversation.display_id)
%> to get cracking.
</p>

View file

@ -136,7 +136,9 @@ Rails.application.routes.draw do
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Used in mailer templates # Used in mailer templates
resource :app, only: [:index] do resource :app, only: [:index] do
resources :conversations, only: [:show] resources :accounts do
resources :conversations, only: [:show]
end
end end
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------