Skip to content

Commit

Permalink
Fix email formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-emilius committed Aug 22, 2024
1 parent 57fbde8 commit 4f743a3
Show file tree
Hide file tree
Showing 15 changed files with 13 additions and 135 deletions.
2 changes: 1 addition & 1 deletion server/mail-templates/application-created-chair.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p>Dear {{recipientName}},</p>
<p>there is a new thesis application submitted by <strong>{{student.firstName}}&nbsp;{{student.lastName}}</strong>.</p>
<p>there is a new thesis application submitted by <strong>{{application.user.firstName}}&nbsp;{{application.user.lastName}}</strong>.</p>
<p>We received the following thesis application details:</p>

<hr/>
Expand Down
2 changes: 1 addition & 1 deletion server/mail-templates/application-created-student.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</p>
<p>
<strong>Desired Thesis Start Date:</strong><br/>
{{application.desiredThesisStart}}
{{application.desiredStartDate}}
</p>
<p>
<strong>Motivation:</strong><br/>
Expand Down
2 changes: 1 addition & 1 deletion server/mail-templates/thesis-assessment-added.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p>Dear {{recipientName}},</p>

<p>An assessment has been added to thesis "{{thesis.thesisTitle}}"</p>
<p>An assessment has been added to thesis "{{thesis.title}}"</p>

<p>
<strong>Summary</strong><br />
Expand Down
2 changes: 1 addition & 1 deletion server/mail-templates/thesis-closed.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p>Dear {{recipientName}},</p>

<p>The thesis "{{thesis.thesisTitle}}" has been closed.</p>
<p>The thesis "{{thesis.title}}" has been closed.</p>

<p>
Full Details: <a target="_blank" rel="noopener noreferrer nofollow" href="{{thesisUrl}}">{{thesisUrl}}</a>
Expand Down
2 changes: 1 addition & 1 deletion server/mail-templates/thesis-comment-posted.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p>Dear {{recipientName}},</p>

<p>A comment has been added to thesis "{{thesis.thesisTitle}}"</p>
<p>A comment has been added to thesis "{{thesis.title}}"</p>

<p>
<strong>Message</strong><br />
Expand Down
2 changes: 1 addition & 1 deletion server/mail-templates/thesis-created.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@

<p>
<strong>Title</strong><br />
{{thesis.thesisTitle}}
{{thesis.title}}
</p>
4 changes: 2 additions & 2 deletions server/mail-templates/thesis-final-grade.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<p>Dear {{recipientName}},</p>

<p>The final grade has been added to your thesis "{{thesis.thesisTitle}}"</p>
<p>The final grade has been added to your thesis "{{thesis.title}}"</p>

<p>
<strong>Final Grade</strong> {{thesis.grade.finalGrade}}
</p>

<p>
<strong>Positives</strong><br />
<strong>Feedback</strong><br />
{{thesis.grade.feedback}}
</p>

Expand Down
2 changes: 1 addition & 1 deletion server/mail-templates/thesis-final-submission.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p>Dear {{recipientName}},</p>

<p>The thesis "{{thesis.thesisTitle}}" has been submitted and is ready for review.</p>
<p>The thesis "{{thesis.title}}" has been submitted and is ready for review.</p>

<p>The final thesis and presentation is attached to this email.</p>

Expand Down
2 changes: 1 addition & 1 deletion server/mail-templates/thesis-presentation-deleted.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p>Dear {{recipientName}},</p>

<p>A presentation scheduled at {{presentation.scheduledAt}}, has been cancelled for thesis "{{thesis.thesisTitle}}"</p>
<p>A presentation scheduled at {{presentation.scheduledAt}}, has been cancelled for thesis "{{thesis.title}}"</p>

<p>
Full Details: <a target="_blank" rel="noopener noreferrer nofollow" href="{{thesisUrl}}">{{thesisUrl}}</a>
Expand Down
2 changes: 1 addition & 1 deletion server/mail-templates/thesis-presentation-scheduled.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p>Dear {{recipientName}},</p>

<p>A presentation has been scheduled for thesis "{{thesis.thesisTitle}}"</p>
<p>A presentation has been scheduled for thesis "{{thesis.title}}"</p>

<p>
<strong>Type</strong><br />
Expand Down
2 changes: 1 addition & 1 deletion server/mail-templates/thesis-proposal-uploaded.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p>Dear {{recipientName}},</p>

<p>
An proposal has been uploaded to thesis "{{thesis.thesisTitle}}".
An proposal has been uploaded to thesis "{{thesis.title}}".
The proposal is attached to this email.
</p>

Expand Down
40 changes: 0 additions & 40 deletions server/src/main/java/thesistrack/ls1/entity/TopicReviewer.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public MailBuilder fillApplicationPlaceholders(Application application) {

return Objects.requireNonNullElse(application.getThesisTitle(), "");
});
formatters.put("application.desiredThesisStart", DataFormatter::formatDate);
formatters.put("application.desiredStartDate", DataFormatter::formatDate);
formatters.put("application.user.enrolledAt", DataFormatter::formatDate);

replaceDtoPlaceholders(ApplicationDto.fromApplicationEntity(application, false), "application", formatters);
Expand Down
15 changes: 0 additions & 15 deletions server/src/test/java/thesistrack/ls1/MailTest.java

This file was deleted.

67 changes: 0 additions & 67 deletions server/src/test/resources/application.yml

This file was deleted.

0 comments on commit 4f743a3

Please sign in to comment.