Skip to content

Commit

Permalink
DBC22-3322: fix for last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-oxd committed Jan 23, 2025
1 parent 886763b commit ed860d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/backend/apps/event/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ def send_route_notifications(saved_route, updated_event_ids):
'user': saved_route.user,
'from_email': env("DRIVEBC_FEEDBACK_EMAIL_DEFAULT"),
'display_category': event.display_category,
'display_category_title': event.display_category_title
'display_category_title': event.display_category_title,
'fe_base_url': env("FRONTEND_BASE_URL"),
}

text = render_to_string('email/event_updated.txt', context)
Expand Down
6 changes: 3 additions & 3 deletions src/backend/apps/event/templates/email/event_updated.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- Logo Header -->
<tr>
<td>
<a href="https://beta.drivebc.ca/" target="_blank" rel="noopener noreferrer" style="display:inline-block">
<a href="{{ fe_base_url }}" target="_blank" rel="noopener noreferrer" style="display:inline-block">
<img src="cid:drivebclogo" alt="DriveBC Logo" />
</a>
</td>
Expand All @@ -29,7 +29,7 @@
<td>
This notification is sent based on your
<span>
<a href="https://beta.drivebc.ca/my-routes" target="_blank" rel="noopener noreferrer" style="display:inline-block">
<a href="{{ fe_base_url }}my-routes" target="_blank" rel="noopener noreferrer" style="display:inline-block">
route notification settings
</a>
</span>
Expand Down Expand Up @@ -144,7 +144,7 @@
<!-- View on DriveBC button -->
<tr>
<td align="center" bgcolor="#255A90" style="border-radius:4px;">
<a href=# style="color:#ffffff; text-decoration: none; font-size: 0.875rem; font-weight: 700">
<a href="{{ fe_base_url }}?type=event&display_category={{ event.display_category }}&id={{ event.id }}" style="color:#ffffff; text-decoration: none; font-size: 0.875rem; font-weight: 700">
<div style="height:100%;width:100%; padding: 12px">
View on DriveBC
</div>
Expand Down

0 comments on commit ed860d6

Please sign in to comment.