Add acceptance notification contents

This commit is contained in:
Petko Bordjukov 2014-10-13 12:24:25 +03:00
parent 6d7eb739fc
commit a76202d7a1
5 changed files with 35 additions and 5 deletions

View File

@ -8,6 +8,6 @@ class EventMailer < ActionMailer::Base
def acceptance_notification(event)
@event = event
I18n.locale = @event.language
mail to: @event.user.email, from: 'cfp@openfest.org', subject: I18n.t('event_mailer.acceptance_notification.subject', conference: @event.conference.title)
mail to: @event.user.email, from: 'program@openfest.org', subject: I18n.t('event_mailer.acceptance_notification.subject', conference: @event.conference.title, submission_type: @event.class.model_name.human.mb_chars.downcase.to_s, title: @event.title)
end
end

View File

@ -1 +1,16 @@
Предложението ви е одобрено
Здравейте,
Радваме се да Ви съобщим, че предложението ви за участие в <%= @event.conference.title %> с <%= @event.class.model_name.human.mb_chars.downcase.to_s %> на тема „<%= @event.title %>“ беше одобрено.
Първоначален вариант на програмата можете да видите тук:
http://wwwt.openfest.org/bg/schedule-3/
Моля, потвърдете участието си възможно най-скоро като кликнете на следния линк:
<% if @event.is_a? Lecture %>
<%= confirm_lecture_url(@event) %>
<% elsif @event.is_a? Workshop %>
<%= confirm_workshop_url(@event) %>
<% end %>
Поздрави,
Екипът на <%= @event.conference.title %>

View File

@ -1 +1,16 @@
Your submission was approved
Hello,
We are happy to notify you that your request for participation in <%= @event.conference.title %> with the <%= @event.class.model_name.human.mb_chars.downcase.to_s %> titled "<%= @event.title %>" was approved.
The initial conference schedule can be found here:
http://wwwt.openfest.org/en/schedule/
Please confirm your participation as soon as you can by following the following link:
<% if @event.is_a? Lecture %>
<%= confirm_lecture_url(@event) %>
<% elsif @event.is_a? Workshop %>
<%= confirm_workshop_url(@event) %>
<% end %>
Regards,
The <%= @event.conference.title %> Team

View File

@ -22,7 +22,7 @@
bg:
event_mailer:
acceptance_notification:
subject: 'Предложението ви за %{conference} е одобрено'
subject: 'Предложението ви за %{conference} за %{submission_type} със заглавие „%{title}“ е одобрено'
activerecord:
models:
user:

View File

@ -22,7 +22,7 @@
en:
event_mailer:
acceptance_notification:
subject: 'Your submission for %{conference} has been approved'
subject: 'Your submission for %{conference} for the %{submission_type} "%{title}" has been approved'
activerecord:
models:
user: