diff --git a/app/mailers/event_mailer.rb b/app/mailers/event_mailer.rb index dfe0b76..b28000c 100644 --- a/app/mailers/event_mailer.rb +++ b/app/mailers/event_mailer.rb @@ -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 diff --git a/app/views/event_mailer/acceptance_notification.bg.text.erb b/app/views/event_mailer/acceptance_notification.bg.text.erb index eb96066..e6909ce 100644 --- a/app/views/event_mailer/acceptance_notification.bg.text.erb +++ b/app/views/event_mailer/acceptance_notification.bg.text.erb @@ -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 %> diff --git a/app/views/event_mailer/acceptance_notification.en.text.erb b/app/views/event_mailer/acceptance_notification.en.text.erb index b50b309..ddfe957 100644 --- a/app/views/event_mailer/acceptance_notification.en.text.erb +++ b/app/views/event_mailer/acceptance_notification.en.text.erb @@ -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 diff --git a/config/locales/bg.yml b/config/locales/bg.yml index 33e9a99..338cb1a 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -22,7 +22,7 @@ bg: event_mailer: acceptance_notification: - subject: 'Предложението ви за %{conference} е одобрено' + subject: 'Предложението ви за %{conference} за %{submission_type} със заглавие „%{title}“ е одобрено' activerecord: models: user: diff --git a/config/locales/en.yml b/config/locales/en.yml index 2437e74..e778d79 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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: