diff src/get_chat.js.luan @ 73:a63faf49e1d7

last seen
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 08 Mar 2025 20:26:19 -0700
parents 329c3f70fd78
children b5a316575e64
line wrap: on
line diff
--- a/src/get_chat.js.luan	Sat Mar 08 17:29:57 2025 -0700
+++ b/src/get_chat.js.luan	Sat Mar 08 20:26:19 2025 -0700
@@ -68,21 +68,22 @@
 		local name = user.name
 		local email = user.email
 		local voice_url = user.voice_url
-		local voice = voice_url and `%> <a href="<%=voice_url%>" title="Call" target="voice"><img phone src="/images/call.svg"><%` or ""
+		local voice = voice_url and `%> <a href="<%=voice_url%>" title="Call" target="voice"><img phone src="/images/call.svg"></a><%` or ""
 %>
 		<p>
 <%
 		if name == nil then
 %>
-			<b><%=html_encode(email)%></b><%=voice%>
+			<b><%=html_encode(email)%></b><%=voice%><br>
 <%
 		else
 %>
 			<b><%=html_encode(name)%></b><%=voice%><br>
-			<%=html_encode(email)%>
+			<%=html_encode(email)%><br>
 <%
 		end
 %>
+			<span last_seen="<%=user_id%>"></span>
 		</p>
 <%
 	end