Mercurial Hosting > chat
comparison src/get_chat.js.luan @ 68:329c3f70fd78
UI
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 06 Mar 2025 19:43:18 -0700 |
parents | 6cfef9850520 |
children | a63faf49e1d7 |
comparison
equal
deleted
inserted
replaced
67:e4e331539146 | 68:329c3f70fd78 |
---|---|
30 <h3> | 30 <h3> |
31 <img back onclick="back()" src="/images/arrow_back.svg"> | 31 <img back onclick="back()" src="/images/arrow_back.svg"> |
32 <span><% | 32 <span><% |
33 local user_id = chat.other_user_id(user.id) | 33 local user_id = chat.other_user_id(user.id) |
34 local other_user = get_user_by_id(user_id) or error(user_id) | 34 local other_user = get_user_by_id(user_id) or error(user_id) |
35 %><a people href="javascript:openPeople()"><%= other_user.name_html() %></a><span online="<%= other_user.id %>"></span><% | 35 %><%= other_user.name_html() %><span online="<%= other_user.id %>"></span><% |
36 local voice_url = other_user.voice_url | 36 local voice_url = other_user.voice_url |
37 if voice_url ~= nil then | 37 if voice_url ~= nil then |
38 %> <a href="<%=voice_url%>" title="Call" target="voice"><img phone src="/images/call.svg"></a><% | 38 %> <a href="<%=voice_url%>" title="Call" target="voice"><img phone src="/images/call.svg"></a><% |
39 end | 39 end |
40 %></span> | 40 %></span> |
41 </h3> | 41 </h3> |
42 <button onclick='deleteChat()'>Delete</button> | 42 <span pulldown> |
43 <img onclick="clickMenu(this)" src="/images/menu.svg"> | |
44 <div> | |
45 <span onclick="openPeople()">People in Chat</span> | |
46 <span onclick="deleteChat()">Delete Chat</span> | |
47 </div> | |
48 </span> | |
43 </div> | 49 </div> |
44 <div main> | 50 <div main> |
45 <% | 51 <% |
46 for _, post in ipairs(posts) do | 52 for _, post in ipairs(posts) do |
47 post_html(post) | 53 post_html(post) |