Diff

mod_invites_page/html/invite.html @ 4881:09b8144051ea

mod_invites_page: Fix templates including stray inviter name (thanks Menel) The util.interpolation syntax `{var?placeholder}` appears to have been intended as an if-not, but this syntax will always return either the variable or the placeholder-template.
author Kim Alvefur <zash@zash.se>
date Wed, 02 Feb 2022 11:22:50 +0100
parent 4211:0f26ae2f2a74
child 5741:8cd617c0b701
line wrap: on
line diff
--- a/mod_invites_page/html/invite.html	Mon Jan 31 11:51:50 2022 +0100
+++ b/mod_invites_page/html/invite.html	Wed Feb 02 11:22:50 2022 +0100
@@ -32,12 +32,9 @@
 							Scan with mobile device
 					</button>
 				</div>
-			
-				{inviter?<p>You have been invited to chat on {site_name} using XMPP,
-				a secure and decentralized messaging network.</p>}
 
-				{inviter&<p>You have been invited to chat with {inviter} on {site_name},
-				part of the XMPP secure and decentralized messaging network.</p>}
+				<p>You have been invited to chat {inviter&with {inviter} }on {site_name},
+				part of the XMPP secure and decentralized messaging network.</p>
 
 				<h5 class="card-title" style="clear:both">Get started</h5>