Changeset

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
parents 4880:f64d13d9b76b
children 4882:28f6322fad50
files mod_invites_page/html/client.html mod_invites_page/html/invite.html
diffstat 2 files changed, 4 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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>