Skip to content

Commit

Permalink
Fix location reference in template (#2072)
Browse files Browse the repository at this point in the history
  • Loading branch information
jace authored Jun 7, 2024
1 parent 5d7240f commit 78e1fc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<p class="body-content">
{%- with venue = view.project.primary_venue %}
{%- if venue %}
{%- trans project=view.project.joined_title, start_at=(view.session or view.project).start_at_localized|datetime, venue=venue.title, location=venue.city or project.location -%}
{%- trans project=view.project.joined_title, start_at=(view.session or view.project).start_at_localized|datetime, venue=venue.title, location=venue.city or view.project.location -%}
<b>{{ project }}</b> has an in-person session at {{ venue }}, {{ location }} starting {{ start_at }}.
{%- endtrans -%}
{%- else %}
{%- trans project=view.project.joined_title, start_at=(view.session or view.project).start_at_localized|datetime, location=project.location -%}
{%- trans project=view.project.joined_title, start_at=(view.session or view.project).start_at_localized|datetime, location=view.project.location -%}
<b>{{ project }}</b> has an in-person session at {{ location }}, starting {{ start_at }}.
{%- endtrans -%}
{%- endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class RenderProjectStartingNotification(RenderNotification):
session: Session | None
aliases = {'document': 'project', 'fragment': 'session'}
emoji_prefix = "⏰ "
reason = __("You are receiving this because you have registered for this project")
reason = __("You are receiving this because you have registered for this session")
hero_image = 'img/email/chars-v1/session-starting.png'
email_heading = __("Session starting soon!")

Expand Down

0 comments on commit 78e1fc1

Please sign in to comment.