Skip to content

Commit f1cd66a

Browse files
committed
Correct invite email link, and make contact form public.
1 parent ea2cc22 commit f1cd66a

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

backend/src/appointment/templates/email/includes/base.jinja2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@
5454
{{ l10n('mail-brand-reply-hint-attendee-info', { 'name': name }, lang if lang else None)|safe }}
5555
<br/><br/>
5656
{% endif %}
57+
{# Negative because it's on every email except for one. #}
58+
{% if not hide_contact_form_url_hint %}
5759
{% set link = '<a href="%(url)s">%(label)s</a>'|format(url=homepage_url + '/contact', label=l10n('mail-brand-contact-form', lang=lang if lang else None)) %}
5860
{{ l10n('mail-brand-reply-hint', {'contact_form_link': link}, lang if lang else None)|safe }}
5961
</div>
62+
{% endif %}
6063
{% include './includes/footer.jinja2' %}
6164
</body>
6265
</html>

backend/src/appointment/templates/email/new_account.jinja2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% extends "includes/base.jinja2" %}
22
{% set heading = '<br>'.join(l10n('new-account-mail-html-heading', lang=lang if lang else None).split("\n")) %}
3+
{% set hide_contact_form_url_hint = True %}
34

45
{% block information %}
56
<div style="color: {{ colour_text_base }}; text-align: center;">
@@ -33,8 +34,9 @@
3334
"
3435
>{{ l10n('new-account-mail-action', lang=lang if lang else None) }}</a>
3536
</p>
37+
{% set link = '<a href="%(url)s">%(label)s</a>'|format(url=homepage_url + '/contact', label=l10n('mail-brand-contact-form', lang=lang if lang else None)) %}
3638
<p style="color: {{ colour_icon_secondary }}; font-weight: 400; font-size: 10px; line-height: 12px; margin: 0;">
37-
{{ l10n('mail-brand-reply-hint', lang=lang if lang else None) }}
39+
{{ l10n('mail-brand-reply-hint', {'contact_form_link': link}, lang if lang else None)|safe }}
3840
</p>
3941
</div>
4042
{% endblock %}

frontend/src/router.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ const routes: RouteRecordRaw[] = [
133133
path: '/contact',
134134
name: 'contact',
135135
component: ContactView,
136+
meta: {
137+
isPublic: true,
138+
},
136139
},
137140
{
138141
path: '/report-bug',

0 commit comments

Comments
 (0)