From 1d04acd89444f00cfb3dcd0f693cb396da322aad Mon Sep 17 00:00:00 2001 From: Kelvin Jayanoris Date: Wed, 2 Sep 2020 23:37:27 +0300 Subject: [PATCH] Correct email templates url Fixes: https://github.com/moshthepitt/small-small-hr/issues/36 --- .../small_small_hr/email/leave_application_email_body.html | 2 +- .../small_small_hr/email/leave_application_email_body.txt | 2 +- .../small_small_hr/email/overtime_application_email_body.html | 2 +- .../small_small_hr/email/overtime_application_email_body.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/small_small_hr/templates/small_small_hr/email/leave_application_email_body.html b/small_small_hr/templates/small_small_hr/email/leave_application_email_body.html index 2dd511d..c4ce072 100644 --- a/small_small_hr/templates/small_small_hr/email/leave_application_email_body.html +++ b/small_small_hr/templates/small_small_hr/email/leave_application_email_body.html @@ -2,7 +2,7 @@ {{ object.content_object.duration.days }} days of {{ object.content_object.get_leave_type_display}}
{{ object.content_object.start|date:"D, d M Y" }} - {{ object.content_object.end|date:"D, d M Y" }}
Available Balance: {{ object.content_object.staff.get_available_leave_days|floatformat:2 }} days

-Please log in to process the above: http://{{SITE.name}}/reviews/{{ object.pk }} +Please log in to process the above: http://{{SITE.domain}}/reviews/{{ object.pk }}

Thank you,
{{SITE.name}}
diff --git a/small_small_hr/templates/small_small_hr/email/leave_application_email_body.txt b/small_small_hr/templates/small_small_hr/email/leave_application_email_body.txt index ec10080..c1f3028 100644 --- a/small_small_hr/templates/small_small_hr/email/leave_application_email_body.txt +++ b/small_small_hr/templates/small_small_hr/email/leave_application_email_body.txt @@ -4,7 +4,7 @@ {{ object.content_object.start|date:"D, d M Y" }} - {{ object.content_object.end|date:"D, d M Y" }} Available Balance: {{ object.content_object.staff.get_available_leave_days|floatformat:2 }} days -Please log in to process the above: http://{{SITE.name}}/reviews/{{ object.pk }} +Please log in to process the above: http://{{SITE.domain}}/reviews/{{ object.pk }} Thank you, diff --git a/small_small_hr/templates/small_small_hr/email/overtime_application_email_body.html b/small_small_hr/templates/small_small_hr/email/overtime_application_email_body.html index 6a9078b..c92c37d 100644 --- a/small_small_hr/templates/small_small_hr/email/overtime_application_email_body.html +++ b/small_small_hr/templates/small_small_hr/email/overtime_application_email_body.html @@ -1,7 +1,7 @@ {% load small_small_hr %}{{ object.content_object.staff.get_name }} requested overtime:

{{ object.content_object.duration|overtime_duration }} on {{ object.content_object.date|date:"D, d M Y" }}
{{ object.content_object.start|date:"P" }} - {{ object.content_object.end|date:"P" }}

-Please log in to process the above: http://{{SITE.name}}/reviews/{{ object.pk }} +Please log in to process the above: http://{{SITE.domain}}/reviews/{{ object.pk }}

Thank you,
{{SITE.name}}
diff --git a/small_small_hr/templates/small_small_hr/email/overtime_application_email_body.txt b/small_small_hr/templates/small_small_hr/email/overtime_application_email_body.txt index 6130123..d584395 100644 --- a/small_small_hr/templates/small_small_hr/email/overtime_application_email_body.txt +++ b/small_small_hr/templates/small_small_hr/email/overtime_application_email_body.txt @@ -3,7 +3,7 @@ {{ object.content_object.duration|overtime_duration }} on {{ object.content_object.date|date:"D, d M Y" }} {{ object.content_object.start|date:"P" }} - {{ object.content_object.end|date:"P" }} -Please log in to process the above: http://{{SITE.name}}/reviews/{{ object.pk }} +Please log in to process the above: http://{{SITE.domain}}/reviews/{{ object.pk }} Thank you,