-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add notification mails for teacher change by voucher redemption
- Loading branch information
1 parent
09f47c2
commit 2205752
Showing
9 changed files
with
81 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<%= t('mailer.new_teacher', title: @lecture.title_with_teacher, username: @username) %> | ||
<br> | ||
<p class="pt-2"> | ||
<%= link_to(t('notifications.edit_lecture'), | ||
edit_lecture_url(@lecture), | ||
class: 'btn btn-primary') %> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%= t('mailer.new_teacher', title: @lecture.title_with_teacher, username: @username) %> |
10 changes: 10 additions & 0 deletions
10
app/views/notification_mailer/previous_teacher_email.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<%= t('mailer.previous_teacher', | ||
title: @lecture.title_with_teacher, | ||
username: @username, | ||
new_teacher: @lecture.teacher.info) %> | ||
<br> | ||
<p class="pt-2"> | ||
<%= link_to(t('notifications.edit_lecture'), | ||
edit_lecture_url(@lecture), | ||
class: 'btn btn-primary') %> | ||
</p> |
4 changes: 4 additions & 0 deletions
4
app/views/notification_mailer/previous_teacher_email.text.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<%= t('mailer.previous_teacher', | ||
title: @lecture.title_with_teacher, | ||
username: @username, | ||
new_teacher: @lecture.teacher.info) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters