Skip to content

Commit

Permalink
Merge branch 'dev' into 491_Event_list_date_bug
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-bode committed Feb 5, 2017
2 parents 98e66dc + 84e0d30 commit 94d25af
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
6 changes: 5 additions & 1 deletion app/controllers/application_letters_controller.rb
Expand Up @@ -83,7 +83,11 @@ def create
:recipients => current_user.email,
:reply_to => Rails.configuration.reply_to_address,
:subject => I18n.t('controllers.application_letters.confirmation_mail.subject'),
:content => I18n.t('controllers.application_letters.confirmation_mail.content', :seminar_name => seminar_name)
:content => I18n.t("controllers.application_letters.confirmation_mail.content_#{current_user.profile.gender}",
:seminar_name => seminar_name,
:first_name => current_user.profile.first_name,
:last_name => current_user.profile.last_name,
:event_link => application_letters_url)
}
@email = Email.new(email_params)
Mailer.send_generic_email(@email.hide_recipients, @email.recipients, @email.reply_to, @email.subject, @email.content)
Expand Down
17 changes: 15 additions & 2 deletions config/locales/de.application_letters.yml
Expand Up @@ -80,9 +80,22 @@ de:
canceled: "Abgesagt"
alternative: "Nachrücker"


controllers:
application_letters:
confirmation_mail:
subject: "Bewerbung erhalten"
content: "Hallo, \n\rDu hast dich erfolgreich für {{semimar_name}} beworben. Deine Bewerbung wird jetzt bearbeitet. Für weitere Information besuche das Workshop Portal. Viele Grüße, das HPI Workshop Team"
content_male: >
Lieber {{first_name}} {{last_name}},\n\r
du hast dich erfolgreich für die Veranstaltung {{seminar_name}} beworben.
Deine Bewerbung wird von uns bearbeitet. Für den aktuellen Status deiner Bewerbung
siehe unter "Meine Veranstaltungen" im Portal ({{event_link}}).
content_female: >
Liebe {{first_name}} {{last_name}},\n\r
du hast dich erfolgreich für die Veranstaltung {{seminar_name}} beworben.
Deine Bewerbung wird von uns bearbeitet. Für den aktuellen Status deiner Bewerbung
siehe unter "Meine Veranstaltungen" im Portal ({{event_link}}).
content_other: >
Liebe(r) {{first_name}} {{last_name}},\n\r
du hast dich erfolgreich für die Veranstaltung {{seminar_name}} beworben.
Deine Bewerbung wird von uns bearbeitet. Für den aktuellen Status deiner Bewerbung
siehe unter "Meine Veranstaltungen" im Portal ({{event_link}}).

0 comments on commit 94d25af

Please sign in to comment.