Skip to content

Commit 848ecd1

Browse files
committed
www: if invite_token is set, don't show the QR code & register button
1 parent a50e507 commit 848ecd1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

www/src/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ for Delta Chat users. For details how it avoids storing personal information
1111
please see our [privacy policy](privacy.html).
1212
{% endif %}
1313

14+
{% if not config.invite_token %}
1415
<a class="cta-button" href="DCACCOUNT:https://{{ config.mail_domain }}/new">Get a {{config.mail_domain}} chat profile</a>
1516

1617
If you are viewing this page on a different device
@@ -23,6 +24,10 @@ you can also **scan this QR code** with Delta Chat:
2324
🐣 **Choose** your Avatar and Name
2425

2526
💬 **Start** chatting with any Delta Chat contacts using [QR invite codes](https://delta.chat/en/help#howtoe2ee)
27+
{% else %}
28+
**To join this instance, you need an invite link or QR code -
29+
ask the admin for an invite.**
30+
{% endif %}
2631

2732
{% if config.mail_domain != "nine.testrun.org" %}
2833
<div class="experimental">Note: this is only a temporary development chatmail service</div>

0 commit comments

Comments
 (0)