mod_invites_page: Fix templates including stray inviter name (thanks Menel)
authorKim Alvefur <zash@zash.se>
Wed, 02 Feb 2022 11:22:50 +0100
changeset 4885 09b8144051ea
parent 4884 f64d13d9b76b
child 4886 28f6322fad50
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.
mod_invites_page/html/client.html
mod_invites_page/html/invite.html
--- a/mod_invites_page/html/client.html	Mon Jan 31 11:51:50 2022 +0100
+++ b/mod_invites_page/html/client.html	Wed Feb 02 11:22:50 2022 +0100
@@ -31,12 +31,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>
 
 				<p>You can start chatting right away with {app.name}. Let's get started!</p>
 
--- 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>